diff options
| author | Stefan Monnier | 2012-03-12 00:10:59 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-12 00:10:59 -0400 |
| commit | dbbc2e69e4fb3b8278a33fb3f5256786b18e8180 (patch) | |
| tree | 48db6fd47343d44c2d689c9655072218e8f32b70 | |
| parent | 5d1ac394e135c411ff7e793e0a05ab5e2f7d2066 (diff) | |
| download | emacs-dbbc2e69e4fb3b8278a33fb3f5256786b18e8180.tar.gz emacs-dbbc2e69e4fb3b8278a33fb3f5256786b18e8180.zip | |
* lisp/minibuffer.el (minibuffer-complete): Don't get confused when the
function is run twice via different commands.
(complete-with-action): Fix docstring.
Fixes: debbugs:10958
| -rw-r--r-- | lisp/ChangeLog | 42 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 5 |
2 files changed, 27 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee92720d717..5021fbde22c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-03-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * minibuffer.el (minibuffer-complete): Don't get confused when the | ||
| 4 | function is run twice via different commands (bug#10958). | ||
| 5 | (complete-with-action): Fix docstring. | ||
| 6 | |||
| 1 | 2012-03-12 Chong Yidong <cyd@gnu.org> | 7 | 2012-03-12 Chong Yidong <cyd@gnu.org> |
| 2 | 8 | ||
| 3 | * nxml/nxml-mode.el (nxml-mode-map): Do not bind C-RET (Bug#6776). | 9 | * nxml/nxml-mode.el (nxml-mode-map): Do not bind C-RET (Bug#6776). |
| @@ -21,8 +27,8 @@ | |||
| 21 | 27 | ||
| 22 | 2012-03-11 Andreas Schwab <schwab@linux-m68k.org> | 28 | 2012-03-11 Andreas Schwab <schwab@linux-m68k.org> |
| 23 | 29 | ||
| 24 | * server.el (server-eval-at): Handle non-tcp connections. Decode | 30 | * server.el (server-eval-at): Handle non-tcp connections. |
| 25 | result string. | 31 | Decode result string. |
| 26 | 32 | ||
| 27 | * server.el (server-msg-size): New constant. | 33 | * server.el (server-msg-size): New constant. |
| 28 | (server-reply-print): New function. | 34 | (server-reply-print): New function. |
| @@ -85,13 +91,13 @@ | |||
| 85 | 2012-03-10 Chong Yidong <cyd@gnu.org> | 91 | 2012-03-10 Chong Yidong <cyd@gnu.org> |
| 86 | 92 | ||
| 87 | * emulation/cua-rect.el (cua--init-rectangles): | 93 | * emulation/cua-rect.el (cua--init-rectangles): |
| 88 | * emulation/cua-base.el (cua--init-keymaps): Add | 94 | * emulation/cua-base.el (cua--init-keymaps): |
| 89 | delete-forward-char to remappings (Bug#9666). | 95 | Add delete-forward-char to remappings (Bug#9666). |
| 90 | 96 | ||
| 91 | 2012-03-10 Martin Rudalics <rudalics@gmx.at> | 97 | 2012-03-10 Martin Rudalics <rudalics@gmx.at> |
| 92 | 98 | ||
| 93 | * speedbar.el (speedbar-unhighlight-one-tag-line): Avoid | 99 | * speedbar.el (speedbar-unhighlight-one-tag-line): |
| 94 | unhighlighting due to frame switching (Bug#10275). | 100 | Avoid unhighlighting due to frame switching (Bug#10275). |
| 95 | 101 | ||
| 96 | 2012-03-10 Chong Yidong <cyd@gnu.org> | 102 | 2012-03-10 Chong Yidong <cyd@gnu.org> |
| 97 | 103 | ||
| @@ -115,8 +121,8 @@ | |||
| 115 | 121 | ||
| 116 | 2012-03-09 Eli Zaretskii <eliz@gnu.org> | 122 | 2012-03-09 Eli Zaretskii <eliz@gnu.org> |
| 117 | 123 | ||
| 118 | * mail/smtpmail.el (smtpmail-send-it): Bind | 124 | * mail/smtpmail.el (smtpmail-send-it): |
| 119 | coding-system-for-write to *-unix, so that FCC files are kept in | 125 | Bind coding-system-for-write to *-unix, so that FCC files are kept in |
| 120 | valid mbox format. | 126 | valid mbox format. |
| 121 | 127 | ||
| 122 | 2012-03-09 Glenn Morris <rgm@gnu.org> | 128 | 2012-03-09 Glenn Morris <rgm@gnu.org> |
| @@ -127,8 +133,8 @@ | |||
| 127 | 133 | ||
| 128 | 2012-03-08 Eli Zaretskii <eliz@gnu.org> | 134 | 2012-03-08 Eli Zaretskii <eliz@gnu.org> |
| 129 | 135 | ||
| 130 | * international/quail.el (quail-insert-kbd-layout): Insert | 136 | * international/quail.el (quail-insert-kbd-layout): |
| 131 | invisible LRM characters before each character in a keyboard | 137 | Insert invisible LRM characters before each character in a keyboard |
| 132 | layout cell, to prevent their reordering by bidi display engine. | 138 | layout cell, to prevent their reordering by bidi display engine. |
| 133 | For details, see the discussion in | 139 | For details, see the discussion in |
| 134 | http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00085.html. | 140 | http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00085.html. |
| @@ -147,8 +153,8 @@ | |||
| 147 | 153 | ||
| 148 | 2012-03-07 Eli Zaretskii <eliz@gnu.org> | 154 | 2012-03-07 Eli Zaretskii <eliz@gnu.org> |
| 149 | 155 | ||
| 150 | * international/quail.el (quail-help): Force | 156 | * international/quail.el (quail-help): |
| 151 | bidi-paragraph-direction be left-to-right. See discussion in | 157 | Force bidi-paragraph-direction be left-to-right. See discussion in |
| 152 | http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00062.html | 158 | http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00062.html |
| 153 | for the reason. | 159 | for the reason. |
| 154 | 160 | ||
| @@ -280,16 +286,16 @@ | |||
| 280 | New variables for... | 286 | New variables for... |
| 281 | (c-state-semi-safe-place): New function. Here, in a macro is "safe". | 287 | (c-state-semi-safe-place): New function. Here, in a macro is "safe". |
| 282 | (c-invalidate-state-cache-1): New stuff for c-state-semi-safe-place. | 288 | (c-invalidate-state-cache-1): New stuff for c-state-semi-safe-place. |
| 283 | (c-in-literal, c-literal-limits, c-determine-limit-get-base): Use | 289 | (c-in-literal, c-literal-limits, c-determine-limit-get-base): |
| 284 | c-state-semi-safe-place. | 290 | Use c-state-semi-safe-place. |
| 285 | 291 | ||
| 286 | * progmodes/cc-langs.el (c-get-state-before-change-functions): Add | 292 | * progmodes/cc-langs.el (c-get-state-before-change-functions): |
| 287 | c-invalidate-macro-cache to the C, C++, Obj entries. | 293 | Add c-invalidate-macro-cache to the C, C++, Obj entries. |
| 288 | 294 | ||
| 289 | 2012-03-02 Michael Albinus <michael.albinus@gmx.de> | 295 | 2012-03-02 Michael Albinus <michael.albinus@gmx.de> |
| 290 | 296 | ||
| 291 | * jka-compr.el (jka-compr-call-process): Apply | 297 | * jka-compr.el (jka-compr-call-process): |
| 292 | `file-accessible-directory-p' only when the default directory is | 298 | Apply `file-accessible-directory-p' only when the default directory is |
| 293 | not remote. | 299 | not remote. |
| 294 | 300 | ||
| 295 | 2012-03-01 Michael Albinus <michael.albinus@gmx.de> | 301 | 2012-03-01 Michael Albinus <michael.albinus@gmx.de> |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 1a1a37258c4..6a6bba13523 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -162,7 +162,7 @@ Like CL's `some'." | |||
| 162 | (defun complete-with-action (action table string pred) | 162 | (defun complete-with-action (action table string pred) |
| 163 | "Perform completion ACTION. | 163 | "Perform completion ACTION. |
| 164 | STRING is the string to complete. | 164 | STRING is the string to complete. |
| 165 | TABLE is the completion table, which should not be a function. | 165 | TABLE is the completion table. |
| 166 | PRED is a completion predicate. | 166 | PRED is a completion predicate. |
| 167 | ACTION can be one of nil, t or `lambda'." | 167 | ACTION can be one of nil, t or `lambda'." |
| 168 | (cond | 168 | (cond |
| @@ -776,7 +776,8 @@ scroll the window of possible completions." | |||
| 776 | (interactive) | 776 | (interactive) |
| 777 | ;; If the previous command was not this, | 777 | ;; If the previous command was not this, |
| 778 | ;; mark the completion buffer obsolete. | 778 | ;; mark the completion buffer obsolete. |
| 779 | (unless (eq this-command last-command) | 779 | (setq this-command 'completion-at-point) |
| 780 | (unless (eq 'completion-at-point last-command) | ||
| 780 | (completion--flush-all-sorted-completions) | 781 | (completion--flush-all-sorted-completions) |
| 781 | (setq minibuffer-scroll-window nil)) | 782 | (setq minibuffer-scroll-window nil)) |
| 782 | 783 | ||