From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master d067ac5: Remove more compat code from prolog.el
Date: Fri, 25 Sep 2020 08:39:23 -0400 [thread overview]
Message-ID: <jwv7dsijat5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20200925093756.C7849209D4@vcs0.savannah.gnu.org> (Lars Ingebrigtsen's message of "Fri, 25 Sep 2020 05:37:56 -0400 (EDT)")
> @@ -1999,7 +1997,7 @@ Argument BOUND is a buffer position limiting searching."
> (if (eq prolog-system 'mercury)
> (list
> (regexp-opt prolog-directives-i 'words)
> - 0 'prolog-warning-face)))
> + 0 prolog-warning-face)))
> ;; Inferior mode specific patterns
> (prompt
> ;; FIXME: Should be handled by comint already.
I think this one is wrong: the font-lock data-structure built here
should contain at this position an *expression* that returns a face when
passed to `eval`.
IOW with the above change the value held by `prolog-warning-face` needs
to be "an expression that evaluates to a face" rather than "a face name".
This will still work as long as `prolog-warning-face` has value
`font-lock-warning-face` since it's both the name of a face and the name
of an expression whose value is that same face (because it's also the
name of a variable whose value is, by default, itself).
Stefan
next parent reply other threads:[~2020-09-25 12:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200925093755.19433.41297@vcs0.savannah.gnu.org>
[not found] ` <20200925093756.C7849209D4@vcs0.savannah.gnu.org>
2020-09-25 12:39 ` Stefan Monnier [this message]
2020-09-25 13:49 ` master d067ac5: Remove more compat code from prolog.el Lars Ingebrigtsen
2020-09-25 14:04 ` Stefan Monnier
2020-09-25 14:06 ` 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=jwv7dsijat5.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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 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).