diff options
| author | Sean Whitton | 2025-10-07 18:04:20 +0100 |
|---|---|---|
| committer | Sean Whitton | 2025-10-07 18:04:20 +0100 |
| commit | c95b33da9c4ae3aaf33db3b3cbb40216ca3649c1 (patch) | |
| tree | fb98f41de1439fae57d5439fbead86dc4a2f3fc9 | |
| parent | 0c80d3bee62df9a4bc8a3eb99a5feebb1296ed31 (diff) | |
| parent | cd400326b2f9991cbca527caaa61649e48cf790b (diff) | |
| download | emacs-c95b33da9c4ae3aaf33db3b3cbb40216ca3649c1.tar.gz emacs-c95b33da9c4ae3aaf33db3b3cbb40216ca3649c1.zip | |
Merge from origin/emacs-30
cd400326b2f ; Improve documentation of 'string-glyph-split'
| -rw-r--r-- | doc/lispref/display.texi | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/subr-x.el | 5 |
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 | |||
| 2467 | Caveat: for this function to recognize and process character | ||
| 2468 | compositions, @code{auto-composition-mode} must be enabled, and the | ||
| 2469 | current buffer must be displayed in some window. | ||
| 2466 | @end defun | 2470 | @end defun |
| 2467 | 2471 | ||
| 2468 | When a buffer is displayed with line numbers (@pxref{Display Custom,,, | 2472 | When 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." | |||
| 397 | This takes into account combining characters and grapheme clusters: | 397 | This takes into account combining characters and grapheme clusters: |
| 398 | if compositions are enabled, each sequence of characters composed | 398 | if compositions are enabled, each sequence of characters composed |
| 399 | on display into a single grapheme cluster is treated as a single | 399 | on display into a single grapheme cluster is treated as a single |
| 400 | indivisible unit." | 400 | indivisible unit. |
| 401 | Caveat: for this function to recognize characters compositions, the | ||
| 402 | automatic compositions should be enabled (see `auto-composition-mode') | ||
| 403 | and 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) |