* ffap-menu and read-only text-properties
@ 2005-11-12 7:36 Ryan Yeske
0 siblings, 0 replies; only message in thread
From: Ryan Yeske @ 2005-11-12 7:36 UTC (permalink / raw)
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-12 7:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 7:36 ffap-menu and read-only text-properties Ryan Yeske
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).