summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-06-03 22:03:28 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-06-03 22:03:28 +0200
commit49327b92d19bd4867df61cac33b6e4dc593ee38f (patch)
treec63c09ce9398b469fc66de03860c4c3253e9b727 /helm-command.el
parentf990731bfef8e095318075b096461f1a20cf9d6c (diff)
Allow using a different history in helm-M-x-read-extended-command (#1044).
* helm-command.el (helm-M-x-read-extended-command): Add new optional arg history.
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-command.el b/helm-command.el
index 5ed1d14a..06b395bb 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -159,7 +159,7 @@ fuzzy matching is running its own sort function with a different algorithm."
(push (helm-cmd--get-current-function-name) results))))
finally return results))
-(defun helm-M-x-read-extended-command (&optional collection)
+(defun helm-M-x-read-extended-command (&optional collection history)
"Read command name to invoke in `helm-M-x'.
Helm completion is not provided when executing or defining
kbd macros.
@@ -219,7 +219,7 @@ than the default which is OBARRAY."
:buffer "*helm M-x*"
:persistent-action pers-help
:persistent-help "Describe this command"
- :history extended-command-history
+ :history (or history extended-command-history)
:reverse-history helm-M-x-reverse-history
:del-input nil
:mode-line helm-M-x-mode-line