aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2005-10-13 05:39:31 +0000
committerKenichi Handa2005-10-13 05:39:31 +0000
commit6e3b8c5dd5e80a395f8fff690bc72515fb925c29 (patch)
treea270974ff9833c08b8184d80159420213447bb7d
parent170e42a17e3fe9d983b0cd4a5f6a19eb447ba823 (diff)
downloademacs-6e3b8c5dd5e80a395f8fff690bc72515fb925c29.tar.gz
emacs-6e3b8c5dd5e80a395f8fff690bc72515fb925c29.zip
(utf-8-compose): Display an invalid UTF-8 byte with `escape-glyph'
face.
-rw-r--r--lisp/international/utf-8.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/international/utf-8.el b/lisp/international/utf-8.el
index 56043630817..384d973db9f 100644
--- a/lisp/international/utf-8.el
+++ b/lisp/international/utf-8.el
@@ -934,7 +934,8 @@ Move point to the end of the sequence."
934 'help-echo 'utf-8-help-echo) 934 'help-echo 'utf-8-help-echo)
935 (if (= l 2) 935 (if (= l 2)
936 (put-text-property (point) (min (point-max) (+ l (point))) 936 (put-text-property (point) (min (point-max) (+ l (point)))
937 'display (format "\\%03o" ch)) 937 'display (propertize (format "\\%03o" ch)
938 'face 'escape-glyph))
938 (compose-region (point) (+ l (point)) ?$,3u=(B)) 939 (compose-region (point) (+ l (point)) ?$,3u=(B))
939 (forward-char l)) 940 (forward-char l))
940 (forward-char 1)))) 941 (forward-char 1))))