summaryrefslogtreecommitdiff
path: root/helm-command.el
Commit message (Collapse)AuthorAge
* Remove now unneeded var and fnThierry Volpiatto2019-12-14
|
* Fix history predicate in *M-xThierry Volpiatto2019-12-14
| | | | | * helm-command.el (helm-M-x-read-extended-command): Elements of history are strings.
* Fix #2251, remove set--this-command-keys callThierry Volpiatto2019-12-13
| | | | | | | used in an attempt to use directly helm-M-x in kmacro. It is not in emacs-25 anyway. * helm-command.el (helm-M-x-execute-command): Do it.
* Fix issue #2250 with pref arg in helm-M-xThierry Volpiatto2019-12-13
| | | | | | | * helm-command.el (helm-M-x--move-selection-after-hook): New. (helm-M-x--before-action-hook): New. (helm-M-x-read-extended-command): Bind helm-move-selection-after-hook with add-hook and remove it before executing action.
* Set metadata in helm-M-x (#2249)Thierry Volpiatto2019-12-11
| | | | | | | | | | | and fix metatada setting in helm-dynamic-completion. * helm-command.el (helm-M-x-class): Use the FCT without sorting. (helm-M-x-read-extended-command): Provide sort fn through metadata and don't sort with FCT. * helm-lib.el (helm-dynamic-completion): Allow preventing sorting by passing the symbol nosort in metadata, be sure also to setup metadata to a suitable value so that the adjust metadata fn can use it.
* Fix disabling helm-M-x in kbd-macroThierry Volpiatto2019-12-10
| | | | | | | * helm-command.el (helm-M-x-read-extended-command): Don't do it from here. (helm-M-x-execute-command): Set this-command-keys. (helm-M-x--vanilla-M-x): New. (helm-M-x): Use it.
* Simplify usage of arguments in helm-M-x*Thierry Volpiatto2019-12-10
| | | | | | | | * helm-command.el (helm-M-x-read-extended-command): Takes one more optional arg PREDICATE, remove extended-command-history let-binding unuseful now we are using completion with predicate. (helm-M-x-execute-command): Can now use setq as the extended-command-history let-binding have been removed.
* Fix setting M-x historyThierry Volpiatto2019-12-09
| | | | | * helm-command.el (helm-M-x-read-extended-command): Don't sort history. (helm-M-x-execute-command): Set top level history.
* Remove usage of helm-comp-read in helm-M-xThierry Volpiatto2019-12-09
| | | | | | | | | and remove also helm-M-x-fuzzy-match, helm-M-x-use-completion-styles and helm-M-x-requires-pattern. * helm-command.el (helm-M-x-read-extended-command): Do it. (helm-M-x): No need to handle helm-M-x-use-completion-styles.
* Add forgotten help-messageThierry Volpiatto2019-12-09
| | | | * helm-command.el (helm-M-x-class): Do it.
* Allow using more actions in helm-M-xThierry Volpiatto2019-12-09
| | | | | | | * helm-command.el (helm-M-x-class): New inherit from helm-type-command. (helm-M-x-read-extended-command): Use it. (helm-M-x-execute-command): New. (helm-M-x): Use it.
* Make helm-M-x-use-completion-styles default to tThierry Volpiatto2019-11-28
| | | | * helm-command.el (helm-M-x-use-completion-styles): Do it.
* Don't modify completion-styles-alistThierry Volpiatto2019-11-28
| | | | | | | | | | | when exiting helm-mode. Remove helm-mode--disable-completion-styles. * helm-command.el (helm-M-x-read-extended-command): No need to check for helm-mode. * helm-lib.el (helm-dynamic-completion): May be setup completion-styles-alist if not already done by helm-mode. * helm-mode.el (helm-mode): Don't modify completion-styles-alist
* Allow disabling completion-styles inThierry Volpiatto2019-11-27
| | | | | | | | | | | | | helm-completion-styles-alist when needed. * helm-command.el (helm-M-x-read-extended-command): Don't use completion-styles per mode by using NOMODE arg. * helm-lib.el (helm-dynamic-completion): Takes now one mode arg NOMODE. * helm-mode.el (helm-completion-styles-alist): Docstring. (helm-completing-read-default-2): Use NOMODE. (helm-completion-in-region--set-completion-styles): Takes now one mode arg NOMODE. (helm--completion-in-region): Fix setting helm-completion-style through helm-completion-styles-alist.
* Allow setting completion-styles for specific modesThierry Volpiatto2019-11-26
| | | | | | | | | | * helm-mode.el (helm-mode-fuzzy-match): Docstring only. (helm-completion-styles-alist): Docstring allow using sexp as value. (helm-completion-in-region--set-completion-styles): Handle helm-completion-styles-alist and simplify. * helm-lib.el (helm-dynamic-completion): Do it. * helm-command.el (helm-M-x-read-extended-command): Disable specific mode settings for completion-styles.
* Rename helm-M-x-transformer-hist toThierry Volpiatto2019-11-25
| | | | helm-M-x-transformer-no-sort.
* Add commentsThierry Volpiatto2019-11-23
|
* Add group to M-x source historyThierry Volpiatto2019-11-20
| | | | * helm-command.el (helm-M-x-read-extended-command): Do it.
* Fall back to helm-comp-read when helm-mode is disabledThierry Volpiatto2019-11-20
| | | | | | and styles are not found (error otherwise). * helm-command.el (helm-M-x-read-extended-command): Do it.
* Allow setting must-match from sourcesThierry Volpiatto2019-11-18
| | | | | | | | | | | * helm-command.el (helm-M-x-read-extended-command): Use must-match in dynamic sources. * helm-mode.el (helm-comp-read): Use new slot :must-match in sources. (helm-read-file-name): Same. * helm-source.el (helm-source): Add must-match. (helm--setup-source): Setup must-match-map when :must-match is specified. * helm.el (helm-confirm-and-exit-minibuffer): Add cond clause to exit with pattern as cand.
* Let-bind extended-command-historyThierry Volpiatto2019-11-14
|
* Add missing slot to M-x sourcesThierry Volpiatto2019-11-14
|
* Add PA to history sourceThierry Volpiatto2019-11-14
| | | | | * helm-command.el (helm-M-x-persistent-action): New. (helm-M-x-read-extended-command): Use it.
* Make M-x history source using dynamic candidatesThierry Volpiatto2019-11-13
| | | | * helm-command.el (helm-M-x-read-extended-command): Do it.
* New user variableThierry Volpiatto2019-11-13
| | | | | | | | * helm-command.el (helm-M-x-use-completion-styles): (helm-M-x-default-sort-fn): Docstring only. (helm-M-x-fuzzy-match): Docstring only. (helm-M-x-read-extended-command): Use helm-M-x-use-completion-styles and let bind prompt.
* Reverse history and add commentsThierry Volpiatto2019-11-13
|
* Make helm-M-x using completion-stylesThierry Volpiatto2019-11-13
| | | | | * helm-lib.el (helm-dynamic-completion): New. * helm-command.el (helm-M-x-read-extended-command): Use it.
* Fix error in helm-M-xThierry Volpiatto2019-05-27
| | | | * helm-command.el (helm-M-x): Ensure command-name is a string.
* Add group to helm-comp-read and use it in M-xThierry Volpiatto2019-05-27
|
* Update copyrightsThierry Volpiatto2019-03-26
|
* Update copyrightsThierry Volpiatto2018-01-08
|
* No need anymore to use cl-defunThierry Volpiatto2017-08-31
| | | | * helm-command.el (helm-M-x-get-major-mode-command-alist): Fix it.
* * helm-command.el (helm-M-x): Fix for the Lisp debugger.Chunyang Xu2017-06-02
|
* * helm-command.el (helm-M-x): Re-throw error signal.Chunyang Xu2017-05-22
|
* Fix previous PR by calling cons with two args (#1759).Thierry Volpiatto2017-04-29
| | | | * helm-command.el (helm-M-x): Do it.
* Clean up save command history logicTianxiang Xiong2017-04-28
| | | | | | `unless` followed by `when` is confusing, and can be improved by using `condition-case`, making it clear that `helm-M-x-always-save-history` applies in scenarios in which an error occurs when executing the command.
* Fix helm-M-x-default-sort-fn docstring.Thierry Volpiatto2017-04-02
| | | | * helm-command.el (helm-M-x-default-sort-fn): Do it.
* Use a separate sort function for helm-M-x (#1736).Thierry Volpiatto2017-04-02
| | | | | | | | | * helm-command.el (helm-M-x-default-sort-fn): New user var. (helm-M-x-fuzzy-sort-candidates): New fuzzy sort fn for *M-x. (helm-M-x-read-extended-command): Use it. * helm.el (helm-fuzzy-matching-default-sort-fn): No need to have a third arg which is unused everywhere. (helm-fuzzy-matching-sort-fn-preserve-ties-order): Same.
* Fail silently when user exit M-x with empty string.Thierry Volpiatto2017-02-09
| | | | * helm-command.el (helm-M-x): Do it.
* Update copyrights.Thierry Volpiatto2017-01-01
|
* Remove now unneeded local settings of (not cl-lib) warnings.Thierry Volpiatto2016-11-13
| | | | Done according to helm-bbdb syohei commit (thanks).
* Allow matching only part of candidate in helm-comp-read (#1582).Thierry Volpiatto2016-08-16
| | | | | * helm-mode.el (helm-comp-read): Do it. * helm-command.el (helm-M-x-read-extended-command): Use it.
* Minor fixes for helm-M-x.Thierry Volpiatto2016-06-24
| | | | | * helm-command.el (helm-M-x-map): Don't quote nil (typo). (helm-M-x-universal-argument): Add docstring and helm-only prop.
* Fix helm-M-x docstring.Thierry Volpiatto2016-06-24
|
* Shutup byte compiler in helm-M-x.Thierry Volpiatto2016-06-24
| | | | | * helm-command.el (helm-M-x): Fix also interactive-only not supported in declare in <emacs-25.
* Rework helm-M-x-prefix-argumentChunyang Xu2016-06-24
| | | | | | | | | | Set helm-M-x-prefix-argument within `interactive' form so it works for keyboard macro, and before (helm-M-x-read-extended-command) so it works for C-g too. To avoid calling `called-interactively-p', inhibit calling helm-M-x from lisp explicitly by declaring helm-M-x interactive-ony. Anyway, I don't think being able to call helm-M-x from lisp is necessary.
* Add FIXME comment no code change (#1545).Thierry Volpiatto2016-06-23
|
* Add FIXME comments in helm-command.el about last changes (#1545).Thierry Volpiatto2016-06-23
| | | | No code change.
* Reset helm-M-x-prefix-argument after C-u M-x C-gChunyang Xu2016-06-23
|
* Fix last commitChunyang Xu2016-06-23
| | | | | otherwise the prefix argument during *defining* keybinding macros will not be used.