diff options
| author | Stefan Monnier | 2007-10-18 19:02:23 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-18 19:02:23 +0000 |
| commit | 8782c744ef0c1732c513e29f260b0e73263deffd (patch) | |
| tree | 5daa1d254ab4f95ab6906d741e0fd453e48e4436 | |
| parent | 1bb5ab899b4014b4dc309f1b3cd41258de63e6cd (diff) | |
| download | emacs-8782c744ef0c1732c513e29f260b0e73263deffd.tar.gz emacs-8782c744ef0c1732c513e29f260b0e73263deffd.zip | |
(tty-create-frame-with-faces): Make sure not only
tty-run-terminal-initialization but also set-locale-environment
are run only once per terminal.
(tty-run-terminal-initialization): Don't check if the terminal was
already initted.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/faces.el | 11 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b92d3b1b654..9063215b99f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * faces.el (tty-create-frame-with-faces): Make sure not only | ||
| 4 | tty-run-terminal-initialization but also set-locale-environment | ||
| 5 | are run only once per terminal. | ||
| 6 | (tty-run-terminal-initialization): Don't check if the terminal was | ||
| 7 | already initted. | ||
| 8 | |||
| 3 | * international/encoded-kb.el (encoded-kbd-setup-display): Be careful | 9 | * international/encoded-kb.el (encoded-kbd-setup-display): Be careful |
| 4 | not to remove keymaps that just happen to inherit from one of ours. | 10 | not to remove keymaps that just happen to inherit from one of ours. |
| 5 | When setting up our keymap, make sure it won't be accidentally | 11 | When setting up our keymap, make sure it won't be accidentally |
diff --git a/lisp/faces.el b/lisp/faces.el index e31622d9ba0..ab299160b6d 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1876,8 +1876,10 @@ created." | |||
| 1876 | (modify-frame-parameters frame '((interprogram-cut-function . nil))) | 1876 | (modify-frame-parameters frame '((interprogram-cut-function . nil))) |
| 1877 | (modify-frame-parameters frame '((interprogram-paste-function . nil))) | 1877 | (modify-frame-parameters frame '((interprogram-paste-function . nil))) |
| 1878 | 1878 | ||
| 1879 | (set-locale-environment nil frame) | 1879 | (unless (terminal-parameter frame 'terminal-initted) |
| 1880 | (tty-run-terminal-initialization frame) | 1880 | (set-terminal-parameter frame 'terminal-initted t) |
| 1881 | (set-locale-environment nil frame) | ||
| 1882 | (tty-run-terminal-initialization frame)) | ||
| 1881 | (frame-set-background-mode frame) | 1883 | (frame-set-background-mode frame) |
| 1882 | (face-set-after-frame-default frame) | 1884 | (face-set-after-frame-default frame) |
| 1883 | (setq success t)) | 1885 | (setq success t)) |
| @@ -1910,10 +1912,7 @@ terminal type to a different value." | |||
| 1910 | ;; Load library for our terminal type. | 1912 | ;; Load library for our terminal type. |
| 1911 | ;; User init file can set term-file-prefix to nil to prevent this. | 1913 | ;; User init file can set term-file-prefix to nil to prevent this. |
| 1912 | (with-selected-frame frame | 1914 | (with-selected-frame frame |
| 1913 | (unless (or (null term-file-prefix) | 1915 | (unless (null term-file-prefix) |
| 1914 | ;; Don't reinitialize the terminal each time a new | ||
| 1915 | ;; frame is opened on it. | ||
| 1916 | (terminal-parameter frame 'terminal-initted)) | ||
| 1917 | (let* (term-init-func) | 1916 | (let* (term-init-func) |
| 1918 | ;; First, load the terminal initialization file, if it is | 1917 | ;; First, load the terminal initialization file, if it is |
| 1919 | ;; available and it hasn't been loaded already. | 1918 | ;; available and it hasn't been loaded already. |