GNU bug report logs -
#20759
25.0.50; pcase doc: (‘ QPAT) instead of (` QPAT)
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Sun, 7 Jun 2015 15:43:02 UTC
Severity: normal
Found in version 25.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 20759 <at> debbugs.gnu.org (full text, mbox):
Paul Eggert <eggert <at> cs.ucla.edu> writes:
> As the patch mentions, I'm puzzled about the syntax ‘(` PAT)’ in the
> docstring, since lread.c says that syntax is obsolete and ‘format’
> quotes the grave accent. The attached patch causes C-h f to suggest
> the syntax ‘(\` PAT)’ which is "safer" in some sense, I suppose. If
> it's intended that pcase usage omit the backslash, then I guess that
> ‘format’ and/or lread.c need to be updated accordingly.
Thanks for working on that.
Thinking again about this, maybe `PAT would be didactically better, in
this special case of the pcase doc. People not being aware of backquote
being a reader macro should not think
(pcase '(1 2) ((\` (1 2)) t))
is the "correct" way to use this (instead of
(pcase '(1 2) (`(1 2) t))
).
I know that the doc of pcase is generated automatically, and your
(Paul's) patch makes this more consistent.
OTOH, we write 'VAL and not (\' VAL) some lines above in the same
documentation.
Regards,
Michael.
This bug report was last modified 9 years and 348 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.