aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-12-02 10:43:56 +0000
committerKim F. Storm2004-12-02 10:43:56 +0000
commitea7568c30a2bd7f9c9ef3ea460cfaad64d6c69e1 (patch)
tree640e4794baeb5a7878e0bf8ee2249c7017d17483
parent63b446bce0c9d3e31dca2f09c4d91227233151af (diff)
downloademacs-ea7568c30a2bd7f9c9ef3ea460cfaad64d6c69e1.tar.gz
emacs-ea7568c30a2bd7f9c9ef3ea460cfaad64d6c69e1.zip
* faces.el (escape-glyph): Rename from glyph.
(standard-display-table): Set it here. Add escape-glyph face to extra slot characters.
-rw-r--r--lisp/faces.el21
1 files changed, 18 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 93fd4204351..4df2d444cb3 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2022,13 +2022,28 @@ Note: Other faces cannot inherit from the cursor face."
2022 :group 'basic-faces) 2022 :group 'basic-faces)
2023 2023
2024 2024
2025(defface glyph 2025;; Make escape characters stand out in display
2026 '((t 2026
2027 :inherit secondary-selection)) 2027(defface escape-glyph
2028 '((t :inherit secondary-selection))
2028 "Basic face for displaying \\ and ^ in multichar glyphs. 2029 "Basic face for displaying \\ and ^ in multichar glyphs.
2029It is also used for ... in ellipses." 2030It is also used for ... in ellipses."
2030 :group 'basic-faces) 2031 :group 'basic-faces)
2031 2032
2033(or standard-display-table
2034 ;; avoid using autoloaded make-display-table here
2035 (setq standard-display-table (make-char-table 'display-table nil)))
2036
2037(let* ((face (lsh (face-id 'escape-glyph) 19))
2038 (backslash (+ face ?\\))
2039 (dot (+ face ?.)))
2040 (set-char-table-extra-slot standard-display-table 2 backslash)
2041 (aset standard-display-table 2208 (vector backslash ?\s))
2042 (aset standard-display-table 2221 (vector backslash ?-))
2043 (set-char-table-extra-slot standard-display-table 3 (+ face ?^))
2044 (set-char-table-extra-slot standard-display-table 4 (vector dot dot dot)))
2045
2046
2032 2047
2033 2048
2034;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2049;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;