From: Richard M. Stallman Date: Mon, 20 Nov 1995 05:39:19 +0000 (+0000) Subject: (save-place-to-alist): Handle hexl-mode specially. X-Git-Tag: emacs-19.34~2260 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19d0c48ab7b3abde7e862c96aaa8a1d0d684b5b6;p=emacs.git (save-place-to-alist): Handle hexl-mode specially. --- 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 ()