diff options
| author | Richard M. Stallman | 1995-10-19 00:17:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-19 00:17:11 +0000 |
| commit | c2b714dee02bbd6e7b759a2a44ec0bc63ab2e84c (patch) | |
| tree | ccc2e67685ee276686b98b4e1962dfe34fd4c799 /src/keymap.c | |
| parent | b0053d118b3b5b58268579c270580c4a75afff36 (diff) | |
| download | emacs-c2b714dee02bbd6e7b759a2a44ec0bc63ab2e84c.tar.gz emacs-c2b714dee02bbd6e7b759a2a44ec0bc63ab2e84c.zip | |
(describe_map_tree): New arg always_title. Callers changed.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/keymap.c b/src/keymap.c index fd5d148cee1..de03a784879 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1874,7 +1874,7 @@ nominal alternate\n\ | |||
| 1874 | 1874 | ||
| 1875 | if (!NILP (Vkey_translation_map)) | 1875 | if (!NILP (Vkey_translation_map)) |
| 1876 | describe_map_tree (Vkey_translation_map, 0, Qnil, prefix, | 1876 | describe_map_tree (Vkey_translation_map, 0, Qnil, prefix, |
| 1877 | "Key translations", 0, 1); | 1877 | "Key translations", 0, 1, 0); |
| 1878 | 1878 | ||
| 1879 | { | 1879 | { |
| 1880 | int i, nmaps; | 1880 | int i, nmaps; |
| @@ -1913,7 +1913,7 @@ nominal alternate\n\ | |||
| 1913 | p += sizeof (" Minor Mode Bindings") - 1; | 1913 | p += sizeof (" Minor Mode Bindings") - 1; |
| 1914 | *p = 0; | 1914 | *p = 0; |
| 1915 | 1915 | ||
| 1916 | describe_map_tree (maps[i], 0, shadow, prefix, title, 0, 0); | 1916 | describe_map_tree (maps[i], 0, shadow, prefix, title, 0, 0, 0); |
| 1917 | shadow = Fcons (maps[i], shadow); | 1917 | shadow = Fcons (maps[i], shadow); |
| 1918 | } | 1918 | } |
| 1919 | } | 1919 | } |
| @@ -1929,17 +1929,17 @@ nominal alternate\n\ | |||
| 1929 | if (!NILP (start1)) | 1929 | if (!NILP (start1)) |
| 1930 | { | 1930 | { |
| 1931 | describe_map_tree (start1, 0, shadow, prefix, | 1931 | describe_map_tree (start1, 0, shadow, prefix, |
| 1932 | "Major Mode Bindings", 0, 0); | 1932 | "Major Mode Bindings", 0, 0, 0); |
| 1933 | shadow = Fcons (start1, shadow); | 1933 | shadow = Fcons (start1, shadow); |
| 1934 | } | 1934 | } |
| 1935 | 1935 | ||
| 1936 | describe_map_tree (current_global_map, 0, shadow, prefix, | 1936 | describe_map_tree (current_global_map, 0, shadow, prefix, |
| 1937 | "Global Bindings", 0, 0); | 1937 | "Global Bindings", 0, 0, 1); |
| 1938 | 1938 | ||
| 1939 | /* Print the function-key-map translations under this prefix. */ | 1939 | /* Print the function-key-map translations under this prefix. */ |
| 1940 | if (!NILP (Vfunction_key_map)) | 1940 | if (!NILP (Vfunction_key_map)) |
| 1941 | describe_map_tree (Vfunction_key_map, 0, Qnil, prefix, | 1941 | describe_map_tree (Vfunction_key_map, 0, Qnil, prefix, |
| 1942 | "Function key map translations", 0, 1); | 1942 | "Function key map translations", 0, 1, 0); |
| 1943 | 1943 | ||
| 1944 | call0 (intern ("help-mode")); | 1944 | call0 (intern ("help-mode")); |
| 1945 | Fset_buffer (descbuf); | 1945 | Fset_buffer (descbuf); |
| @@ -1959,15 +1959,20 @@ nominal alternate\n\ | |||
| 1959 | If NOMENU is not 0, then omit menu-bar commands. | 1959 | If NOMENU is not 0, then omit menu-bar commands. |
| 1960 | 1960 | ||
| 1961 | If TRANSL is nonzero, the definitions are actually key translations | 1961 | If TRANSL is nonzero, the definitions are actually key translations |
| 1962 | so print strings and vectors differently. */ | 1962 | so print strings and vectors differently. |
| 1963 | |||
| 1964 | If ALWAYS_TITLE is nonzero, print the title even if there are no maps | ||
| 1965 | to look through. */ | ||
| 1963 | 1966 | ||
| 1964 | void | 1967 | void |
| 1965 | describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl) | 1968 | describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl, |
| 1969 | always_title) | ||
| 1966 | Lisp_Object startmap, shadow, prefix; | 1970 | Lisp_Object startmap, shadow, prefix; |
| 1967 | int partial; | 1971 | int partial; |
| 1968 | char *title; | 1972 | char *title; |
| 1969 | int nomenu; | 1973 | int nomenu; |
| 1970 | int transl; | 1974 | int transl; |
| 1975 | int always_title; | ||
| 1971 | { | 1976 | { |
| 1972 | Lisp_Object maps, seen, sub_shadows; | 1977 | Lisp_Object maps, seen, sub_shadows; |
| 1973 | struct gcpro gcpro1, gcpro2, gcpro3; | 1978 | struct gcpro gcpro1, gcpro2, gcpro3; |
| @@ -2002,7 +2007,7 @@ key binding\n\ | |||
| 2002 | } | 2007 | } |
| 2003 | } | 2008 | } |
| 2004 | 2009 | ||
| 2005 | if (!NILP (maps)) | 2010 | if (!NILP (maps) || always_title) |
| 2006 | { | 2011 | { |
| 2007 | if (title) | 2012 | if (title) |
| 2008 | { | 2013 | { |