Commit 4b217d46 authored by Lars Hansen's avatar Lars Hansen
Browse files

Make "--no-desktop" turn off `desktop-save-mode'.

parent 25bcb353
......@@ -1030,9 +1030,10 @@ If there are no buffers left to create, kill the timer."
'(lambda ()
(let ((key "--no-desktop"))
(if (member key command-line-args)
(delete key command-line-args)
(when desktop-save-mode (desktop-read))))))
(when (member key command-line-args)
(setq command-line-args (delete key command-line-args))
(setq desktop-save-mode nil)))
(when desktop-save-mode (desktop-read))))
(provide 'desktop)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment