diff options
| author | Alan Mackenzie | 2016-01-18 13:32:22 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2016-01-18 13:32:22 +0000 |
| commit | 20defc5538de705fc6b39d5a754244e6787db162 (patch) | |
| tree | 0b68d5c295c3f7c0f878b4654955fb6b43ce0962 /etc | |
| parent | 130d512045aa376333b664d58c501b3884187592 (diff) | |
| download | emacs-20defc5538de705fc6b39d5a754244e6787db162.tar.gz emacs-20defc5538de705fc6b39d5a754244e6787db162.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -315,6 +315,17 @@ current package keywords are recognized. Set the new option | |||
| 315 | It's meant for use together with `compile': | 315 | It's meant for use together with `compile': |
| 316 | emacs -batch --eval "(checkdoc-file \"subr.el\")" | 316 | emacs -batch --eval "(checkdoc-file \"subr.el\")" |
| 317 | 317 | ||
| 318 | ** Desktop | ||
| 319 | |||
| 320 | --- | ||
| 321 | *** The desktop format version has been upgraded from 206 to 208. | ||
| 322 | Although Emacs 25.1 can read a version 206 desktop, earlier Emacsen | ||
| 323 | cannot read a version 208 desktop. To upgrade your desktop file, you | ||
| 324 | must explicitly request the upgrade, by C-u M-x desktop-save. You are | ||
| 325 | recommended to do this as soon as you have firmly upgraded to Emacs | ||
| 326 | 25.1 (or later). Should you ever need to downgrade your desktop file | ||
| 327 | to version 206, you can do this with C-u C-u M-x desktop-save. | ||
| 328 | |||
| 318 | +++ | 329 | +++ |
| 319 | ** New function `bookmark-set-no-overwrite' bound to C-x r M. | 330 | ** New function `bookmark-set-no-overwrite' bound to C-x r M. |
| 320 | It raises an error if a bookmark of that name already exists, | 331 | It raises an error if a bookmark of that name already exists, |