Improve 'emacs-news-view-mode' menus and bindings
authorRobert Pluim <rpluim@gmail.com>
Tue, 23 Jul 2024 09:33:44 +0000 (11:33 +0200)
committerRobert Pluim <rpluim@gmail.com>
Tue, 23 Jul 2024 11:49:40 +0000 (13:49 +0200)
commitde9f9add1383c6154805ad4b3738af4c896522e4
treefb2388c5c4529cecd3ae6a96bd880df332ac06a5
parent7588e1f8a9fc95a199a2a32242b5224021a44458
Improve 'emacs-news-view-mode' menus and bindings

* lisp/textmodes/emacs-news-mode.el (emacs-news-mode-map): Move
non-editing commands from here...
(emacs-news-common-map): ... to here.
(emacs-news-view-mode): Remove hard-coded 'special-mode' bindings.
(emacs-news-view-mode-map): Inherit from 'special-mode-map' and
'emacs-news-common-map' here instead.
(emacs-news-mode--menu-common-1): New defconst for menu items common to
'news-mode' and 'news-view-mode'.
(emacs-news-mode--menu-common-2): Second new defconst for common items.
(emacs-news-mode-menu): Use them.
(emacs-news-view-mode-menu): New menu, which omits the buffer editing
commands.

This builds on the fix for Bug#72080.
lisp/textmodes/emacs-news-mode.el