unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* ffap can't deal with & in HTML
@ 2004-05-22  0:09 Dan Jacobson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-05-22  0:09 UTC (permalink / raw)


While editing HTML I put the cursor on the middle of
href= 
"http://www.topozone.com/map.asp?lat=49.3645&lon=-95.1191&s=25&size=l">
and hit C-x C-f, and ffap prompted me with a shorter url.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ffap can't deal with & in HTML
       [not found] <mailman.6894.1085338020.1061.bug-gnu-emacs@gnu.org>
@ 2004-05-24 17:57 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-05-24 17:57 UTC (permalink / raw)


Dan Jacobson wrote:

 > While editing HTML I put the cursor on the middle of
 > href=
 > "http://www.topozone.com/map.asp?lat=49.3645&amp;lon=-95.1191&amp;s=25&amp;size=l">
 > and hit C-x C-f, and ffap prompted me with a shorter url.

The problem is that the url entry in ffap-string-at-point-mode-alist
allows ampersand but not semicolon, and then strips any trailing
semicolons.

Here's a workaround, the patch to ffap.el is obvious:

(setq ffap-string-at-point-mode-alist
       (cons '(url "--:=&;?$+@-Z_a-z~#,%" "^A-Za-z0-9" ":.,!?")
             ffap-string-at-point-mode-alist))

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-24 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6894.1085338020.1061.bug-gnu-emacs@gnu.org>
2004-05-24 17:57 ` ffap can't deal with &amp; in HTML Kevin Rodgers
2004-05-22  0:09 Dan Jacobson

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).