]> code.delx.au - gnu-emacs/commitdiff
Display replacement quotes with shadow glyphs
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Sep 2015 16:18:12 +0000 (09:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Sep 2015 16:18:48 +0000 (09:18 -0700)
* lisp/startup.el (command-line): When displaying ASCII
replacements for curved quotes, use a shadow glyph instead of a
regular one, to avoid ambiguity.

lisp/startup.el

index 8c63ed263c2f7cd18d84177b5ba2925847a4a109..3e2973981ecc514e59d93a84942d3db8f16321f8 100644 (file)
@@ -1018,11 +1018,12 @@ please check its value")
     (setq no-blinking-cursor t))
 
   ;; If curved quotes don't work, display ASCII approximations.
-  (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
+  (dolist (char-repl '((?‘ . ?\`) (?’ . ?\') (?“ . ?\") (?” . ?\")))
     (when (not (char-displayable-p (car char-repl)))
       (or standard-display-table
           (setq standard-display-table (make-display-table)))
-      (aset standard-display-table (car char-repl) (cdr char-repl))))
+      (aset standard-display-table (car char-repl)
+            (vector (make-glyph-code (cdr char-repl) 'shadow)))))
   (setq internal--text-quoting-flag t)
 
   ;; Re-evaluate predefined variables whose initial value depends on