Mercurial > emacs
changeset 106413:ab53cadac0b6
(completion-pcm--merge-try): Also consider placing point after a star, if
that's the only place where modifications can make progress.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 05 Dec 2009 01:22:54 +0000 |
parents | 3fea95b17dfa |
children | b6ccd1657f1c |
files | lisp/ChangeLog lisp/minibuffer.el |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Dec 05 00:24:03 2009 +0000 +++ b/lisp/ChangeLog Sat Dec 05 01:22:54 2009 +0000 @@ -1,3 +1,9 @@ +2009-12-05 Stefan Monnier <monnier@iro.umontreal.ca> + + * minibuffer.el (completion-pcm--merge-try): Also consider placing + point after a star, if that's the only place where modifications can + make progress. + 2009-12-05 Dan Nicolaescu <dann@ics.uci.edu> * vc-dir.el (vc-dir): Use the correct markup for showing keymaps
--- a/lisp/minibuffer.el Sat Dec 05 00:24:03 2009 +0000 +++ b/lisp/minibuffer.el Sat Dec 05 01:22:54 2009 +0000 @@ -1984,7 +1984,9 @@ ;; order of preference) either at the old point, or at ;; the last place where there's something to choose, or ;; at the very end. - (pointpat (or (memq 'point mergedpat) (memq 'any mergedpat) + (pointpat (or (memq 'point mergedpat) + (memq 'any mergedpat) + (memq 'star mergedpat) mergedpat)) ;; New pos from the start. (newpos (length (completion-pcm--pattern->string pointpat)))