summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorChunyang Xu <xuchunyang.me@gmail.com>2016-06-22 17:57:36 +0800
committerChunyang Xu <xuchunyang.me@gmail.com>2016-06-22 17:59:31 +0800
commitb90ba57a7c69c9e9e100fea468a7603f0f5f44be (patch)
treec7977dd5da95b5a9a803981496429118e1c50e1a /helm-command.el
parent5ab9d1cd17ccc90d1331792e3d6effe0d5c5df56 (diff)
Revert previous two commits
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/helm-command.el b/helm-command.el
index 0159f362..fecbf11b 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -71,7 +71,6 @@ Show all candidates on startup when 0 (default)."
(defvar helm-M-x-input-history nil)
(defvar helm-M-x-prefix-argument nil "Prefix argument before calling `helm-M-x'.")
-(defvar helm-M-x-display-prefix-argument-p nil)
(cl-defun helm-M-x-get-major-mode-command-alist (mode-map)
@@ -144,10 +143,7 @@ fuzzy matching is running its own sort function with a different algorithm."
(defun helm-M-x--notify-prefix-arg ()
;; Notify a prefix-arg set AFTER calling M-x.
- (when (or prefix-arg
- (when (and helm-M-x-allow-prefix-argument
- helm-M-x-display-prefix-argument-p)
- helm-M-x-prefix-argument))
+ (when prefix-arg
(with-helm-window
(helm-display-mode-line (helm-get-current-source) 'force))))
@@ -199,8 +195,7 @@ than the default which is OBARRAY."
(unwind-protect
(let ((msg "Error: Specifying a prefix arg before calling `helm-M-x'"))
(if helm-M-x-allow-prefix-argument
- (setq helm-M-x-prefix-argument current-prefix-arg
- helm-M-x-display-prefix-argument-p t)
+ (setq helm-M-x-prefix-argument current-prefix-arg)
(when current-prefix-arg
(ding)
(message "%s" msg)