| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
| |
Call x-file-dialog instead of helm-read-file-name when opening file from menu.
|
|
|
|
| |
and add docstring and comments.
|
|
|
|
|
|
|
|
|
|
| |
Try to use minibuffer-completion-table if it is bound otherwise fallback to
internal-complete-buffer.
The problem is that the definition of read-buffer-to-switch is wrong, as it
pass minibuffer-completion-table only through minibuffer-setup-hook which is
too late for helm and other backends used as read-buffer-function, so advise
read-buffer-to-switch from helm-mode.
|
|
|
|
|
|
|
|
| |
Use `internal-complete-buffer-except' as default collection,
assuming `switch-to-buffer' doesn't need the current buffer and
`kill-buffer' add it on top of completion list. This may be
wrong in other functions, but lets use this as there is no better
solutions to abstract this for now.
|
|
|
|
|
| |
We need this in helm-mode because we don't use a transformer like in
helm-buffers.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The emacs native-comp branch provides "a modified Emacs capable of
compiling and running Emacs Lisp as native code in form of re-loadable
elf files" (https://akrl.sdf.org/gccemacs.html). Functions that are
natively-compiled do not return t to byte-code-function-p, but do return
t to subr-native-elisp-p, a function that is built-in to the native-comp
emacs.
The problem here is that helm-symbol-name tries to call symbol-name on
an object if it is not functionp OR byte-code-function-p; when running
with native-comp, this now needs to include subr-native-elisp-p
too. I've also modified some other functions that use a similar pattern.
|
|
|
|
|
|
|
| |
This avoid error when result is not a string like in CRM.
Do this in the right cond clause of helm-completion-in-region--insert-result
instead of doing it earlier in helm--completion-in-region.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
When non nil `helm-comp-read' will return marked candidates, a list instead of
a single candidate, even if no mark it will return a list of one elemnt, the
selected candidate.
This will break all completing-reads when helm-mode is enabled if set globally,
have to be only used in let bindings, this allows external packages to make
use of marks in their completing-reads when helm-mode is enabled.
|
|
|
|
|
|
|
|
| |
Allow running extra property :exit-function (Issues #2265, #2356).
Passing 'finished to `completion--done' is probably
the more logical as completion is always finished in our
case when pressing RET, at one point 'finished was addind a
space at insertion so we used 'exact, but it seems it is no more the case.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Add missing block lost when merging cache code.
|
|
|
|
| |
helm-find-files-get-candidates is now returning a list of cons cells.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
directly in :must-match without let-binding it.
* helm.el (helm-internal): Let-bind minibuffer-completion-confirm on top.
(helm--set-minibuffer-completion-confirm): New.
(helm-move-selection-common): Use it here.
* helm-mode.el (helm-comp-read): No need to cons must-match now
it is handled by helm-source.
(helm-comp-read): No need now to let-bind minibuffer-completion-confirm.
(helm-read-file-name): Same.
* helm-source.el (helm--create-source): A slot with a boolean value ==
t is now aaded as (foo . t) instead of (foo) in alist so that
assoc-defaut or (cdr (assq...)) return the real value.
(helm-source): Fix must-match docstring.
|
| |
|
|
|
|
|
|
|
|
| |
* helm-mode.el (helm-completion-in-region--insert-result): Separator
is auto-appended when completing multiple candidates so that user
doesn't have to type it in explicitly to trigger completion. It is
safe to submit completion results with trailing separator still in
minibuffer.
|
|
|
|
|
| |
* helm-mode.el (helm-completion-in-region--insert-result): Use
crm-separator as default if available.
|
|
|
|
| |
This avoids the error that might occur if the candidates have image set display property
|
| |
|
|
|
|
|
| |
* helm-mode.el (helm-completing-read-default-1): Do it.
(helm-completing-read-default-2): Do it.
|
|
|
|
|
|
|
| |
as argument in our case, with 'finished, an extra space is added at
insertion which is wrong.
* helm-mode.el (helm--completion-in-region): Do it.
|
|
|
|
|
|
| |
* helm-mode.el (helm-completion-in-region--selection): Renamed from
helm-completion-in-region-selection.
(helm--completion-in-region): Add comment.
|
|
|
|
|
|
| |
to ensure the hook is removed even on quit.
* helm-mode.el (helm--completion-in-region): Do it.
|
|
|
|
| |
* helm-mode.el (helm--completion-in-region): Do it.
|
|
|
|
|
| |
* helm-mode.el (helm-completion-in-region-selection): New.
(helm--completion-in-region): Use it in helm-before-action-hook.
|
|
|
|
| |
* helm-mode.el (helm--completion-in-region): Call completion--done at end.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
This initial call is useful only when completing filenames in
shell/eshell-mode so check if completing filenames in style fn.
* helm-mode.el (helm-completion--multi-all-completions-1): Do it.
|
|
|
|
|
| |
* helm-mode.el (helm-comp-read-get-candidates):
predicate vs test.
|
|
|
|
|
|
|
| |
at some point. Improve as well file completion checking while I am at
it.
* helm-mode.el (helm-comp-read-get-candidates): Do it.
|
|
|
|
| |
This reverts commit 7ba50746bf4bb00848602f8d8cdf473fdb84cda2.
|
|
|
|
| |
* helm-mode.el (helm-completing-read-handlers-alist): Do it.
|
|
|
|
|
| |
* helm-mode.el (helm-completion--multi-all-completions-1): Do it, add
comment as well.
|
|
|
|
|
|
|
|
| |
when helm style is alone.
Needs bash-completion disabled as well to reproduce bug in shell-mode,
eshell is not affected by bash-completion.
* helm-mode.el (helm-completion--multi-all-completions-1): Do it.
|
|
|
|
|
|
|
|
|
|
| |
as a workaround waiting a better fix for these modes.
Both are working fine with emacs style when helm and one of flex or
helm-flex is used along with helm completion style.
Also shell-mode is completing correctly when bash-completion package
is installed.
* helm-mode.el (helm-completion-styles-alist): Add eshell and shell.
|