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'." ;; check that every even-indexed element is displayable (seq-every-p (lambda (idx-elt) - (if (evenp (car idx-elt)) - (char-displayable-on-frame-p (cdr idx-elt)) + (if (evenp (cdr idx-elt)) + (char-displayable-on-frame-p (car idx-elt)) t)) (seq-map-indexed #'cons composition))) (t