aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2015-09-01 09:18:12 -0700
committerPaul Eggert2015-09-01 09:18:48 -0700
commit1a3518e7c361a9ceaa017c1334a83d14e0651a4e (patch)
tree4c82c7bcacea59c4e01cfd96073808e5b33f3495 /lisp
parentda88ad6cb1e98ef9f28462648ab53d81d22dd189 (diff)
downloademacs-1a3518e7c361a9ceaa017c1334a83d14e0651a4e.tar.gz
emacs-1a3518e7c361a9ceaa017c1334a83d14e0651a4e.zip
Display replacement quotes with shadow glyphs
* lisp/startup.el (command-line): When displaying ASCII replacements for curved quotes, use a shadow glyph instead of a regular one, to avoid ambiguity.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/startup.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 8c63ed263c2..3e2973981ec 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1018,11 +1018,12 @@ please check its value")
1018 (setq no-blinking-cursor t)) 1018 (setq no-blinking-cursor t))
1019 1019
1020 ;; If curved quotes don't work, display ASCII approximations. 1020 ;; If curved quotes don't work, display ASCII approximations.
1021 (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) 1021 (dolist (char-repl '((?‘ . ?\`) (?’ . ?\') (?“ . ?\") (?” . ?\")))
1022 (when (not (char-displayable-p (car char-repl))) 1022 (when (not (char-displayable-p (car char-repl)))
1023 (or standard-display-table 1023 (or standard-display-table
1024 (setq standard-display-table (make-display-table))) 1024 (setq standard-display-table (make-display-table)))
1025 (aset standard-display-table (car char-repl) (cdr char-repl)))) 1025 (aset standard-display-table (car char-repl)
1026 (vector (make-glyph-code (cdr char-repl) 'shadow)))))
1026 (setq internal--text-quoting-flag t) 1027 (setq internal--text-quoting-flag t)
1027 1028
1028 ;; Re-evaluate predefined variables whose initial value depends on 1029 ;; Re-evaluate predefined variables whose initial value depends on