# HG changeset patch # User Eli Zaretskii # Date 1132402687 0 # Node ID fcf116e304222ca1eaee1efc00d444f1de367e41 # Parent bf6863fb9b363125fe015550931ba49fbc89caa4 (ffap-menu-rescan): Use inhibit-read-only instead of binding buffer-read-only to nil. diff -r bf6863fb9b36 -r fcf116e30422 lisp/ffap.el --- a/lisp/ffap.el Sat Nov 19 12:09:25 2005 +0000 +++ b/lisp/ffap.el Sat Nov 19 12:18:07 2005 +0000 @@ -1519,7 +1519,9 @@ (let ((ffap-next-regexp (or ffap-menu-regexp ffap-next-regexp)) (range (- (point-max) (point-min))) (mod (buffer-modified-p)) ; was buffer modified? - buffer-read-only ; to set text-properties + ;; inhibit-read-only works on read-only text properties + ;; as well as read-only buffers. + (inhibit-read-only t) ; to set text-properties item ;; Avoid repeated searches of the *mode-alist: (major-mode (if (assq major-mode ffap-string-at-point-mode-alist)