all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Zhiwei Chen <condy0919@gmail.com>
To: 56659@debbugs.gnu.org
Subject: bug#56659: 29.0.50; nitpicking: eldoc-doc-buffer should use special-mode
Date: Wed, 20 Jul 2022 17:09:08 +0800	[thread overview]
Message-ID: <877d486thn.fsf@gmail.com> (raw)

M-x eldoc-doc-buffer displays `eldoc--doc-buffer', the ElDoc
documentation buffer, where

#+begin_src elisp
(local-set-key "q" 'quit-window)
#+end_src

is used to imitate the behavior of special-mode. Further more, using
special-mode for `eldoc-doc-buffer' gives users the opportunity to
modify the keymap, add-hook, ... etc. For myself, an evil-mode user,
it's able to press q in normal state to quit the window since
special-mode has already been evilified. Currently, evil adds an advice
after `eldoc-doc-buffer' [1] as a workaround.

[1]: https://github.com/emacs-evil/evil-collection/blob/master/modes/eldoc/evil-collection-eldoc.el#L60-L61=

-- 
Zhiwei Chen





             reply	other threads:[~2022-07-20  9:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20  9:09 Zhiwei Chen [this message]
2022-07-23  7:13 ` bug#56659: 29.0.50; nitpicking: eldoc-doc-buffer should use special-mode Lars Ingebrigtsen
2022-07-28  3:54   ` Zhiwei Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877d486thn.fsf@gmail.com \
    --to=condy0919@gmail.com \
    --cc=56659@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.