]> git.eshelyaron.com Git - emacs.git/commit
Desktop: protect users against inadvertant upgrading of desktop file.
authorAlan Mackenzie <acm@muc.de>
Mon, 18 Jan 2016 13:32:22 +0000 (13:32 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 18 Jan 2016 13:32:22 +0000 (13:32 +0000)
commit20defc5538de705fc6b39d5a754244e6787db162
tree0b68d5c295c3f7c0f878b4654955fb6b43ce0962
parent130d512045aa376333b664d58c501b3884187592
Desktop: protect users against inadvertant upgrading of desktop file.

An upgraded (version 208) desktop file cannot be read in Emacs < 25.

* etc/NEWS: Add an entry about upgrading a desktop file.

* lisp/desktop.el (desktop-file-version): Amend doc string.
(desktop-native-file-version, desktop-io-file-version): new variables.
(desktop-clear): Set desktop-io-file-version to nil.
(desktop-buffer-info): make the presence of the last item on the list
conditional on (>= desktop-io-file-version 208).
(desktop-save): Add extra parameter VERSION to take user's C-u or C-u C-u.
Amend the doc string.  Add code to determine the output file version.
(desktop-create-buffer): Set desktop-io-file-version to the input file's
version.
etc/NEWS
lisp/desktop.el