mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
(isearch-text-char-description): Propertize escape
character sequences with the `escape-glyph' face. (Bug#4344)
This commit is contained in:
parent
83ccc32ced
commit
cf5e419931
@ -2496,8 +2496,8 @@ since they have special meaning in a regexp."
|
||||
|
||||
(defun isearch-text-char-description (c)
|
||||
(cond
|
||||
((< c ?\s) (format "^%c" (+ c 64)))
|
||||
((= c ?\^?) "^?")
|
||||
((< c ?\s) (propertize (format "^%c" (+ c 64)) 'face 'escape-glyph))
|
||||
((= c ?\^?) (propertize "^?" 'face 'escape-glyph))
|
||||
(t (char-to-string c))))
|
||||
|
||||
;; General function to unread characters or events.
|
||||
|
Loading…
Reference in New Issue
Block a user