From 19d0c48ab7b3abde7e862c96aaa8a1d0d684b5b6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 20 Nov 1995 05:39:19 +0000 Subject: [PATCH] (save-place-to-alist): Handle hexl-mode specially. --- lisp/saveplace.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 () -- 2.39.2