diff options
| author | Paul Eggert | 2015-09-01 12:06:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-09-01 12:06:25 -0700 |
| commit | 183ad9d59757314f93aed8a9fe512c8fb48a2ed1 (patch) | |
| tree | c1412a43161cd296505f587be5f50a6f1b081cc6 /lisp/term | |
| parent | 1a3518e7c361a9ceaa017c1334a83d14e0651a4e (diff) | |
| download | emacs-183ad9d59757314f93aed8a9fe512c8fb48a2ed1.tar.gz emacs-183ad9d59757314f93aed8a9fe512c8fb48a2ed1.zip | |
terminal-init-w32console mimicks command-line
Problem reported by Eli Zaretskii.
* lisp/startup.el (startup--setup-quote-display):
New function, refactored from a part of ‘command-line’.
(command-line): Use it.
* lisp/term/w32console.el (terminal-init-w32console):
Use it, so that this function stays consistent with ‘command-line’.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/w32console.el | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/term/w32console.el b/lisp/term/w32console.el index 2df137839d0..58856858502 100644 --- a/lisp/term/w32console.el +++ b/lisp/term/w32console.el | |||
| @@ -68,12 +68,7 @@ | |||
| 68 | (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding)) | 68 | (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding)) |
| 69 | ;; Since we changed the terminal encoding, we need to repeat | 69 | ;; Since we changed the terminal encoding, we need to repeat |
| 70 | ;; the test for Unicode quotes being displayable. | 70 | ;; the test for Unicode quotes being displayable. |
| 71 | (dolist (char-repl | 71 | (startup--setup-quote-display))) |
| 72 | '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) | ||
| 73 | (when (not (char-displayable-p (car char-repl))) | ||
| 74 | (or standard-display-table | ||
| 75 | (setq standard-display-table (make-display-table))) | ||
| 76 | (aset standard-display-table (car char-repl) (cdr char-repl)))))) | ||
| 77 | (let* ((colors w32-tty-standard-colors) | 72 | (let* ((colors w32-tty-standard-colors) |
| 78 | (color (car colors))) | 73 | (color (car colors))) |
| 79 | (tty-color-clear) | 74 | (tty-color-clear) |