changeset 58726:8acd64f0bef0

* faces.el (escape-glyph): Rename from glyph. (standard-display-table): Set it here. Add escape-glyph face to extra slot characters.
author Kim F. Storm <storm@cua.dk>
date Thu, 02 Dec 2004 10:43:56 +0000
parents 27f1bbfc9402
children 9a3bb995aa8b
files lisp/faces.el
diffstat 1 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/faces.el	Thu Dec 02 07:48:25 2004 +0000
+++ b/lisp/faces.el	Thu Dec 02 10:43:56 2004 +0000
@@ -2022,13 +2022,28 @@
   :group 'basic-faces)
 
 
-(defface glyph
-  '((t
-     :inherit secondary-selection))
+;; Make escape characters stand out in display
+
+(defface escape-glyph
+  '((t :inherit secondary-selection))
   "Basic face for displaying \\ and ^ in multichar glyphs.
 It is also used for ... in ellipses."
   :group 'basic-faces)
 
+(or standard-display-table
+    ;; avoid using autoloaded make-display-table here
+    (setq standard-display-table (make-char-table 'display-table nil)))
+
+(let* ((face (lsh (face-id 'escape-glyph) 19))
+       (backslash (+ face ?\\))
+       (dot (+ face ?.)))
+  (set-char-table-extra-slot standard-display-table 2 backslash)
+  (aset standard-display-table 2208 (vector backslash ?\s))
+  (aset standard-display-table 2221 (vector backslash ?-))
+  (set-char-table-extra-slot standard-display-table 3 (+ face ?^))
+  (set-char-table-extra-slot standard-display-table 4 (vector dot dot dot)))
+
+
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;