aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-05-16 13:47:36 -0700
committerPaul Eggert2015-05-16 14:20:00 -0700
commit496bfe74990d6601d3584cb900643aa77d7b7a78 (patch)
tree5c3b87fc5e2f544da8fd5a2f0be127801928e95c
parente3c90430c1a8080fd95e3a1e17436403c076b312 (diff)
downloademacs-496bfe74990d6601d3584cb900643aa77d7b7a78.tar.gz
emacs-496bfe74990d6601d3584cb900643aa77d7b7a78.zip
ASCIIfy curved quotes on displays lacking them
* lisp/international/mule-cmds.el (set-locale-environment): If curved quotes don't work, display straight ASCII approximations (Bug#20545).
-rw-r--r--lisp/international/mule-cmds.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index fd892aaefec..4b63cb8f565 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2708,6 +2708,14 @@ See also `locale-charset-language-names', `locale-language-names',
2708 (set-terminal-coding-system 'utf-8) 2708 (set-terminal-coding-system 'utf-8)
2709 (set-keyboard-coding-system 'utf-8))) 2709 (set-keyboard-coding-system 'utf-8)))
2710 2710
2711 ;; If curved quotes don't work, display straight ASCII approximations.
2712 (unless frame
2713 (dolist (char-repl '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
2714 (when (not (char-displayable-p (car char-repl)))
2715 (or standard-display-table
2716 (setq standard-display-table (make-display-table)))
2717 (aset standard-display-table (car char-repl) (cdr char-repl)))))
2718
2711 ;; Default to A4 paper if we're not in a C, POSIX or US locale. 2719 ;; Default to A4 paper if we're not in a C, POSIX or US locale.
2712 ;; (See comments in Flocale_info.) 2720 ;; (See comments in Flocale_info.)
2713 (unless frame 2721 (unless frame