emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 03a40b974c: term--update-term-menu: Add the menu to term-termin


From: Sean Whitton
Subject: emacs-29 03a40b974c: term--update-term-menu: Add the menu to term-terminal-menu
Date: Thu, 1 Dec 2022 17:14:48 -0500 (EST)

branch: emacs-29
commit 03a40b974c47f99c7d7fb00638b2c8371ede7af4
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@spwhitton.name>

    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.
---
 lisp/term.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/term.el b/lisp/term.el
index 6f3306b088..550aa781cc 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -976,7 +976,7 @@ underlying shell."
                                        'term-mode))
             (buffer-list))))
       (easy-menu-change
-       '("Terminal")
+       nil
        "Terminal Buffers"
        (mapcar
         (lambda (buffer)
@@ -986,7 +986,9 @@ underlying shell."
                   (lambda ()
                     (interactive)
                     (switch-to-buffer buffer))))
-        buffer-list)))))
+        buffer-list)
+       nil
+       term-terminal-menu))))
 
 (easy-menu-define term-signals-menu
  (list term-mode-map term-raw-map term-pager-break-map)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]