aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c21
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
1964void 1967void
1965describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl) 1968describe_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 {