diff options
| author | Stefan Monnier | 2014-10-02 09:26:23 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-10-02 09:26:23 -0400 |
| commit | 1c1425565ddbb555c5943690d435264d57454c81 (patch) | |
| tree | e5e0a61f1d6988fd9cf693217c4f7b0db7b04499 | |
| parent | 4ea7bee0ab400eeb9e880e702fb7d3862ca05f91 (diff) | |
| download | emacs-1c1425565ddbb555c5943690d435264d57454c81.tar.gz emacs-1c1425565ddbb555c5943690d435264d57454c81.zip | |
* lisp/frame.el: Use lexical-binding.
(make-frame): Use t rather than nil for tty's window-system.
* lisp/startup.el (command-line): Use gui-method.
Fixes: debbugs:18598
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 4 | ||||
| -rw-r--r-- | lisp/startup.el | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58dc8372a7a..0d1ec7033b0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2014-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * frame.el: Use lexical-binding (bug#18598). | ||
| 4 | (make-frame): Use t rather than nil for tty's window-system. | ||
| 5 | * startup.el (command-line): Use gui-method. | ||
| 6 | |||
| 3 | Consolidate management/ownership of selections. | 7 | Consolidate management/ownership of selections. |
| 4 | * select.el (gui-get-selection-alist): New method. | 8 | * select.el (gui-get-selection-alist): New method. |
| 5 | (gui-get-selection): Use it. Rename from x-get-selection. | 9 | (gui-get-selection): Use it. Rename from x-get-selection. |
diff --git a/lisp/frame.el b/lisp/frame.el index 18aff5b2879..7fb21aa88cc 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; frame.el --- multi-frame management independent of window systems | 1 | ;;; frame.el --- multi-frame management independent of window systems -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993-1994, 1996-1997, 2000-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993-1994, 1996-1997, 2000-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -680,7 +680,7 @@ the new frame according to its own rules." | |||
| 680 | ;; Now make the frame. | 680 | ;; Now make the frame. |
| 681 | (run-hooks 'before-make-frame-hook) | 681 | (run-hooks 'before-make-frame-hook) |
| 682 | (setq frame | 682 | (setq frame |
| 683 | (funcall (gui-method frame-creation-function w) params)) | 683 | (funcall (gui-method frame-creation-function (or w t)) params)) |
| 684 | (normal-erase-is-backspace-setup-frame frame) | 684 | (normal-erase-is-backspace-setup-frame frame) |
| 685 | ;; Inherit the original frame's parameters. | 685 | ;; Inherit the original frame's parameters. |
| 686 | (dolist (param frame-inherited-parameters) | 686 | (dolist (param frame-inherited-parameters) |
diff --git a/lisp/startup.el b/lisp/startup.el index a0bcd1fcaba..a9bba57d707 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -954,8 +954,7 @@ please check its value") | |||
| 954 | command-line-args)) | 954 | command-line-args)) |
| 955 | ;; Initialize the window system. (Open connection, etc.) | 955 | ;; Initialize the window system. (Open connection, etc.) |
| 956 | (funcall | 956 | (funcall |
| 957 | (or (cdr (assq initial-window-system window-system-initialization-alist)) | 957 | (gui-method window-system-initialization (or initial-window-system t))) |
| 958 | (error "Unsupported window system `%s'" initial-window-system))) | ||
| 959 | (put initial-window-system 'window-system-initialized t)) | 958 | (put initial-window-system 'window-system-initialized t)) |
| 960 | ;; If there was an error, print the error message and exit. | 959 | ;; If there was an error, print the error message and exit. |
| 961 | (error | 960 | (error |