Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6b67c0d4
Commit
6b67c0d4
authored
Jun 21, 2012
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
parent
e76f0800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/desktop.el
lisp/desktop.el
+2
-2
No files found.
lisp/ChangeLog
View file @
6b67c0d4
...
...
@@ -2,6 +2,7 @@
* desktop.el (desktop-read): Don't prompt if daemon (Bug#11674).
(desktop-path): Remove . from the default value (Bug#10977).
(desktop-read): Use user-emacs-directory if desktop-path is nil.
2012-06-20 Chong Yidong <cyd@gnu.org>
...
...
lisp/desktop.el
View file @
6b67c0d4
...
...
@@ -966,8 +966,8 @@ It returns t if a desktop file was loaded, nil otherwise."
(
and
dirs
(
car
dirs
)))
;; If not found and `desktop-path' is non-nil, use its first element.
(
and
desktop-path
(
car
desktop-path
))
;; Default:
Home directory
.
"~"
))))
;; Default:
.emacs.d
.
user-emacs-directory
))))
(
if
(
file-exists-p
(
desktop-full-file-name
))
;; Desktop file found, but is it already in use?
(
let
((
desktop-first-buffer
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment