diff options
| author | Richard M. Stallman | 2005-02-15 06:36:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-15 06:36:17 +0000 |
| commit | e679a3c1d50168cffb09f8a8f9128f8fdc07b355 (patch) | |
| tree | 33c3ba766dadb1f68f0bf719fd61e6fc6ef2668e | |
| parent | 7a7df7ac8f5dbe0cfe36578bc5bac3032f634e48 (diff) | |
| download | emacs-e679a3c1d50168cffb09f8a8f9128f8fdc07b355.tar.gz emacs-e679a3c1d50168cffb09f8a8f9128f8fdc07b355.zip | |
(Fsubstitute_command_keys): Compute list of shadowing maps
for describe_map_tree. Pass 1 for MENTION_SHADOWS.
| -rw-r--r-- | src/doc.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -882,6 +882,9 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 882 | { | 882 | { |
| 883 | struct buffer *oldbuf; | 883 | struct buffer *oldbuf; |
| 884 | int start_idx; | 884 | int start_idx; |
| 885 | /* This is for computing the SHADOWS arg for describe_map_tree. */ | ||
| 886 | Lisp_Object active_maps = Fcurrent_active_maps (Qnil); | ||
| 887 | Lisp_Object earlier_maps; | ||
| 885 | 888 | ||
| 886 | changed = 1; | 889 | changed = 1; |
| 887 | strp += 2; /* skip \{ or \< */ | 890 | strp += 2; /* skip \{ or \< */ |
| @@ -932,7 +935,13 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 932 | else if (start[-1] == '<') | 935 | else if (start[-1] == '<') |
| 933 | keymap = tem; | 936 | keymap = tem; |
| 934 | else | 937 | else |
| 935 | describe_map_tree (tem, 1, Qnil, Qnil, (char *)0, 1, 0, 0); | 938 | { |
| 939 | /* Get the list of active keymaps that precede this one. | ||
| 940 | If this one's not active, get nil. */ | ||
| 941 | earlier_maps = Fcdr (Fmemq (tem, Freverse (active_maps))); | ||
| 942 | describe_map_tree (tem, 1, Fnreverse (earlier_maps), | ||
| 943 | Qnil, (char *)0, 1, 0, 0, 1); | ||
| 944 | } | ||
| 936 | tem = Fbuffer_string (); | 945 | tem = Fbuffer_string (); |
| 937 | Ferase_buffer (); | 946 | Ferase_buffer (); |
| 938 | set_buffer_internal (oldbuf); | 947 | set_buffer_internal (oldbuf); |