summaryrefslogtreecommitdiff
path: root/lisp/char-fold.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-08-30 20:20:40 +0300
committerEli Zaretskii <eliz@gnu.org>2022-08-30 20:20:40 +0300
commite1c4ed9a3e70d4ed7162a77103d034deef428452 (patch)
treef06179f7529a43e0d04ecb9a4b002aef99ade938 /lisp/char-fold.el
parent7804536e4e6dd7fa57d38b9b6c6835ae316bff50 (diff)
downloademacs-e1c4ed9a3e70d4ed7162a77103d034deef428452.tar.gz
; Improve doc string of 'describe-char-fold-equivalences'
* lisp/char-fold.el (describe-char-fold-equivalences): Autoload it. Doc fix.
Diffstat (limited to 'lisp/char-fold.el')
-rw-r--r--lisp/char-fold.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/char-fold.el b/lisp/char-fold.el
index ce395ddaab0..4e3aa058fcb 100644
--- a/lisp/char-fold.el
+++ b/lisp/char-fold.el
@@ -428,12 +428,15 @@ BOUND NOERROR COUNT are passed to `re-search-backward'."
(re-search-backward (char-fold-to-regexp string) bound noerror count))
+;;;###autoload
(defun describe-char-fold-equivalences (char &optional lax)
- "Display characters equivalent to CHAR.
-Prompt for CHAR. With no input, i.e. when CHAR is nil, by default
+ "Display characters equivalent to CHAR under character-folding.
+Prompt for CHAR (using `read-char-by-name', which see for how can
+you specify the character). With no input, i.e. when CHAR is nil,
describe all available character equivalences of `char-fold-to-regexp'.
-Interactively, a prefix arg means also include partially matching
-ligatures."
+Optional argument LAX (interactively, the prefix argument), if
+non-nil, means also include partially matching ligatures and
+non-canonical equivalences."
(interactive (list (ignore-errors
(read-char-by-name
"Character (Unicode name or hex, default all): "))