From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 13917@debbugs.gnu.org,
Joost Kremers <joost.kremers@phil.uni-goettingen.de>
Subject: bug#13917: 24.3.50; Elisp manual: Font Lock Mode
Date: Mon, 31 May 2021 08:52:53 -0400 [thread overview]
Message-ID: <jwvfsy3ukxn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <875yyzjthx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 31 May 2021 08:40:42 +0200")
Lars Ingebrigtsen [2021-05-31 08:40:42] wrote:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>> However, a font lock entry of the type
>>>
>>> ,----
>>> | (MATCHER . (face FACE PROP1 VAL1 PROP1 VAL2))
>>> `----
>>>
>>> does not actually work. What works is any of the forms:
>>>
>>> ,----
>>> | (MATCHER . (0 (face FACE PROP1 VAL1 PROP1 VAL2)))
>>> | (MATCHER 0 (face FACE PROP1 VAL1 PROP1 VAL2))
>>> | (MATCHER (0 (face FACE PROP1 VAL1 PROP1 VAL2)))
>>> `----
>>>
>>> (Where the first two are of course equivalent).
>>
>> Hm... is this a bug in the documentation or the code, though? It seems
>> like it would be logical for the described syntax to work, doesn't it?
>
> Perhaps Stefan as an opinion; added to the CCs.
I don't know if there might be some conflict with existing syntax.
Personally I dislike this support for those different syntaxes, it just
makes the doc and the code more complex without any clear benefit.
Stefan
next prev parent reply other threads:[~2021-05-31 12:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 16:39 bug#13917: 24.3.50; Elisp manual: Font Lock Mode Joost Kremers
2019-11-01 16:48 ` Lars Ingebrigtsen
2021-05-31 6:40 ` Lars Ingebrigtsen
2021-05-31 12:52 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-06-01 5:57 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfsy3ukxn.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=13917@debbugs.gnu.org \
--cc=joost.kremers@phil.uni-goettingen.de \
--cc=larsi@gnus.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).