aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/desktop.el8
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 627e29dbc4f..2c05f010dcc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,12 @@
12008-03-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * desktop.el (desktop-read): Set `desktop-dirname' to nil before
4 running `desktop-not-loaded-hook' to allow modifying it.
5 Don't show warning message if `desktop-dirname' was modified.
6
12008-03-01 Alan Mackenzie <acm@muc.de> 72008-03-01 Alan Mackenzie <acm@muc.de>
2 8
3 * progmodes/cc-mode.el (c-neutralize-syntax-in-CPP): Fix coding 9 * progmodes/cc-mode.el (c-neutralize-syntax-in-CPP): Fix coding bug.
4 bug.
5 10
6 * progmodes/cc-langs.el (c-before-font-lock-function): Fix bug in 11 * progmodes/cc-langs.el (c-before-font-lock-function): Fix bug in
7 doc-string, "c-old-LEN" -> "c-old-END". 12 doc-string, "c-old-LEN" -> "c-old-END".
@@ -156,7 +161,7 @@
156 (verilog-pretty-declarations): Add new flag to ask it to refrain 161 (verilog-pretty-declarations): Add new flag to ask it to refrain
157 from printing to the message buffer. 162 from printing to the message buffer.
158 (verilog-pretty-expr): Add a QUIET flag to ask it to refrain from 163 (verilog-pretty-expr): Add a QUIET flag to ask it to refrain from
159 printing to the message buffer. Improve handling of the many 164 printing to the message buffer. Improve handling of the many
160 types of expression line up. 165 types of expression line up.
161 (verilog-just-one-space): Remove printing of an empty message. 166 (verilog-just-one-space): Remove printing of an empty message.
162 (verilog-get-lineup-indent): Rework to support the better handling 167 (verilog-get-lineup-indent): Rework to support the better handling
diff --git a/lisp/desktop.el b/lisp/desktop.el
index fbf9ed5c044..a042828e19c 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -967,11 +967,11 @@ It returns t if a desktop file was loaded, nil otherwise."
967 (or (null desktop-load-locked-desktop) 967 (or (null desktop-load-locked-desktop)
968 (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\ 968 (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\
969Using it may cause conflicts. Use it anyway? " owner))))) 969Using it may cause conflicts. Use it anyway? " owner)))))
970 (progn 970 (let ((default-directory desktop-dirname))
971 (let ((default-directory desktop-dirname))
972 (run-hooks 'desktop-not-loaded-hook))
973 (setq desktop-dirname nil) 971 (setq desktop-dirname nil)
974 (message "Desktop file in use; not loaded.")) 972 (run-hooks 'desktop-not-loaded-hook)
973 (unless desktop-dirname
974 (message "Desktop file in use; not loaded.")))
975 (desktop-lazy-abort) 975 (desktop-lazy-abort)
976 ;; Evaluate desktop buffer and remember when it was modified. 976 ;; Evaluate desktop buffer and remember when it was modified.
977 (load (desktop-full-file-name) t t t) 977 (load (desktop-full-file-name) t t t)