changeset 67010:fcf116e30422

(ffap-menu-rescan): Use inhibit-read-only instead of binding buffer-read-only to nil.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 19 Nov 2005 12:18:07 +0000
parents bf6863fb9b36
children 57d5f3eaca9f
files lisp/ffap.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)