1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-04 20:27:45 +00:00

; Fix mistakes in last doc rewording about shorthands

bug#51089

1. The 'punctuation' syntax class is actually empty in Emacs Lisp.
   The class used in the implementation is 'symbol constituents';

2) The prefix to escape shorthands is '#_' together, not '#' or '_'.

* doc/lispref/symbols.texi (Shorthands): Fix exception.
This commit is contained in:
João Távora 2021-10-12 16:50:46 +01:00
parent 66b8dfd060
commit 3fbe6fd367

View File

@ -742,12 +742,12 @@ There are two exceptions to rules governing Shorthand transformations:
@itemize @bullet
@item
Symbol forms comprised entirely of symbol and punctuation characters
(@pxref{Syntax Class Table}) are not transformed. For example,
it's possible to use @code{-} or @code{/=} as shorthand prefixes, but
that won't shadow the arithmetic @emph{functions} of those names.
Symbol forms comprised entirely of characters in the Emacs Lisp symbol
constituent class (@pxref{Syntax Class Table}) are not transformed.
For example, it's possible to use @code{-} or @code{/=} as shorthand
prefixes, but that won't shadow the arithmetic @emph{functions} of
those names.
@item
Symbol forms whose names start with @samp{#} or @samp{_} are not
transformed.
Symbol forms whose names start with @samp{#_} are not transformed.
@end itemize