diff options
| author | Stefan Monnier | 2013-09-06 18:46:44 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-09-06 18:46:44 -0400 |
| commit | 67982e2b74ad72987459a6995f34161053a1dbfb (patch) | |
| tree | 373ee631b05b07ea3e9572b2068b6af48c5edd58 /etc | |
| parent | e17d94a507d3ab2b2998880861b28badf8ecf0e7 (diff) | |
| download | emacs-67982e2b74ad72987459a6995f34161053a1dbfb.tar.gz emacs-67982e2b74ad72987459a6995f34161053a1dbfb.zip | |
* lisp/minibuffer.el: Make minibuffer-complete call completion-in-region
rather than other way around.
(completion--some, completion-pcm--find-all-completions):
Don't delay signals when debugging.
(minibuffer-completion-contents): Beware fields within the
minibuffer contents.
(completion-all-sorted-completions): Use defvar-local.
(completion--do-completion, completion--cache-all-sorted-completions)
(completion-all-sorted-completions, minibuffer-force-complete):
Add args `beg' and `end'.
(completion--in-region-1): New fun, extracted from minibuffer-complete.
(minibuffer-complete): Use completion-in-region.
(completion-complete-and-exit): New fun, extracted from
minibuffer-complete-and-exit.
(minibuffer-complete-and-exit): Use it.
(completion--complete-and-exit): Rename from
minibuffer--complete-and-exit.
(completion-in-region--single-word): New function, extracted from
minibuffer-complete-word.
(minibuffer-complete-word): Use it.
(display-completion-list): Make `common-substring' argument obsolete.
(completion--in-region): Call completion--in-region-1 instead of
minibuffer-complete.
(completion-help-at-point): Pass boundaries to
minibuffer-completion-help as args rather than via an overlay.
(completion-pcm--string->pattern): Use `any-delim'.
(completion-pcm--optimize-pattern): New function.
(completion-pcm--pattern->regex): Handle `any-delim'.
* lisp/icomplete.el (icomplete-forward-completions)
(icomplete-backward-completions, icomplete-completions):
Adjust calls to completion-all-sorted-completions and
completion--cache-all-sorted-completions.
(icomplete-with-completion-tables): Default to t.
* lisp/emacs-lisp/crm.el (crm--current-element): Rename from
crm--select-current-element. Don't put an overlay but return the
boundaries instead.
(crm--completion-command): Take two new args to bind to the boundaries.
(crm-completion-help): Adjust accordingly.
(crm-complete): Use completion-in-region.
(crm-complete-word): Use completion-in-region--single-word.
(crm-complete-and-exit): Use completion-complete-and-exit.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -172,6 +172,10 @@ You can pick the name of the function and the variables with `C-x 4 a'. | |||
| 172 | 172 | ||
| 173 | * Changes in Specialized Modes and Packages in Emacs 24.4 | 173 | * Changes in Specialized Modes and Packages in Emacs 24.4 |
| 174 | 174 | ||
| 175 | ** Icomplete-mode by defaults applies to all forms of minibuffer completion. | ||
| 176 | (setq icomplete-with-completion-tables '(internal-complete-buffer)) | ||
| 177 | will revert to the old behavior. | ||
| 178 | |||
| 175 | ** The debugger's `e' command evaluates the code in the context at point. | 179 | ** The debugger's `e' command evaluates the code in the context at point. |
| 176 | This includes using the lexical environment at point, which means that | 180 | This includes using the lexical environment at point, which means that |
| 177 | `e' now lets you access lexical variables as well. | 181 | `e' now lets you access lexical variables as well. |
| @@ -756,6 +760,11 @@ used in place of the 9th element of `file-attributes'. | |||
| 756 | `preserve-extended-attributes' as it now handles both SELinux context | 760 | `preserve-extended-attributes' as it now handles both SELinux context |
| 757 | and ACL entries. | 761 | and ACL entries. |
| 758 | 762 | ||
| 763 | ** The `common-substring' argument of display-completion-list is obsolete. | ||
| 764 | Either use `completion-all-completions' which already returns highlighted | ||
| 765 | strings (including for partial or substring completion) or call | ||
| 766 | `completion-hilit-commonality' to add the highlight. | ||
| 767 | |||
| 759 | ** Changes to the Emacs Lisp Coding Conventions in Emacs 24.4 | 768 | ** Changes to the Emacs Lisp Coding Conventions in Emacs 24.4 |
| 760 | 769 | ||
| 761 | *** The package descriptor and name of global variables, constants, | 770 | *** The package descriptor and name of global variables, constants, |