diff options
| author | Paul Eggert | 2015-07-01 22:24:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-07-01 22:25:39 -0700 |
| commit | bb35a21c0e8a4b82ac04fa26a53f6ca394afbb24 (patch) | |
| tree | de504f5a40d27c0b6b5d5755129533400f9dd221 /lisp | |
| parent | 145f28f814cc1d75cbabd91496d7b49c73f67994 (diff) | |
| download | emacs-bb35a21c0e8a4b82ac04fa26a53f6ca394afbb24.tar.gz emacs-bb35a21c0e8a4b82ac04fa26a53f6ca394afbb24.zip | |
Don't display ‘’ as `' under X in en_GB
The curved quote setup code invokes (char-displayable-p ?‘),
but this isn’t reliable until after the X frame replaces the
terminal frame (Bug#20926).
* lisp/international/mule-cmds.el (set-locale-environment):
Move curved quote setup code from here ...
* lisp/startup.el (command-line): ... to here, after creating
the X frame.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/international/mule-cmds.el | 8 | ||||
| -rw-r--r-- | lisp/startup.el | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 248c89c40fc..59fc37de43c 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2731,14 +2731,6 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 2731 | (set-terminal-coding-system 'utf-8) | 2731 | (set-terminal-coding-system 'utf-8) |
| 2732 | (set-keyboard-coding-system 'utf-8))) | 2732 | (set-keyboard-coding-system 'utf-8))) |
| 2733 | 2733 | ||
| 2734 | ;; If curved quotes don't work, display ASCII approximations. | ||
| 2735 | (unless frame | ||
| 2736 | (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) | ||
| 2737 | (when (not (char-displayable-p (car char-repl))) | ||
| 2738 | (or standard-display-table | ||
| 2739 | (setq standard-display-table (make-display-table))) | ||
| 2740 | (aset standard-display-table (car char-repl) (cdr char-repl))))) | ||
| 2741 | |||
| 2742 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. | 2734 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. |
| 2743 | ;; (See comments in Flocale_info.) | 2735 | ;; (See comments in Flocale_info.) |
| 2744 | (unless frame | 2736 | (unless frame |
diff --git a/lisp/startup.el b/lisp/startup.el index ab5a3a4bfa5..4f1e3150abc 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1017,6 +1017,14 @@ please check its value") | |||
| 1017 | '("no" "off" "false" "0"))))) | 1017 | '("no" "off" "false" "0"))))) |
| 1018 | (setq no-blinking-cursor t)) | 1018 | (setq no-blinking-cursor t)) |
| 1019 | 1019 | ||
| 1020 | ;; If curved quotes don't work, display ASCII approximations. | ||
| 1021 | (unless noninteractive | ||
| 1022 | (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) | ||
| 1023 | (when (not (char-displayable-p (car char-repl))) | ||
| 1024 | (or standard-display-table | ||
| 1025 | (setq standard-display-table (make-display-table))) | ||
| 1026 | (aset standard-display-table (car char-repl) (cdr char-repl))))) | ||
| 1027 | |||
| 1020 | ;; Re-evaluate predefined variables whose initial value depends on | 1028 | ;; Re-evaluate predefined variables whose initial value depends on |
| 1021 | ;; the runtime context. | 1029 | ;; the runtime context. |
| 1022 | (mapc 'custom-reevaluate-setting | 1030 | (mapc 'custom-reevaluate-setting |