diff options
| author | Stefan Monnier | 2012-11-13 11:59:34 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-13 11:59:34 -0500 |
| commit | fa470af020b518efb92a7213ac805a9d5d0b6061 (patch) | |
| tree | bc8ce17844d15213832b7c5909de8f4f8fb41fa9 | |
| parent | 3c442f8b25bf6acc52c45a1f9966b8529ea936d2 (diff) | |
| download | emacs-fa470af020b518efb92a7213ac805a9d5d0b6061.tar.gz emacs-fa470af020b518efb92a7213ac805a9d5d0b6061.zip | |
* lisp/woman.el (woman-file-name): Don't mess with unread-command-events.
Fixes: debbugs:12861
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/woman.el | 12 |
2 files changed, 12 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 72754190cf3..7ebd3632dda 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-11-13 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-11-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * woman.el (woman-file-name): Don't mess with unread-command-events | ||
| 4 | (bug#12861). | ||
| 5 | |||
| 3 | * emacs-lisp/advice.el: Layer on top of nadvice.el. | 6 | * emacs-lisp/advice.el: Layer on top of nadvice.el. |
| 4 | Remove out of date self-require hack. | 7 | Remove out of date self-require hack. |
| 5 | (ad-do-advised-functions): Use simple `dolist'. | 8 | (ad-do-advised-functions): Use simple `dolist'. |
| @@ -7,9 +10,9 @@ | |||
| 7 | (ad-advice-definition): Redefine as functions. | 10 | (ad-advice-definition): Redefine as functions. |
| 8 | (ad-advice-classes): Move before first use. | 11 | (ad-advice-classes): Move before first use. |
| 9 | (ad-make-origname, ad-set-orig-definition, ad-clear-orig-definition) | 12 | (ad-make-origname, ad-set-orig-definition, ad-clear-orig-definition) |
| 10 | (ad-make-mapped-call, ad-make-advised-docstring, ad-make-plain-docstring) | 13 | (ad-make-mapped-call, ad-make-advised-docstring,ad-make-plain-docstring) |
| 11 | (ad--defalias-fset): Remove functions. | 14 | (ad--defalias-fset): Remove functions. |
| 12 | (ad-make-advicefunname, ad-clear-advicefunname-definition): New functions. | 15 | (ad-make-advicefunname, ad-clear-advicefunname-definition): New funs. |
| 13 | (ad-get-orig-definition): Rewrite. | 16 | (ad-get-orig-definition): Rewrite. |
| 14 | (ad-make-advised-definition-docstring): Change base docstring. | 17 | (ad-make-advised-definition-docstring): Change base docstring. |
| 15 | (ad-real-orig-definition): Rewrite. | 18 | (ad-real-orig-definition): Rewrite. |
| @@ -17,7 +20,7 @@ | |||
| 17 | (ad--make-advised-docstring): Redirect `function' from ad-Advice-... | 20 | (ad--make-advised-docstring): Redirect `function' from ad-Advice-... |
| 18 | (ad-make-advised-definition): Simplify. | 21 | (ad-make-advised-definition): Simplify. |
| 19 | (ad-assemble-advised-definition): Tweak for new calling context. | 22 | (ad-assemble-advised-definition): Tweak for new calling context. |
| 20 | (ad-activate-advised-definition): Setup ad-Advice-* instead of ad-Orig-*. | 23 | (ad-activate-advised-definition): Setup ad-Advice-* i.s.o ad-Orig-*. |
| 21 | (ad--defalias-fset): Rename from ad-handle-definition. Make it set the | 24 | (ad--defalias-fset): Rename from ad-handle-definition. Make it set the |
| 22 | function and call ad-activate if needed. | 25 | function and call ad-activate if needed. |
| 23 | (ad-activate, ad-deactivate): Don't call ad-handle-definition any more. | 26 | (ad-activate, ad-deactivate): Don't call ad-handle-definition any more. |
diff --git a/lisp/woman.el b/lisp/woman.el index 974a7d72465..46b6b680440 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -1303,12 +1303,12 @@ cache to be re-read." | |||
| 1303 | ((null (cdr files)) (car (car files))) ; only 1 file for topic. | 1303 | ((null (cdr files)) (car (car files))) ; only 1 file for topic. |
| 1304 | (t | 1304 | (t |
| 1305 | ;; Multiple files for topic, so must select 1. | 1305 | ;; Multiple files for topic, so must select 1. |
| 1306 | ;; Unread the command event (TAB = ?\t = 9) that runs the command | 1306 | ;; Run the command `minibuffer-complete' in order to automatically |
| 1307 | ;; `minibuffer-complete' in order to automatically complete the | 1307 | ;; complete the minibuffer contents as far as possible. |
| 1308 | ;; minibuffer contents as far as possible. | 1308 | (minibuffer-with-setup-hook |
| 1309 | (setq unread-command-events '(9)) ; and delete any type-ahead! | 1309 | (lambda () (let ((this-command this-command)) (minibuffer-complete))) |
| 1310 | (completing-read "Manual file: " files nil 1 | 1310 | (completing-read "Manual file: " files nil 1 |
| 1311 | (try-completion "" files) 'woman-file-history)))))) | 1311 | (try-completion "" files) 'woman-file-history))))))) |
| 1312 | 1312 | ||
| 1313 | (defun woman-select (predicate list) | 1313 | (defun woman-select (predicate list) |
| 1314 | "Select unique elements for which PREDICATE is true in LIST. | 1314 | "Select unique elements for which PREDICATE is true in LIST. |