]> git.eshelyaron.com Git - emacs.git/commitdiff
(hexl-mode-exit): Bind inhibit-read-only; don't alter buffer-read-only.
authorRichard M. Stallman <rms@gnu.org>
Mon, 7 Feb 1994 05:43:51 +0000 (05:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 7 Feb 1994 05:43:51 +0000 (05:43 +0000)
lisp/hexl.el

index c75d5dfcca2bf4e407d602662c8243d84fb26e4e..219e0c6a027d6d17943915242d1a63f3e74e8dc8 100644 (file)
@@ -229,13 +229,11 @@ With arg, don't unhexlify buffer."
   (interactive "p")
   (if (or (eq arg 1) (not arg))
       (let ((modified (buffer-modified-p))
-           (read-only buffer-read-only)
+           (inhibit-read-only t)
            (original-point (1+ (hexl-current-address))))
-       (setq buffer-read-only nil)
        (dehexlify-buffer)
        (remove-hook 'write-contents-hook 'hexl-save-buffer)
        (set-buffer-modified-p modified)
-       (setq buffer-read-only read-only)
        (goto-char original-point)))
   (setq mode-name hexl-mode-old-mode-name)
   (use-local-map hexl-mode-old-local-map)