From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: ffap can't deal with & in HTML Date: Mon, 24 May 2004 11:57:24 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40B23784.1080405@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1085427601 18429 80.91.224.253 (24 May 2004 19:40:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 May 2004 19:40:01 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 24 21:39:53 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSLIe-0001lc-00 for ; Mon, 24 May 2004 21:39:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSKuL-0007GJ-VA for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 May 2004 15:14:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSKl0-00059N-77 for bug-gnu-emacs@gnu.org; Mon, 24 May 2004 15:05:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSJmM-0003j6-4g for bug-gnu-emacs@gnu.org; Mon, 24 May 2004 14:02:58 -0400 Original-Received: from [132.239.1.57] (helo=mailbox5.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BSJhf-0002hJ-LX for bug-gnu-emacs@gnu.org; Mon, 24 May 2004 13:57:36 -0400 Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by mailbox5.ucsd.edu (8.13.0.Alpha0/8.13.0.Alpha0) with ESMTP id i4OHvQab082131 for ; Mon, 24 May 2004 10:57:27 -0700 (PDT) Original-Received: by Mail.FU-Berlin.DE (Exim 4.34) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1BSJhW-000HFK-5r>; Mon, 24 May 2004 19:57:26 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Mon, 24 May 2004 19:57:26 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 20 X-Orig-X-Trace: news.uni-berlin.de Cz43Q6wKmJem2YxS3ku08AZIRvF/ERKae9n15j6tcJVPQaQOM= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox5.ucsd.edu (v1.4 May 20 2004 13:55:33, 2.2/5.0 2.63) X-MailScanner: PASSED (v1.2.8 77932 i4OHvQab082131 mailbox5.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8019 Dan Jacobson wrote: > 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. 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