emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ffap-menu and read-only text-properties


From: Ryan Yeske
Subject: ffap-menu and read-only text-properties
Date: Fri, 11 Nov 2005 23:36:14 -0800

The function ffap-menu-rescan works on buffers that are read-only, but
not when there are read-only text-properties (as is the case with
rcirc buffers when rcirc-read-only is t).  This patch fixes that

*** ffap.el     11 Nov 2005 23:30:43 -0800      
--- ffap.el     Fri Nov 11 23:30:43 2005
***************
*** 1519,1525 ****
    (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
        item
        ;; Avoid repeated searches of the *mode-alist:
        (major-mode (if (assq major-mode ffap-string-at-point-mode-alist)
--- 1519,1525 ----
    (let ((ffap-next-regexp (or ffap-menu-regexp ffap-next-regexp))
        (range (- (point-max) (point-min)))
        (mod (buffer-modified-p))       ; was buffer modified?
!       (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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]