From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Reza Nikoopour <rnikoopour@gmail.com>
Subject: Re: Help Understanding syntax-propertize-function
Date: Thu, 25 Mar 2021 01:54:42 +0300 [thread overview]
Message-ID: <m2eeg4jh71.fsf@fastmail.fm> (raw)
In-Reply-To: <jwvr1k4fbn1.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 24 Mar 2021 18:10:20 -0400")
On 24/03/2021 18:10 -0400, Stefan Monnier wrote:
>> There's the prog1 form at the end of hcl--font-lock-open-heredoc:
>>
>> ...
>> (prog1 (string-to-syntax "|")
>> (goto-char (+ 2 start))))))
>
> Indeed, there is, but I don't know what worries you bout it.
>
>> It looks like it's meant to be a special "(prog1 EXP . EXPS)" form for
>> syntax-propertize-rules.
>
> I don't think so.
Then prog1 is confusing there. It's not special, as you confirm, and
it's not needed otherwise. Just
(goto-char (+ 2 start))
(string-to-syntax "|")
will do - without raising suspicions :-)
Filipp
prev parent reply other threads:[~2021-03-24 22:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-15 22:48 Help Understanding syntax-propertize-function Reza Nikoopour
2021-03-15 23:30 ` Stefan Monnier
2021-03-15 23:58 ` Reza Nikoopour
2021-03-16 1:42 ` Stefan Monnier
2021-03-16 15:37 ` Reza Nikoopour
2021-03-16 17:29 ` Stefan Monnier
2021-03-16 17:50 ` Reza Nikoopour
2021-03-24 20:29 ` Filipp Gunbin
2021-03-24 22:10 ` Stefan Monnier
2021-03-24 22:54 ` Filipp Gunbin [this message]
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=m2eeg4jh71.fsf@fastmail.fm \
--to=fgunbin@fastmail.fm \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rnikoopour@gmail.com \
/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.