all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brahimi Saifullah <brahimi.saifullah@gmail.com>
To: 51230@debbugs.gnu.org
Subject: bug#51230: 29.0.50; `defvar-keymap' - wrong face after `:doc'
Date: Fri, 15 Oct 2021 20:09:42 -0300	[thread overview]
Message-ID: <84bl3p996x.fsf@gmail.com> (raw)

(defvar-keymap my-mode-map :doc "My mode map")

The string after `:doc' has the font lock face for strings,
but it should instead have the one for documentation.

Keeping in mind the fact I'm not familiar with the intricacies of (e)lisp-mode,
I came upon the function `lisp-string-after-doc-keyword-p', which,
with a trivial change to the regexp, can fix this issue.

Yet I realized `defcustom' also has a `:doc' keyword,
which is properly fontified.  So maybe that functionality
can be leveraged somehow, and the approach above is not the right thing?





             reply	other threads:[~2021-10-15 23:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15 23:09 Brahimi Saifullah [this message]
2021-10-18  7:46 ` bug#51230: 29.0.50; `defvar-keymap' - wrong face after `:doc' Lars Ingebrigtsen

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=84bl3p996x.fsf@gmail.com \
    --to=brahimi.saifullah@gmail.com \
    --cc=51230@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.