emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 55dadbc: * lisp/net/dictionary.el (context-menu-dictionary): Mo


From: Juri Linkov
Subject: emacs-28 55dadbc: * lisp/net/dictionary.el (context-menu-dictionary): Move menu item down.
Date: Sat, 2 Oct 2021 15:23:04 -0400 (EDT)

branch: emacs-28
commit 55dadbc57e5e89bd6aa67d26c5dc1a32a0a279fc
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/net/dictionary.el (context-menu-dictionary): Move menu item down.
    
    Place the dictionary menu item after middle-separator (bug#50552).
---
 lisp/net/dictionary.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
index 86447c2..1d07989 100644
--- a/lisp/net/dictionary.el
+++ b/lisp/net/dictionary.el
@@ -1382,10 +1382,12 @@ When you add this function to `context-menu-functions',
 the context menu will contain an item that searches
 the word at mouse click."
   (when (thing-at-mouse click 'word)
-    (define-key menu [dictionary-separator] menu-bar-separator)
-    (define-key menu [dictionary-search-word-at-mouse]
+    (define-key-after menu [dictionary-separator] menu-bar-separator
+      'middle-separator)
+    (define-key-after menu [dictionary-search-word-at-mouse]
       '(menu-item "Dictionary Search" dictionary-search-word-at-mouse
-                  :help "Search the word at mouse click in dictionary")))
+                  :help "Search the word at mouse click in dictionary")
+      'dictionary-separator))
   menu)
 
 (provide 'dictionary)



reply via email to

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