summaryrefslogtreecommitdiff
path: root/helm-lib.el
Commit message (Collapse)AuthorAge
* Fix Windows path error (#2308)Thierry Volpiatto2020-05-14
| | | | * helm-lib.el (helm-boring-directory-p): Do it.
* Make :override advises innermost.Ihor Radchenko2020-04-08
| | | | Default advice depth 0 can overwrite previous user-defined advises.
* Use a simple defun for helm-take-first-elementsThierry Volpiatto2020-03-06
| | | | | | to fit with old emacs (#2282). * helm-lib.el (helm-take-first-elements): Do it.
* Small optimizationsThierry Volpiatto2020-03-02
| | | | | * helm-lib.el (helm-append-at-nth): Simplify. (helm-take-first-elements): Use a specialized method for lists.
* Fix #2272 by requiring ansi-colorThierry Volpiatto2020-01-24
| | | | * helm-lib.el (helm--ansi-color-apply): Do it.
* Fix #2268 regexp wrongly matching buffer names withThierry Volpiatto2020-01-22
| | | | | | | mb characters. Fix the regexp that should match nothing, i.e. always return nil. * helm-lib.el (helm--concat-regexps): Do it.
* Update docstring no code changeThierry Volpiatto2020-01-20
| | | | * helm-lib.el (helm--prepare-completion-styles):
* Use completion-ignore-caseThierry Volpiatto2020-01-19
| | | | | | | * helm-lib.el (helm-dynamic-completion): Do it. * helm-mode.el (helm-completing-read-default-2): Do it. (helm-flex-add-score-as-prop): Do it. (helm--completion-in-region): Do it.
* Force usage of 'emacs helm-completion-style inThierry Volpiatto2020-01-08
| | | | | | helm-dynamic-completion (#2256). * helm-lib.el (helm-dynamic-completion): Do it.
* Add hooks in helm-help (#2221)Thierry Volpiatto2019-12-22
| | | | | | * helm-lib.el (helm-help-mode-before-hook): New. (helm-help-mode-after-hook): New. (helm-help-internal): Use them.
* Allow specifying styles unconditionallyThierry Volpiatto2019-12-14
| | | | | * helm-lib.el (helm--prepare-completion-styles): Takes one more arg STYLES. (helm-dynamic-completion): Same and use it.
* Fix typoThierry Volpiatto2019-12-14
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* No sort when empty stringThierry Volpiatto2019-12-14
|
* 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 helm-symbolify when arg is empty stringThierry Volpiatto2019-12-09
| | | | | | returns nil in this case. * helm-lib.el (helm-symbolify): Do it.
* Remove old completion-styles when settingThierry Volpiatto2019-12-01
| | | | | | | up styles for helm. (Fix #2241) * helm-lib.el (helm-blacklist-completion-styles): New var. (helm--prepare-completion-styles): Use it.
* Be sure to be in current-bufferThierry Volpiatto2019-11-29
| | | | * helm-lib.el (helm--prepare-completion-styles): Do it.
* Ensure helm-mode is loaded when setting stylesThierry Volpiatto2019-11-28
| | | | * helm-lib.el (helm--prepare-completion-styles): Do it.
* Rename functionsThierry Volpiatto2019-11-28
| | | | | | | | * helm-lib.el (helm--setup-completion-styles-alist): Renamed from helm-mode--setup-completion-styles. (helm--prepare-completion-styles): Renamed from helm-completion-in-region--set-completion-styles. * helm.el: Use new name.
* Avoid potential recursive requireThierry Volpiatto2019-11-28
| | | | | | | | | | | | Move helm-mode--setup-completion-styles in helm-lib and setup completion-styles-alist from helm.el one time for all. Move as well helm-completion-in-region--set-completion-styles in helm-lib to make it available for helm-dynamic-completion. * helm-lib.el (helm-dynamic-completion): Don't setup completion-styles-alist from here!. * helm-mode.el (helm-mode): No need to setup completion-styles-alist from here.
* Check directly if helm style have been addedThierry Volpiatto2019-11-28
| | | | * helm-lib.el (helm-dynamic-completion): 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.
* Update docstring, no code changeThierry Volpiatto2019-11-25
|
* Allow passing a function as collectionThierry Volpiatto2019-11-24
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* Rename functionThierry Volpiatto2019-11-23
| | | | | * helm-mode.el (helm-completion-in-region--set-completion-styles): Renamed from helm-completion-in-region--fix-completion-styles.
* Rename all helm-fuzzy to helm-flex to not confuseThierry Volpiatto2019-11-23
| | | | people with helm-fuzzy helm-completion-style.
* Merge branch 'dev' into helm-fuzzy_styleThierry Volpiatto2019-11-23
|\
| * Use completion-flex-nospaceThierry Volpiatto2019-11-21
| | | | | | | | | | | | * helm-lib.el (helm-dynamic-completion): Do it. * helm-mode.el (helm-completing-read-default-2): Do it. (helm--completion-in-region): Do it.
* | Implement helm-fuzzy styleThierry Volpiatto2019-11-18
|/
* Add comments no code changesThierry Volpiatto2019-11-14
|
* Fix again completion-styles in use in helmThierry Volpiatto2019-11-14
| | | | | | | accept for now only flex when available. * helm-lib.el (helm-dynamic-completion): Do it. * helm-mode.el (helm-completion-in-region--fix-completion-styles): Do it.
* Fix order of styles for emacs-26 and 27Thierry Volpiatto2019-11-14
| | | | | * helm-lib.el (helm-dynamic-completion): Do it. * helm-mode.el (helm-completion-in-region--fix-completion-styles): Do it.
* No need to use helm-aif hereThierry Volpiatto2019-11-14
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* Fix helm-dynamic-completion again with circular objectsThierry Volpiatto2019-11-14
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* Ensure circular object are removed.Thierry Volpiatto2019-11-14
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* Add docstringThierry Volpiatto2019-11-13
| | | | * helm-lib.el (helm-dynamic-completion): Do it.
* 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.
* Use ffap-read-file-or-url emacs-27 version for emacs<27Thierry Volpiatto2019-11-10
|
* Fix again ffap adviceThierry Volpiatto2019-11-09
| | | | * helm-lib.el (helm-advice--ffap-read-file-or-url): Simplify, remove url-handler.
* Add ffap-read-url-internal missing in emacs-27Thierry Volpiatto2019-11-08
| | | | until fixed.
* Fix ffap adviceThierry Volpiatto2019-11-08
|
* Make the ffap fns working in helm-mode by advicingThierry Volpiatto2019-11-08
| | | | | | | | ffap-read-file-or-url from helm-mode. * helm-lib.el (helm-advice--ffap-read-file-or-url): New. * helm-mode.el (helm-completing-read-handlers-alist): Remove ffap commands. (helm-mode): Add/remove advice.
* Ensure helm-current-buffer is used when helm-bufferThierry Volpiatto2019-10-12
| | | | | | | is displayed in frame. And no need to update when using frame. * helm-lib.el (helm-elisp--persistent-help): Do it.
* Force running update hook in elisp helpThierry Volpiatto2019-10-12
| | | | * helm-lib.el (helm-elisp--persistent-help): Do it.
* Use helm-current-buffer in elisp persistent helpThierry Volpiatto2019-10-10
| | | | | | when helm-use-frame-when-dedicated-window is used. * helm-lib.el (helm-elisp--persistent-help): Do it.
* Use helm-persistent-action-window-bufferThierry Volpiatto2019-10-10
| | | | | | in persistent help. * helm-lib.el (helm-elisp--persistent-help): Do it.
* Restore the buffer belonging to persistent-action windowThierry Volpiatto2019-10-09
| | | | | | | which may not be helm-current-buffer when helm is started from a dedicated frame. * helm-lib.el (helm-elisp--persistent-help): Do it.
* Fix helm-describe-classThierry Volpiatto2019-09-24
| | | | | * helm-lib.el (helm-describe-class): Ensure to not use something else that describe-function to let the advice working.