diff options
| author | João Távora | 2021-10-12 16:50:46 +0100 |
|---|---|---|
| committer | João Távora | 2021-10-12 16:58:01 +0100 |
| commit | 3fbe6fd367ddb337a25ff261502e2e8dccb69649 (patch) | |
| tree | e70ac4b2c242019474ea7647cf082b4553b15550 | |
| parent | 66b8dfd0602c2175a0296ce6a844d77c94813429 (diff) | |
| download | emacs-3fbe6fd367ddb337a25ff261502e2e8dccb69649.tar.gz emacs-3fbe6fd367ddb337a25ff261502e2e8dccb69649.zip | |
; 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.
| -rw-r--r-- | doc/lispref/symbols.texi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/lispref/symbols.texi b/doc/lispref/symbols.texi index 32590d4f99e..b30a16927ec 100644 --- a/doc/lispref/symbols.texi +++ b/doc/lispref/symbols.texi | |||
| @@ -742,12 +742,12 @@ There are two exceptions to rules governing Shorthand transformations: | |||
| 742 | 742 | ||
| 743 | @itemize @bullet | 743 | @itemize @bullet |
| 744 | @item | 744 | @item |
| 745 | Symbol forms comprised entirely of symbol and punctuation characters | 745 | Symbol forms comprised entirely of characters in the Emacs Lisp symbol |
| 746 | (@pxref{Syntax Class Table}) are not transformed. For example, | 746 | constituent class (@pxref{Syntax Class Table}) are not transformed. |
| 747 | it's possible to use @code{-} or @code{/=} as shorthand prefixes, but | 747 | For example, it's possible to use @code{-} or @code{/=} as shorthand |
| 748 | that won't shadow the arithmetic @emph{functions} of those names. | 748 | prefixes, but that won't shadow the arithmetic @emph{functions} of |
| 749 | those names. | ||
| 749 | 750 | ||
| 750 | @item | 751 | @item |
| 751 | Symbol forms whose names start with @samp{#} or @samp{_} are not | 752 | Symbol forms whose names start with @samp{#_} are not transformed. |
| 752 | transformed. | ||
| 753 | @end itemize | 753 | @end itemize |