diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2020-11-16 14:40:57 +0000 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2020-12-03 15:22:00 +0000 |
commit | 805d82197f050d1aba8fb796e604c55ce3d6333a (patch) | |
tree | c63d232f39e452a82691f65d695c0921cd582fed /test/lisp/emacs-lisp/bytecomp-resources/warn-save-excursion.el | |
parent | 62fa6d19b3a43296119131fa3d3bad1704b6884c (diff) | |
download | emacs-805d82197f050d1aba8fb796e604c55ce3d6333a.tar.gz emacs-805d82197f050d1aba8fb796e604c55ce3d6333a.tar.bz2 emacs-805d82197f050d1aba8fb796e604c55ce3d6333a.zip |
Avoid spamming view-mode-enter help message
By default, entering view-mode echoes a usage message. This is
particularly helpful with non-nil view-read-only, to notify the user
that view-mode has been enabled. It is less useful and more spammy,
however, if view-mode is (possibly inadvertently) entered from some
non-interactive code running in the background, such as when a major
mode is enabled in a temporary buffer for text formatting
purposes (bug#44629).
* lisp/jsonrpc.el (jsonrpc-events-buffer, initialize-instance): Use
buffer-read-only in place of read-only-mode for non-interactive use.
* lisp/view.el (view-mode-enter): Inhibit help message if either
view-inhibit-help-message is non-nil, or view-mode-enter was called
from an interactive command. Suggested by João Távora
<joaotavora@gmail.com>.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-save-excursion.el')
0 files changed, 0 insertions, 0 deletions