diff options
| author | Leo Liu | 2014-06-20 08:14:43 +0800 |
|---|---|---|
| committer | Leo Liu | 2014-06-20 08:14:43 +0800 |
| commit | 2c25d5e6216d556a85f9c01bba5671f41637e11f (patch) | |
| tree | 862dde4019d111a0509a9441ee60404112fc0e4d | |
| parent | e9638b49e53127fe410fbc3689c1d781c61e09b7 (diff) | |
| download | emacs-2c25d5e6216d556a85f9c01bba5671f41637e11f.tar.gz emacs-2c25d5e6216d556a85f9c01bba5671f41637e11f.zip | |
* simple.el (read-quoted-char): Don't let help chars pop up help
buffer.
Fixes: debbugs:16617
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 90798ab722e..51c7332a9a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-06-20 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * simple.el (read-quoted-char): Don't let help chars pop up help | ||
| 4 | buffer. (Bug#16617) | ||
| 5 | |||
| 1 | 2014-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-06-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && as | 8 | * progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && as |
diff --git a/lisp/simple.el b/lisp/simple.el index 4cc6e56aef8..d7f5b418302 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -658,11 +658,16 @@ any other terminator is used itself as input. | |||
| 658 | The optional argument PROMPT specifies a string to use to prompt the user. | 658 | The optional argument PROMPT specifies a string to use to prompt the user. |
| 659 | The variable `read-quoted-char-radix' controls which radix to use | 659 | The variable `read-quoted-char-radix' controls which radix to use |
| 660 | for numeric input." | 660 | for numeric input." |
| 661 | (let ((message-log-max nil) done (first t) (code 0) translated) | 661 | (let ((message-log-max nil) |
| 662 | (help-events (delq nil (mapcar (lambda (c) (unless (characterp c) c)) | ||
| 663 | help-event-list))) | ||
| 664 | done (first t) (code 0) translated) | ||
| 662 | (while (not done) | 665 | (while (not done) |
| 663 | (let ((inhibit-quit first) | 666 | (let ((inhibit-quit first) |
| 664 | ;; Don't let C-h get the help message--only help function keys. | 667 | ;; Don't let C-h or other help chars get the help |
| 668 | ;; message--only help function keys. See bug#16617. | ||
| 665 | (help-char nil) | 669 | (help-char nil) |
| 670 | (help-event-list help-events) | ||
| 666 | (help-form | 671 | (help-form |
| 667 | "Type the special character you want to use, | 672 | "Type the special character you want to use, |
| 668 | or the octal character code. | 673 | or the octal character code. |