diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/doc.c | 21 | ||||
| -rw-r--r-- | src/keymap.c | 8 | ||||
| -rw-r--r-- | src/keymap.h | 2 |
4 files changed, 25 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 16bd1659b34..d8d14005d1e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-05-30 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * keymap.c (describe_map_tree): Revert 2011-07-07 change (Bug#1169). | ||
| 4 | |||
| 5 | * doc.c (Fsubstitute_command_keys): Doc fix. | ||
| 6 | |||
| 1 | 2012-05-29 Eli Zaretskii <eliz@gnu.org> | 7 | 2012-05-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * search.c (search_buffer): Remove calls to | 9 | * search.c (search_buffer): Remove calls to |
| @@ -698,18 +698,23 @@ the same file name is found in the `doc-directory'. */) | |||
| 698 | DEFUN ("substitute-command-keys", Fsubstitute_command_keys, | 698 | DEFUN ("substitute-command-keys", Fsubstitute_command_keys, |
| 699 | Ssubstitute_command_keys, 1, 1, 0, | 699 | Ssubstitute_command_keys, 1, 1, 0, |
| 700 | doc: /* Substitute key descriptions for command names in STRING. | 700 | doc: /* Substitute key descriptions for command names in STRING. |
| 701 | Substrings of the form \\=\\[COMMAND] replaced by either: a keystroke | 701 | Each substring of the form \\=\\[COMMAND] is replaced by either a |
| 702 | sequence that will invoke COMMAND, or "M-x COMMAND" if COMMAND is not | 702 | keystroke sequence that invokes COMMAND, or "M-x COMMAND" if COMMAND |
| 703 | on any keys. | 703 | is not on any keys. |
| 704 | Substrings of the form \\=\\{MAPVAR} are replaced by summaries | 704 | |
| 705 | \(made by `describe-bindings') of the value of MAPVAR, taken as a keymap. | 705 | Each substring of the form \\=\\{MAPVAR} is replaced by a summary of |
| 706 | Substrings of the form \\=\\<MAPVAR> specify to use the value of MAPVAR | 706 | the value of MAPVAR as a keymap. This summary is similar to the one |
| 707 | produced by `describe-bindings'. The summary ends in two newlines | ||
| 708 | \(used by the helper function `help-make-xrefs' to find the end of the | ||
| 709 | summary). | ||
| 710 | |||
| 711 | Each substring of the form \\=\\<MAPVAR> specifies the use of MAPVAR | ||
| 707 | as the keymap for future \\=\\[COMMAND] substrings. | 712 | as the keymap for future \\=\\[COMMAND] substrings. |
| 708 | \\=\\= quotes the following character and is discarded; | 713 | \\=\\= quotes the following character and is discarded; |
| 709 | thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. | 714 | thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. |
| 710 | 715 | ||
| 711 | Returns original STRING if no substitutions were made. Otherwise, | 716 | Return the original STRING if no substitutions are made. |
| 712 | a new string, without any text properties, is returned. */) | 717 | Otherwise, return a new string, without any text properties. */) |
| 713 | (Lisp_Object string) | 718 | (Lisp_Object string) |
| 714 | { | 719 | { |
| 715 | char *buf; | 720 | char *buf; |
diff --git a/src/keymap.c b/src/keymap.c index 9f82175edc0..73b62f9d4bb 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2978,9 +2978,9 @@ You type Translation\n\ | |||
| 2978 | If MENTION_SHADOW is nonzero, then when something is shadowed by SHADOW, | 2978 | If MENTION_SHADOW is nonzero, then when something is shadowed by SHADOW, |
| 2979 | don't omit it; instead, mention it but say it is shadowed. | 2979 | don't omit it; instead, mention it but say it is shadowed. |
| 2980 | 2980 | ||
| 2981 | Return whether something was inserted or not. */ | 2981 | Any inserted text ends in two newlines (used by `help-make-xrefs'). */ |
| 2982 | 2982 | ||
| 2983 | int | 2983 | void |
| 2984 | describe_map_tree (Lisp_Object startmap, int partial, Lisp_Object shadow, | 2984 | describe_map_tree (Lisp_Object startmap, int partial, Lisp_Object shadow, |
| 2985 | Lisp_Object prefix, const char *title, int nomenu, int transl, | 2985 | Lisp_Object prefix, const char *title, int nomenu, int transl, |
| 2986 | int always_title, int mention_shadow) | 2986 | int always_title, int mention_shadow) |
| @@ -3090,8 +3090,10 @@ key binding\n\ | |||
| 3090 | skip: ; | 3090 | skip: ; |
| 3091 | } | 3091 | } |
| 3092 | 3092 | ||
| 3093 | if (something) | ||
| 3094 | insert_string ("\n"); | ||
| 3095 | |||
| 3093 | UNGCPRO; | 3096 | UNGCPRO; |
| 3094 | return something; | ||
| 3095 | } | 3097 | } |
| 3096 | 3098 | ||
| 3097 | static int previous_description_column; | 3099 | static int previous_description_column; |
diff --git a/src/keymap.h b/src/keymap.h index 234ffce471d..d9334cda0f4 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -47,7 +47,7 @@ EXFUN (Fcurrent_active_maps, 2); | |||
| 47 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, int, int, int); | 47 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, int, int, int); |
| 48 | extern Lisp_Object get_keymap (Lisp_Object, int, int); | 48 | extern Lisp_Object get_keymap (Lisp_Object, int, int); |
| 49 | EXFUN (Fset_keymap_parent, 2); | 49 | EXFUN (Fset_keymap_parent, 2); |
| 50 | extern int describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, | 50 | extern void describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, |
| 51 | const char *, int, int, int, int); | 51 | const char *, int, int, int, int); |
| 52 | extern ptrdiff_t current_minor_maps (Lisp_Object **, Lisp_Object **); | 52 | extern ptrdiff_t current_minor_maps (Lisp_Object **, Lisp_Object **); |
| 53 | extern void initial_define_key (Lisp_Object, int, const char *); | 53 | extern void initial_define_key (Lisp_Object, int, const char *); |