diff options
| author | Stefan Monnier | 2013-10-29 17:05:35 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-29 17:05:35 -0400 |
| commit | 4c9797cb77cee0d72084567ed8a7e97fcf41abff (patch) | |
| tree | 265ecd2bdf1b46c832f48c3a7a4ffe1378c20ffd /lisp | |
| parent | dcd163ac993757af6afa129b8625e3ea1c43973a (diff) | |
| download | emacs-4c9797cb77cee0d72084567ed8a7e97fcf41abff.tar.gz emacs-4c9797cb77cee0d72084567ed8a7e97fcf41abff.zip | |
* src/keyboard.c (command_loop_1): If command is nil, call `undefined'.
* lisp/subr.el (undefined): Add missing behavior from the C code for
unbound keys.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/subr.el | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 988047c9bc0..f15ba16da11 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-10-29 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2013-10-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * subr.el (undefined): Add missing behavior from the C code for | ||
| 4 | unbound keys. | ||
| 5 | |||
| 3 | * rect.el: Use lexical-binding. Add new rectangular region support. | 6 | * rect.el: Use lexical-binding. Add new rectangular region support. |
| 4 | (rectangle-mark): New command. | 7 | (rectangle-mark): New command. |
| 5 | (rectangle--region): New var. | 8 | (rectangle--region): New var. |
diff --git a/lisp/subr.el b/lisp/subr.el index ae1db6652db..0267366f1a8 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -586,7 +586,15 @@ saving keyboard macros (see `edmacro-mode')." | |||
| 586 | (defun undefined () | 586 | (defun undefined () |
| 587 | "Beep to tell the user this binding is undefined." | 587 | "Beep to tell the user this binding is undefined." |
| 588 | (interactive) | 588 | (interactive) |
| 589 | (ding)) | 589 | (ding) |
| 590 | (message "%s is undefined" (key-description (this-single-command-keys))) | ||
| 591 | (setq defining-kbd-macro nil) | ||
| 592 | (force-mode-line-update) | ||
| 593 | ;; If this is a down-mouse event, don't reset prefix-arg; | ||
| 594 | ;; pass it to the command run by the up event. | ||
| 595 | (setq prefix-arg | ||
| 596 | (when (memq 'down (event-modifiers last-command-event)) | ||
| 597 | current-prefix-arg))) | ||
| 590 | 598 | ||
| 591 | ;; Prevent the \{...} documentation construct | 599 | ;; Prevent the \{...} documentation construct |
| 592 | ;; from mentioning keys that run this command. | 600 | ;; from mentioning keys that run this command. |