diff options
| author | Chong Yidong | 2012-04-27 10:24:38 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-27 10:24:38 +0800 |
| commit | c5bb756916baa63cc663d68d4c24e5ad33a764e8 (patch) | |
| tree | d88d53124dfc2559f3a798bcce00001b1615c3c7 | |
| parent | f2c3a9eb8528c16e1e917b97b4ced689c92d47cf (diff) | |
| download | emacs-c5bb756916baa63cc663d68d4c24e5ad33a764e8.tar.gz emacs-c5bb756916baa63cc663d68d4c24e5ad33a764e8.zip | |
Fix for tool-bar confusion in read-key.
* lisp/subr.el (read-key): Avoid running filter function when setting
up temporary tool bar entries.
Fixes: debbugs:9922
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/subr.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d3fcf971b1..baa8045ccc3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-27 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * subr.el (read-key): Avoid running filter function when setting | ||
| 4 | up temporary tool bar entries (Bug#9922). | ||
| 5 | |||
| 1 | 2012-04-26 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-04-26 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * vc/vc-git.el (vc-git-state): Fix regexp matching diff output. | 8 | * vc/vc-git.el (vc-git-state): Fix regexp matching diff output. |
diff --git a/lisp/subr.el b/lisp/subr.el index 3b120e6ff6a..9b293bb21ac 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2019,7 +2019,10 @@ some sort of escape sequence, the ambiguity is resolved via `read-key-delay'." | |||
| 2019 | (let ((map (make-sparse-keymap))) | 2019 | (let ((map (make-sparse-keymap))) |
| 2020 | ;; Don't hide the menu-bar and tool-bar entries. | 2020 | ;; Don't hide the menu-bar and tool-bar entries. |
| 2021 | (define-key map [menu-bar] (lookup-key global-map [menu-bar])) | 2021 | (define-key map [menu-bar] (lookup-key global-map [menu-bar])) |
| 2022 | (define-key map [tool-bar] (lookup-key global-map [tool-bar])) | 2022 | (define-key map [tool-bar] |
| 2023 | ;; This hack avoids evaluating the :filter (Bug#9922). | ||
| 2024 | (or (cdr (assq 'tool-bar global-map)) | ||
| 2025 | (lookup-key global-map [tool-bar]))) | ||
| 2023 | map)) | 2026 | map)) |
| 2024 | (aref (catch 'read-key (read-key-sequence-vector prompt nil t)) 0)) | 2027 | (aref (catch 'read-key (read-key-sequence-vector prompt nil t)) 0)) |
| 2025 | (cancel-timer timer) | 2028 | (cancel-timer timer) |