From bb752f07fb8d8c504b6a81358c68fbfada3955da Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 7 Feb 1994 05:42:40 +0000 Subject: [PATCH] (hexl-mode): Bind inhibit-read-only; don't alter buffer-read-only. --- lisp/hexl.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/hexl.el b/lisp/hexl.el index 37b17cb7658..c75d5dfcca2 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el @@ -171,16 +171,14 @@ You can use \\[hexl-find-file] to visit a file in hexl-mode. (add-hook 'write-contents-hooks 'hexl-save-buffer) (let ((modified (buffer-modified-p)) - (read-only buffer-read-only) + (inhibit-read-only t) (original-point (1- (point)))) (if (not (or (eq arg 1) (not arg))) -;; if no argument then we guess at hexl-max-address + ;; if no argument then we guess at hexl-max-address (setq hexl-max-address (+ (* (/ (1- (buffer-size)) 68) 16) 15)) - (setq buffer-read-only nil) (setq hexl-max-address (1- (buffer-size))) (hexlify-buffer) (set-buffer-modified-p modified) - (setq buffer-read-only read-only) (hexl-goto-address original-point))))) (defvar hexl-in-save-buffer nil) -- 2.39.5