]> git.eshelyaron.com Git - emacs.git/commitdiff
Use special-mode in eldoc--doc-buffer
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 23 Jul 2022 07:13:30 +0000 (09:13 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 23 Jul 2022 07:14:04 +0000 (09:14 +0200)
* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Use
`special-mode' to allow normal customizations of the buffer
(bug#56659).

lisp/emacs-lisp/eldoc.el

index e5f055d03210729357ff5cf9e8bcf635499d67a2..8d7f182e0cd33d7f7f15446fa3ec84bee6c9ab1b 100644 (file)
@@ -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)