diff options
| author | Eli Zaretskii | 2025-04-08 19:04:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-08 19:04:41 +0300 |
| commit | 646ccd5e67db701ed9f632492d1bfbe3f6110cb4 (patch) | |
| tree | 64102610835d619e060574fb1acc9892ab174078 | |
| parent | d283db577339ee247826bfa1e8c1808dad823858 (diff) | |
| download | emacs-646ccd5e67db701ed9f632492d1bfbe3f6110cb4.tar.gz emacs-646ccd5e67db701ed9f632492d1bfbe3f6110cb4.zip | |
Fix prettify-symbols-mode with composition rules
* lisp/progmodes/prog-mode.el
(prettify-symbols--composition-displayable-p): Fix a thinko.
Patch by Visuwesh <visuweshm@gmail.com>. (Bug#77627)
| -rw-r--r-- | lisp/progmodes/prog-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el index 33e0d354fee..6c6b14d455a 100644 --- a/lisp/progmodes/prog-mode.el +++ b/lisp/progmodes/prog-mode.el | |||
| @@ -244,8 +244,8 @@ of `prettify-symbols-alist' and `compose-region'." | |||
| 244 | ;; check that every even-indexed element is displayable | 244 | ;; check that every even-indexed element is displayable |
| 245 | (seq-every-p | 245 | (seq-every-p |
| 246 | (lambda (idx-elt) | 246 | (lambda (idx-elt) |
| 247 | (if (evenp (car idx-elt)) | 247 | (if (evenp (cdr idx-elt)) |
| 248 | (char-displayable-on-frame-p (cdr idx-elt)) | 248 | (char-displayable-on-frame-p (car idx-elt)) |
| 249 | t)) | 249 | t)) |
| 250 | (seq-map-indexed #'cons composition))) | 250 | (seq-map-indexed #'cons composition))) |
| 251 | (t | 251 | (t |