aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKarl Heuer1995-06-16 05:24:27 +0000
committerKarl Heuer1995-06-16 05:24:27 +0000
commite784236dea01e06e6581a4e03db90fdeb253b77d (patch)
tree4c1939d1978b03925c1898d22d7388198d1a3294 /src/keymap.c
parentf73d11631e994a3336588979c1506913ba6188e4 (diff)
downloademacs-e784236dea01e06e6581a4e03db90fdeb253b77d.tar.gz
emacs-e784236dea01e06e6581a4e03db90fdeb253b77d.zip
(Fkey_binding, describe_buffer_bindings):
Check Voverriding_terminal_local_map before Voverriding_local_map.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index e89e9e4501e..57932de4d61 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -887,7 +887,14 @@ recognize the default bindings, just as `read-key-sequence' does.")
887 887
888 GCPRO1 (key); 888 GCPRO1 (key);
889 889
890 if (!NILP (Voverriding_local_map)) 890 if (!NILP (current_kboard->Voverriding_terminal_local_map))
891 {
892 value = Flookup_key (current_kboard->Voverriding_terminal_local_map,
893 key, accept_default);
894 if (! NILP (value) && !INTEGERP (value))
895 RETURN_UNGCPRO (value);
896 }
897 else if (!NILP (Voverriding_local_map))
891 { 898 {
892 value = Flookup_key (Voverriding_local_map, key, accept_default); 899 value = Flookup_key (Voverriding_local_map, key, accept_default);
893 if (! NILP (value) && !INTEGERP (value)) 900 if (! NILP (value) && !INTEGERP (value))
@@ -1843,7 +1850,8 @@ nominal alternate\n\
1843 /* Temporarily switch to descbuf, so that we can get that buffer's 1850 /* Temporarily switch to descbuf, so that we can get that buffer's
1844 minor modes correctly. */ 1851 minor modes correctly. */
1845 Fset_buffer (descbuf); 1852 Fset_buffer (descbuf);
1846 if (!NILP (Voverriding_local_map)) 1853 if (!NILP (current_kboard->Voverriding_terminal_local_map)
1854 || !NILP (Voverriding_local_map))
1847 nmaps = 0; 1855 nmaps = 0;
1848 else 1856 else
1849 nmaps = current_minor_maps (&modes, &maps); 1857 nmaps = current_minor_maps (&modes, &maps);
@@ -1877,7 +1885,9 @@ nominal alternate\n\
1877 } 1885 }
1878 1886
1879 /* Print the (major mode) local map. */ 1887 /* Print the (major mode) local map. */
1880 if (!NILP (Voverriding_local_map)) 1888 if (!NILP (current_kboard->Voverriding_terminal_local_map))
1889 start1 = current_kboard->Voverriding_terminal_local_map;
1890 else if (!NILP (Voverriding_local_map))
1881 start1 = Voverriding_local_map; 1891 start1 = Voverriding_local_map;
1882 else 1892 else
1883 start1 = XBUFFER (descbuf)->keymap; 1893 start1 = XBUFFER (descbuf)->keymap;