aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2025-10-07 18:04:20 +0100
committerSean Whitton2025-10-07 18:04:20 +0100
commitc95b33da9c4ae3aaf33db3b3cbb40216ca3649c1 (patch)
treefb98f41de1439fae57d5439fbead86dc4a2f3fc9
parent0c80d3bee62df9a4bc8a3eb99a5feebb1296ed31 (diff)
parentcd400326b2f9991cbca527caaa61649e48cf790b (diff)
downloademacs-c95b33da9c4ae3aaf33db3b3cbb40216ca3649c1.tar.gz
emacs-c95b33da9c4ae3aaf33db3b3cbb40216ca3649c1.zip
Merge from origin/emacs-30
cd400326b2f ; Improve documentation of 'string-glyph-split'
-rw-r--r--doc/lispref/display.texi4
-rw-r--r--lisp/emacs-lisp/subr-x.el5
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index d044763523b..9e83e4a9bcc 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2463,6 +2463,10 @@ you can say:
2463@example 2463@example
2464(apply #'insert (cdr (string-glyph-split string)))) 2464(apply #'insert (cdr (string-glyph-split string))))
2465@end example 2465@end example
2466
2467Caveat: for this function to recognize and process character
2468compositions, @code{auto-composition-mode} must be enabled, and the
2469current buffer must be displayed in some window.
2466@end defun 2470@end defun
2467 2471
2468When a buffer is displayed with line numbers (@pxref{Display Custom,,, 2472When a buffer is displayed with line numbers (@pxref{Display Custom,,,
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index ab5abf9cbed..d27c84ac473 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -397,7 +397,10 @@ substring that does not include newlines."
397This takes into account combining characters and grapheme clusters: 397This takes into account combining characters and grapheme clusters:
398if compositions are enabled, each sequence of characters composed 398if compositions are enabled, each sequence of characters composed
399on display into a single grapheme cluster is treated as a single 399on display into a single grapheme cluster is treated as a single
400indivisible unit." 400indivisible unit.
401Caveat: for this function to recognize characters compositions, the
402automatic compositions should be enabled (see `auto-composition-mode')
403and the current buffer must be displayed in some window."
401 (declare (side-effect-free t)) 404 (declare (side-effect-free t))
402 (let ((result nil) 405 (let ((result nil)
403 (start 0) 406 (start 0)