summaryrefslogtreecommitdiff
path: root/src/doc.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-12-31 03:05:39 +0000
committerRichard M. Stallman <rms@gnu.org>1993-12-31 03:05:39 +0000
commitf708a06f1d303436dcb9cc96437cdee8d1bd7b84 (patch)
tree472c5826cd2d7ad1d2665a045d4cedbb48376657 /src/doc.c
parent94fc635f081acd6c1ec67627580d96055de10629 (diff)
downloademacs-f708a06f1d303436dcb9cc96437cdee8d1bd7b84.tar.gz
(Fsubstitute_command_keys): Fix previous change.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index aee321c3420..616ee271a69 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -430,9 +430,12 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
/* Disregard menu bar bindings; it is positively annoying to
mention them when there's no menu bar, and it isn't terribly
useful even when there is a menu bar. */
- firstkey = Faref (tem, make_number (0));
- if (EQ (firstkey, Qmenu_bar))
- tem = Qnil;
+ if (!NILP (tem))
+ {
+ firstkey = Faref (tem, make_number (0));
+ if (EQ (firstkey, Qmenu_bar))
+ tem = Qnil;
+ }
if (NILP (tem)) /* but not on any keys */
{