term--update-term-menu: Add the menu to term-terminal-menu
Reading bug#5641, the intention was to add this to the existing "Terminal" menu for term-mode buffers, not to the local keymaps of all other buffers. Moreover, the existing code signaled errors when switching to buffers with no local keymap, such as term-mode buffers whose processes have died. * lisp/term.el (term--update-term-menu): Add the menu to term-terminal-menu, instead of implicitly trying to add it to every local keymap.
This commit is contained in:
parent
368c7c7d8e
commit
03a40b974c
1 changed files with 4 additions and 2 deletions
|
@ -976,7 +976,7 @@ underlying shell."
|
||||||
'term-mode))
|
'term-mode))
|
||||||
(buffer-list))))
|
(buffer-list))))
|
||||||
(easy-menu-change
|
(easy-menu-change
|
||||||
'("Terminal")
|
nil
|
||||||
"Terminal Buffers"
|
"Terminal Buffers"
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (buffer)
|
(lambda (buffer)
|
||||||
|
@ -986,7 +986,9 @@ underlying shell."
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(switch-to-buffer buffer))))
|
(switch-to-buffer buffer))))
|
||||||
buffer-list)))))
|
buffer-list)
|
||||||
|
nil
|
||||||
|
term-terminal-menu))))
|
||||||
|
|
||||||
(easy-menu-define term-signals-menu
|
(easy-menu-define term-signals-menu
|
||||||
(list term-mode-map term-raw-map term-pager-break-map)
|
(list term-mode-map term-raw-map term-pager-break-map)
|
||||||
|
|
Loading…
Add table
Reference in a new issue