aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorJoakim Verona2013-07-02 22:46:17 +0200
committerJoakim Verona2013-07-02 22:46:17 +0200
commit3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch)
treeef422898f3344c8f94f6ecf63eb583122bbf2bd8 /lisp/term
parent1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff)
parenta3b49114c186d84404226af75ae7905bd1cd018f (diff)
downloademacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz
emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip
Merge branch 'trunk' into xwidget
Conflicts: src/window.c
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/ns-win.el3
-rw-r--r--lisp/term/x-win.el12
2 files changed, 7 insertions, 8 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 0298ad81a34..b92ca1244fb 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -940,7 +940,8 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
940 (x-apply-session-resources) 940 (x-apply-session-resources)
941 (setq ns-initialized t)) 941 (setq ns-initialized t))
942 942
943(add-to-list 'display-format-alist '("\\`ns\\'" . ns)) 943;; Any display name is OK.
944(add-to-list 'display-format-alist '(".*" . ns))
944(add-to-list 'handle-args-function-alist '(ns . x-handle-args)) 945(add-to-list 'handle-args-function-alist '(ns . x-handle-args))
945(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces)) 946(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
946(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) 947(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 822df0e37e5..ab1556d5779 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -118,13 +118,11 @@ See also `emacs-session-save'.")
118 118
119(defun emacs-session-filename (session-id) 119(defun emacs-session-filename (session-id)
120 "Construct a filename to save the session in based on SESSION-ID. 120 "Construct a filename to save the session in based on SESSION-ID.
121If the directory ~/.emacs.d exists, we make a filename in there, otherwise 121Return a filename in `user-emacs-directory', unless the session file
122a file in the home directory." 122already exists in the home directory."
123 (let ((basename (concat "session." session-id)) 123 (let ((basename (concat "session." session-id)))
124 (emacs-dir user-emacs-directory)) 124 (locate-user-emacs-file basename
125 (expand-file-name (if (file-directory-p emacs-dir) 125 (concat ".emacs-" basename))))
126 (concat emacs-dir basename)
127 (concat "~/.emacs-" basename)))))
128 126
129(defun emacs-session-save () 127(defun emacs-session-save ()
130 "This function is called when the window system is shutting down. 128 "This function is called when the window system is shutting down.