; 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 @itemize @bullet
@item @item
Symbol forms comprised entirely of symbol and punctuation characters Symbol forms comprised entirely of characters in the Emacs Lisp symbol
(@pxref{Syntax Class Table}) are not transformed. For example, constituent class (@pxref{Syntax Class Table}) are not transformed.
it's possible to use @code{-} or @code{/=} as shorthand prefixes, but For example, it's possible to use @code{-} or @code{/=} as shorthand
that won't shadow the arithmetic @emph{functions} of those names. prefixes, but that won't shadow the arithmetic @emph{functions} of
those names.
@item @item
Symbol forms whose names start with @samp{#} or @samp{_} are not Symbol forms whose names start with @samp{#_} are not transformed.
transformed.
@end itemize @end itemize