summaryrefslogtreecommitdiff
path: root/lisp/char-fold.el
diff options
context:
space:
mode:
authorRobert Pluim <rpluim@gmail.com>2023-01-10 15:22:34 +0100
committerRobert Pluim <rpluim@gmail.com>2023-01-10 17:23:57 +0100
commit64fe6bdb618ff37336b3a8c635f23fc807785ef2 (patch)
tree0849e4258ab2921b11ba2a25ad785f19971ef594 /lisp/char-fold.el
parentfda1ad4a9ec030d013fc16c92d8494bc755b3763 (diff)
downloademacs-64fe6bdb618ff37336b3a8c635f23fc807785ef2.tar.gz
emacs-64fe6bdb618ff37336b3a8c635f23fc807785ef2.tar.bz2
emacs-64fe6bdb618ff37336b3a8c635f23fc807785ef2.zip
Improve 'describe-char-fold-equivalences' docstring
* lisp/char-fold.el (describe-char-fold-equivalences): Explain what the output looks like.
Diffstat (limited to 'lisp/char-fold.el')
-rw-r--r--lisp/char-fold.el18
1 files changed, 17 insertions, 1 deletions
diff --git a/lisp/char-fold.el b/lisp/char-fold.el
index eff2f5558b3..6da2dae8471 100644
--- a/lisp/char-fold.el
+++ b/lisp/char-fold.el
@@ -436,7 +436,23 @@ specify the character). With no input, i.e. when CHAR is nil,
describe all available character equivalences of `char-fold-to-regexp'.
Optional argument LAX (interactively, the prefix argument), if
non-nil, means also include partially matching ligatures and
-non-canonical equivalences."
+non-canonical equivalences.
+
+Each line of the display shows the equivalences in two different
+ways separated by a colon:
+
+ - as the literal character or sequence
+ - using an ASCII-only escape syntax
+
+For example, for the letter \\='r\\=', the first line is
+
+ r: ?\\N{LATIN SMALL LETTER R}
+
+which is for the requested character itself, and a later line has
+
+ ṟ: ?\\N{LATIN SMALL LETTER R}?\\N{COMBINING MACRON BELOW}
+
+which clearly shows what the constituent characters are."
(interactive (list (ignore-errors
(read-char-by-name
(format-prompt "Unicode name, single char, or hex"