diff options
| author | Richard M. Stallman | 1994-04-16 03:50:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-16 03:50:38 +0000 |
| commit | 5964e4506617613f833e333483ae099489fbc427 (patch) | |
| tree | 9fa0e71334debd339fac00f2e5f5ff07ae465725 /src | |
| parent | 71e61810da1b724619df213a294daeb5294f2194 (diff) | |
| download | emacs-5964e4506617613f833e333483ae099489fbc427.tar.gz emacs-5964e4506617613f833e333483ae099489fbc427.zip | |
(xmenu_show): Don't cons on subprefix_stck[j] if nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 9614e752430..83f559a1fdc 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1727,7 +1727,8 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) | |||
| 1727 | if (!NILP (prefix)) | 1727 | if (!NILP (prefix)) |
| 1728 | entry = Fcons (prefix, entry); | 1728 | entry = Fcons (prefix, entry); |
| 1729 | for (j = submenu_depth - 1; j >= 0; j--) | 1729 | for (j = submenu_depth - 1; j >= 0; j--) |
| 1730 | entry = Fcons (subprefix_stack[j], entry); | 1730 | if (!NILP (subprefix_stack[j], entry)) |
| 1731 | entry = Fcons (subprefix_stack[j], entry); | ||
| 1731 | } | 1732 | } |
| 1732 | return entry; | 1733 | return entry; |
| 1733 | } | 1734 | } |