diff options
| author | Barry O'Reilly | 2012-08-14 08:11:59 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-08-14 08:11:59 -0400 |
| commit | 8e99d072be7ce8aff322d65dc87527c4118722f2 (patch) | |
| tree | fa7f5e72710ddb2460341faa17aebb847029cf48 /src | |
| parent | 96154d32d5f34f99218a85ce0381b3ba21431645 (diff) | |
| download | emacs-8e99d072be7ce8aff322d65dc87527c4118722f2.tar.gz emacs-8e99d072be7ce8aff322d65dc87527c4118722f2.zip | |
* src/keyboard.c (access_keymap_keyremap): Accept anonymous functions.
Fixes: debbugs:12022
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/lisp.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cf24ee95a05..93dc127acdc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-14 Barry OReilly <gundaetiapo@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * keyboard.c (access_keymap_keyremap): Accept anonymous functions | ||
| 4 | (bug#12022). | ||
| 5 | |||
| 1 | 2012-08-14 Martin Rudalics <rudalics@gmx.at> | 6 | 2012-08-14 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * frame.c (make_frame_without_minibuffer, make_minibuffer_frame) | 8 | * frame.c (make_frame_without_minibuffer, make_minibuffer_frame) |
diff --git a/src/keyboard.c b/src/keyboard.c index 5ed1f9f2c69..a286e9f3036 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -8836,7 +8836,7 @@ access_keymap_keyremap (Lisp_Object map, Lisp_Object key, Lisp_Object prompt, | |||
| 8836 | /* If the keymap gives a function, not an | 8836 | /* If the keymap gives a function, not an |
| 8837 | array, then call the function with one arg and use | 8837 | array, then call the function with one arg and use |
| 8838 | its value instead. */ | 8838 | its value instead. */ |
| 8839 | if (SYMBOLP (next) && !NILP (Ffboundp (next)) && do_funcall) | 8839 | if (do_funcall && FUNCTIONP (next)) |
| 8840 | { | 8840 | { |
| 8841 | Lisp_Object tem; | 8841 | Lisp_Object tem; |
| 8842 | tem = next; | 8842 | tem = next; |
diff --git a/src/lisp.h b/src/lisp.h index 3dbea6e0f72..f6aa46d3f41 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -641,7 +641,7 @@ clip_to_bounds (ptrdiff_t lower, EMACS_INT num, ptrdiff_t upper) | |||
| 641 | 641 | ||
| 642 | typedef struct interval *INTERVAL; | 642 | typedef struct interval *INTERVAL; |
| 643 | 643 | ||
| 644 | /* Complain if object is not string or buffer type */ | 644 | /* Complain if object is not string or buffer type. */ |
| 645 | #define CHECK_STRING_OR_BUFFER(x) \ | 645 | #define CHECK_STRING_OR_BUFFER(x) \ |
| 646 | CHECK_TYPE (STRINGP (x) || BUFFERP (x), Qbuffer_or_string_p, x) | 646 | CHECK_TYPE (STRINGP (x) || BUFFERP (x), Qbuffer_or_string_p, x) |
| 647 | 647 | ||