diff options
| author | Chong Yidong | 2012-04-27 13:40:46 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-27 13:40:46 +0800 |
| commit | 15cd8efd049338ec4a42ba00e96d2baf2c3cc51a (patch) | |
| tree | 53a9ec557ed6c37b2a0e60abc1bf46d349df7554 /lisp/term | |
| parent | a8e7d6d783219972c08fd49a3a2afaf26eb139c2 (diff) | |
| download | emacs-15cd8efd049338ec4a42ba00e96d2baf2c3cc51a.tar.gz emacs-15cd8efd049338ec4a42ba00e96d2baf2c3cc51a.zip | |
Fix application of menu-bar-mode etc. by X resources.
* lisp/startup.el (x-apply-session-resources): New function.
* lisp/term/ns-win.el (ns-initialize-window-system):
* lisp/term/w32-win.el (w32-initialize-window-system):
* lisp/term/x-win.el (x-initialize-window-system): Use it to properly
set menu-bar-mode and other vars from X resources, even if the initial
frame is not a window-system frame (Bug#2299).
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/ns-win.el | 1 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 1 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index feac0f1c537..6dd9eed0d2b 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -923,6 +923,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 923 | ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html | 923 | ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html |
| 924 | (ns-set-resource nil "ApplePressAndHoldEnabled" "NO") | 924 | (ns-set-resource nil "ApplePressAndHoldEnabled" "NO") |
| 925 | 925 | ||
| 926 | (x-apply-session-resources) | ||
| 926 | (setq ns-initialized t)) | 927 | (setq ns-initialized t)) |
| 927 | 928 | ||
| 928 | (add-to-list 'handle-args-function-alist '(ns . x-handle-args)) | 929 | (add-to-list 'handle-args-function-alist '(ns . x-handle-args)) |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 3e1c4161667..a4fac3441db 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -309,6 +309,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 309 | 309 | ||
| 310 | ;; Set to a system sound if you want a fancy bell. | 310 | ;; Set to a system sound if you want a fancy bell. |
| 311 | (set-message-beep 'ok) | 311 | (set-message-beep 'ok) |
| 312 | (x-apply-session-resources) | ||
| 312 | (setq w32-initialized t)) | 313 | (setq w32-initialized t)) |
| 313 | 314 | ||
| 314 | (add-to-list 'handle-args-function-alist '(w32 . x-handle-args)) | 315 | (add-to-list 'handle-args-function-alist '(w32 . x-handle-args)) |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 21d49267b21..498cc01fe22 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -1445,6 +1445,7 @@ Request data types in the order specified by `x-select-request-type'." | |||
| 1445 | ;; :help "Paste (yank) text most recently cut/copied") | 1445 | ;; :help "Paste (yank) text most recently cut/copied") |
| 1446 | ;; nil)) | 1446 | ;; nil)) |
| 1447 | 1447 | ||
| 1448 | (x-apply-session-resources) | ||
| 1448 | (setq x-initialized t)) | 1449 | (setq x-initialized t)) |
| 1449 | 1450 | ||
| 1450 | (add-to-list 'handle-args-function-alist '(x . x-handle-args)) | 1451 | (add-to-list 'handle-args-function-alist '(x . x-handle-args)) |