Merge pull request #4424 from mskorzhinskiy/develop

popup.el: consider auto-saving indirect buffers too
This commit is contained in:
Henrik Lissner 2020-12-13 15:01:59 -05:00 committed by GitHub
commit bd5deb1edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,9 @@ the buffer is visible, then set another timer and try again later."
+ And finally deletes the window!"
(let ((buffer (window-buffer window))
(inhibit-quit t))
(and (buffer-file-name buffer)
(and (or (buffer-file-name buffer)
(if-let (base-buffer (buffer-base-buffer buffer))
(buffer-file-name base-buffer)))
(buffer-modified-p buffer)
(let ((autosave (+popup-parameter 'autosave window)))
(cond ((eq autosave 't))