diff options
| author | Stefan Monnier | 2009-09-24 02:37:37 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-09-24 02:37:37 +0000 |
| commit | 075518b529153bbd7d169d4aa9b6b127ec2d8682 (patch) | |
| tree | 1895413893ffa530e094f3685444c89b89d02d92 | |
| parent | 8ad2defcbb0ee596a926ebb77cbe2146574292d2 (diff) | |
| download | emacs-075518b529153bbd7d169d4aa9b6b127ec2d8682.tar.gz emacs-075518b529153bbd7d169d4aa9b6b127ec2d8682.zip | |
(minibuffer-force-complete): Cycle the list, rather
than just dropping elements from it (bug#4504).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e216b9e1c7f..d41c8f2d0ac 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-09-24 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * minibuffer.el (minibuffer-force-complete): Cycle the list, rather | ||
| 4 | than just dropping elements from it (bug#4504). | ||
| 5 | |||
| 3 | * term.el (term-set-scroll-region): Don't move cursor any more. | 6 | * term.el (term-set-scroll-region): Don't move cursor any more. |
| 4 | (term-handle-ansi-escape): Call term-goto here instead. | 7 | (term-handle-ansi-escape): Call term-goto here instead. |
| 5 | Suggested by Ivan Kanis <apple@kanis.eu>. | 8 | Suggested by Ivan Kanis <apple@kanis.eu>. |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 90490973f80..8f2de068444 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -546,7 +546,9 @@ Repeated uses step through the possible completions." | |||
| 546 | ;; completion-all-sorted-completions to nil, but we prefer not to, | 546 | ;; completion-all-sorted-completions to nil, but we prefer not to, |
| 547 | ;; so that repeated calls minibuffer-force-complete still cycle | 547 | ;; so that repeated calls minibuffer-force-complete still cycle |
| 548 | ;; through the previous possible completions. | 548 | ;; through the previous possible completions. |
| 549 | (setq completion-all-sorted-completions (cdr all))))) | 549 | (let ((last (last all))) |
| 550 | (setcdr last (cons (car all) (cdr last))) | ||
| 551 | (setq completion-all-sorted-completions (cdr all)))))) | ||
| 550 | 552 | ||
| 551 | (defvar minibuffer-confirm-exit-commands | 553 | (defvar minibuffer-confirm-exit-commands |
| 552 | '(minibuffer-complete minibuffer-complete-word PC-complete PC-complete-word) | 554 | '(minibuffer-complete minibuffer-complete-word PC-complete PC-complete-word) |