diff options
| author | Karl Fogel | 2010-12-28 22:24:09 -0500 |
|---|---|---|
| committer | Karl Fogel | 2010-12-28 22:24:09 -0500 |
| commit | 6e457cc94c235dd87e25d328c8a306c64cfaa6bd (patch) | |
| tree | 6ea042a6e8d19c556a159b8932a6cd76813f6814 | |
| parent | 2576c28f3aad6dd01678f673d10c26b82ad40450 (diff) | |
| download | emacs-6e457cc94c235dd87e25d328c8a306c64cfaa6bd.tar.gz emacs-6e457cc94c235dd87e25d328c8a306c64cfaa6bd.zip | |
* lisp/saveplace.el (save-place-alist-to-file): Save list sorted and
pretty-printed, so that it is mergeable by line-based text merging,
as suggested by Iain Dalton <iain.dalton {_AT_} gmail.com>.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/saveplace.el | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c0ec2bb8ae1..3e9a7d09647 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-12-29 Karl Fogel <kfogel@red-bean.com> | ||
| 2 | |||
| 3 | * saveplace.el (save-place-alist-to-file): Save list sorted and | ||
| 4 | pretty-printed, so that it is mergeable by line-based text merging, | ||
| 5 | as suggested by Iain Dalton <iain.dalton {_AT_} gmail.com>. | ||
| 6 | |||
| 1 | 2010-12-28 Chong Yidong <cyd@stupidchicken.com> | 7 | 2010-12-28 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * tool-bar.el (tool-bar-setup): Remove :enable conditions, which | 9 | * tool-bar.el (tool-bar-setup): Remove :enable conditions, which |
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index 35625ca276f..eb9ff510fae 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el | |||
| @@ -213,7 +213,9 @@ may have changed\) back to `save-place-alist'." | |||
| 213 | (symbol-name coding-system-for-write))) | 213 | (symbol-name coding-system-for-write))) |
| 214 | (let ((print-length nil) | 214 | (let ((print-length nil) |
| 215 | (print-level nil)) | 215 | (print-level nil)) |
| 216 | (print save-place-alist (current-buffer))) | 216 | (pp (sort save-place-alist |
| 217 | (lambda (a b) (string< (car a) (car b)))) | ||
| 218 | (current-buffer))) | ||
| 217 | (let ((version-control | 219 | (let ((version-control |
| 218 | (cond | 220 | (cond |
| 219 | ((null save-place-version-control) nil) | 221 | ((null save-place-version-control) nil) |