Commit 2776a650 authored by Ivan Shmakov's avatar Ivan Shmakov Committed by Stefan Monnier
Browse files

* lisp/desktop.el (desktop-create-buffer): Check that buffers are still live

before burying them.

Fixes: debbugs:18373
parent 7c2aaeb4
2014-09-10 Ivan Shmakov <> (tiny change)
* desktop.el (desktop-create-buffer): Check that buffers are still live
before burying them (bug#18373).
2014-09-09 Glenn Morris <>
* calendar/diary-lib.el (diary-list-entries):
......@@ -1375,7 +1375,9 @@ after that many seconds of idle time."
;; Restore buffer list order with new buffer at end. Don't change
;; the order for old desktop files (old desktop module behavior).
(unless (< desktop-file-version 206)
(mapc 'bury-buffer buffer-list)
(dolist (buf buffer-list)
(and (buffer-live-p buf)
(bury-buffer buf)))
(when result (bury-buffer result)))
(when result
(unless (or desktop-first-buffer (< desktop-file-version 206))
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