summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuguang Sun <shuguang79@qq.com>2021-10-05 13:14:50 +0800
committerVedang Manerikar <ved.manerikar@gmail.com>2021-11-10 10:43:59 +0530
commita8847b75d3487d60e27762816bdbdd23b6dc1c11 (patch)
tree9bac695fa71905440c488502a8ee5dd1b222d08b
parentd976e47c39b620dcc16873a1a422943bace5f963 (diff)
Adapt Emacs' easy-menu change #50
Emacs had made some change to the easy-menu system, that is, `easy-menu-define` lowers the menu-bar key automatically. Ref: https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-09/msg02038.html Closes #50 Signed-off-by: Shuguang Sun <shuguang79@qq.com>
-rw-r--r--lisp/pdf-misc.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/pdf-misc.el b/lisp/pdf-misc.el
index 62cf599..c0548ad 100644
--- a/lisp/pdf-misc.el
+++ b/lisp/pdf-misc.el
@@ -192,8 +192,10 @@
(interactive "@e")
(popup-menu
(cons 'keymap
- (cddr (lookup-key pdf-misc-menu-bar-minor-mode-map
- [menu-bar PDF\ Tools])))))
+ (cddr (or (lookup-key pdf-misc-menu-bar-minor-mode-map
+ [menu-bar PDF\ Tools])
+ (lookup-key pdf-misc-menu-bar-minor-mode-map
+ [menu-bar pdf\ tools]))))))
(defun pdf-misc-display-metadata ()
"Display all available metadata in a separate buffer."