diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-23 09:13:30 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-23 09:14:04 +0200 |
commit | 97abe8511a829861f6efb865209ac2dd0e7ae129 (patch) | |
tree | 805a8e6edb42f3dc1de1a45e053e2020b646fe1e /lisp/emacs-lisp | |
parent | a4339190ec2c2356ab3c2ece974b436e40a5ab74 (diff) | |
download | emacs-97abe8511a829861f6efb865209ac2dd0e7ae129.tar.gz emacs-97abe8511a829861f6efb865209ac2dd0e7ae129.tar.bz2 emacs-97abe8511a829861f6efb865209ac2dd0e7ae129.zip |
Use special-mode in eldoc--doc-buffer
* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Use
`special-mode' to allow normal customizations of the buffer
(bug#56659).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/eldoc.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index e5f055d0321..8d7f182e0cd 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -491,9 +491,9 @@ If INTERACTIVE, display it. Else, return said buffer." (setq-local eldoc--doc-buffer-docs docs) (let ((inhibit-read-only t) (things-reported-on)) - (erase-buffer) (setq buffer-read-only t) + (special-mode) + (erase-buffer) (setq-local nobreak-char-display nil) - (local-set-key "q" 'quit-window) (cl-loop for (docs . rest) on docs for (this-doc . plist) = docs for thing = (plist-get plist :thing) |