From: Tom Tromey <tromey@redhat.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Patch: goto-address -vs- font-lock-mode
Date: Wed, 04 Jul 2007 19:37:21 -0600 [thread overview]
Message-ID: <m3644z1vhq.fsf@fleche.redhat.com> (raw)
In-Reply-To: <E1I6GAR-0006Qh-JQ@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 04 Jul 2007 21\:29\:59 -0400")
>>>>> "rms" == Richard Stallman <rms@gnu.org> writes:
> This patch adds a new minor mode that acts like `goto-address'.
> Unlike goto-address, it uses font-lock to add properties to text in
> the buffer. This means that changes to the buffer which add URLs or
> email address will automatically be detected.
rms> Would it be more appropriate to use overlays for this?
rms> You wouldn't want to copy those properties ever, and it is better
rms> if adding them does not modify the buffer.
rms> Is it feasible to use the font-lock mechanism to add overlays?
I don't know. I don't really know that much about font-lock -- I just
used it since it was an easy way to get the effect I wanted.
I saw some code on the Emacs wiki that handles updating overlays in
response to modifications to the buffer. Maybe this would be a good
candidate for inclusion in Emacs itself. I can email you the code
and/or the author's contact info if that would help.
Also, Lennart told me off-list that there is some code in nXhtml to
handle some cases related to this. I haven't looked at this code (or
the overlay updating code for that matter) yet.
Tom
next prev parent reply other threads:[~2007-07-05 1:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 18:03 Patch: goto-address -vs- font-lock-mode Tom Tromey
2007-07-05 1:29 ` Richard Stallman
2007-07-05 1:37 ` Tom Tromey [this message]
2007-07-05 14:20 ` Stefan Monnier
2007-07-05 14:29 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3644z1vhq.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).