Emacs: Add comments for when to remove desktop patch.
parent
0a92012aad
commit
0bcedf5c63
|
@ -1,5 +1,7 @@
|
|||
;;; desktop.el patches
|
||||
|
||||
;; TODO: Remove with Emacs 27.
|
||||
|
||||
;;; Fix 28945.
|
||||
;;; Replace
|
||||
;;; (setq desktop-autosave-was-enabled
|
||||
|
@ -7,6 +9,8 @@
|
|||
;;; with
|
||||
;;; (setq desktop-autosave-was-enabled
|
||||
;;; (memq 'desktop-auto-save-set-timer (default-toplevel-value 'window-configuration-change-hook)))
|
||||
;;
|
||||
;; Also fix frame check.
|
||||
(defun desktop-read (&optional dirname)
|
||||
"Read and process the desktop file in directory DIRNAME.
|
||||
Look for a desktop file in DIRNAME, or if DIRNAME is omitted, look in
|
||||
|
@ -58,7 +62,7 @@ Using it may cause conflicts. Use it anyway? " owner)))))
|
|||
;; Temporarily disable the autosave that will leave it
|
||||
;; disabled when loading the desktop fails with errors,
|
||||
;; thus not overwriting the desktop with broken contents.
|
||||
(setq desktop-autosave-was-enabled
|
||||
(setq desktop-autosave-was-enabled ; PATCH
|
||||
(memq 'desktop-auto-save-set-timer
|
||||
;; Use the toplevel value of the hook, in case some
|
||||
;; feature makes window-configuration-change-hook
|
||||
|
|
Loading…
Reference in New Issue