diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-20 05:39:19 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-20 05:39:19 +0000 |
commit | 79b8cb9997ce6e4125c963cc4ebe68124359d185 (patch) | |
tree | ba35df51c52f82c5c7722ffdd105ed3c35d6d97e /lisp/saveplace.el | |
parent | b51c564909062fe16b38e3ca0b900c3baf763acf (diff) | |
download | emacs-79b8cb9997ce6e4125c963cc4ebe68124359d185.tar.gz |
(save-place-to-alist): Handle hexl-mode specially.
Diffstat (limited to 'lisp/saveplace.el')
-rw-r--r-- | lisp/saveplace.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index e7b28e74768..65f1e18c678 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -107,7 +107,10 @@ To save places automatically in all files, put this in your `.emacs' file: (setq save-place-alist (delq cell save-place-alist)))) (if save-place (setq save-place-alist - (cons (cons buffer-file-name (point)) + (cons (cons buffer-file-name + (if (not (eq major-mode 'hexl-mode)) + (point) + (1+ (hexl-current-address)))) save-place-alist)))))) (defun save-place-alist-to-file () |