# HG changeset patch # User Richard M. Stallman # Date 760599760 0 # Node ID bdda7582b8cdd4aac1e798d8d44ad227893558ac # Parent 6229dd3050beeba5fa493bd071a5905d4753f518 (hexl-mode): Bind inhibit-read-only; don't alter buffer-read-only. diff -r 6229dd3050be -r bdda7582b8cd lisp/hexl.el --- a/lisp/hexl.el Mon Feb 07 05:40:46 1994 +0000 +++ b/lisp/hexl.el Mon Feb 07 05:42:40 1994 +0000 @@ -171,16 +171,14 @@ (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)