From unknown Thu Aug 14 22:24:57 2025 X-Loop: don@donarmstrong.com Subject: bug#357: ffap-string-at-point-mode-alist should include multibyte Reply-To: jidanni@jidanni.org, 357@debbugs.gnu.org Resent-From: jidanni@jidanni.org Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 04 Jun 2008 00:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 357 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121254044925303 (code B ref -1); Wed, 04 Jun 2008 00:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2008 00:47:29 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m540lPGk025297 for ; Tue, 3 Jun 2008 17:47:26 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3h9w-0005CK-Hp for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3h9p-0005AV-A3 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:24 -0400 Received: from [199.232.76.173] (port=37187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3h9p-0005AS-6g for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:17 -0400 Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]:60366 helo=blingymail-a3.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3h9o-00056a-Mx for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:17 -0400 Received: from jidanni1.jidanni.org (122-127-33-182.dynamic.hinet.net [122.127.33.182]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 4035614D776; Tue, 3 Jun 2008 17:47:13 -0700 (PDT) To: emacs-w3m@namazu.org Cc: bug-gnu-emacs@gnu.org References: From: jidanni@jidanni.org Date: Wed, 04 Jun 2008 08:47:10 +0800 Message-ID: <87zlq2m3g1.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 >>>>> "KY" =3D=3D Katsumi Yamaoka writes: >>>>> In [emacs-w3m : No.10204] jidanni@jidanni.org wrote: >> U runs the command w3m-goto-url >> but when the cursor is upon the link >> http://www.coolloud.org.tw/tag/=E7=A7=BB=E6=B0=91=E5=B7=A5/feed >> it only prompts with >> http://www.coolloud.org.tw/tag/ >> apparently unable to deal with the non-ASCII. KY> Besause emacs-w3m uses the `ffap-url-at-point' function, what KY> should be improved is the url element of the variable KY> `ffap-string-at-point-mode-alist' defined in ffap.el. For KY> instance: KY> (eval-after-load "ffap" KY> '(setcar (cdr (assq 'url ffap-string-at-point-mode-alist)) KY> "--:=3D&?$+@-Z_[:lower:][:multibyte:]~#,%;*")) KY> It defaults to "--:=3D&?$+@-Z_[:lower:]~#,%;*" which does not KY> match non-ASCII characters. OK, your workaround works. I'm CCing this to bug-gnu-emacs. From unknown Thu Aug 14 22:24:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: jidanni@jidanni.org Subject: bug#357 closed by Stefan Monnier (Re: ffap-string-at-point-mode-alist should include multibyte ) Message-ID: References: <87zlq2m3g1.fsf_-_@jidanni.org> X-Emacs-PR-Message: they-closed 357 X-Emacs-PR-Package: emacs Reply-To: 357@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1213127108-5341-1" This is a multi-part message in MIME format... ------------=_1213127108-5341-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #357: ffap-string-at-point-mode-alist should include multibyte It has been closed by Stefan Monnier . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Stefan Monnier by replying to this email. --=20 357: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D357 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1213127108-5341-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From monnier@iro.umontreal.ca Tue Jun 10 12:35:53 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL,BAYES_00,FAKE_REPLY_C, MURPHY_DRUGS_REL8 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 357-done) by emacsbugs.donarmstrong.com; 10 Jun 2008 19:35:53 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5AJZnfg003834 for <357-done@emacsbugs.donarmstrong.com>; Tue, 10 Jun 2008 12:35:51 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFAAh0TkhMCpcZ/2dsb2JhbACBW7AI X-IronPort-AV: E=Sophos;i="4.27,619,1204520400"; d="scan'208";a="22376665" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 10 Jun 2008 15:35:44 -0400 Received: from pastel.home ([76.10.151.25]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id QZT50044; Tue, 10 Jun 2008 15:35:44 -0400 Received: by pastel.home (Postfix, from userid 20848) id 344B082F1; Tue, 10 Jun 2008 15:35:44 -0400 (EDT) From: Stefan Monnier To: 357-done@debbugs.gnu.org Subject: Re: ffap-string-at-point-mode-alist should include multibyte Message-ID: Date: Tue, 10 Jun 2008 15:35:44 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've installed the following patch instead, which seems to work as well. Stefan === modified file 'lisp/ffap.el' --- lisp/ffap.el 2008-06-06 06:58:42 +0000 +++ lisp/ffap.el 2008-06-10 19:32:25 +0000 @@ -978,11 +978,11 @@ ;; Slightly controversial decisions: ;; * strip trailing "@" and ":" ;; * no commas (good for latex) - (file "--:\\\\$+<>@-Z_[:lower:]~*?" "<@" "@>;.,!:") + (file "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") ;; An url, or maybe a email/news message-id: - (url "--:=&?$+@-Z_[:lower:]~#,%;*" "^[:alnum:]" ":;.,!?") + (url "--:=&?$+@-Z_[:alpha:]~#,%;*" "^[:alnum:]" ":;.,!?") ;; Find a string that does *not* contain a colon: - (nocolon "--9$+<>@-Z_[:lower:]~" "<@" "@>;.,!?") + (nocolon "--9$+<>@-Z_[:alpha:]~" "<@" "@>;.,!?") ;; A machine: (machine "-[:alnum:]." "" ".") ;; Mathematica paths: allow backquotes ------------=_1213127108-5341-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From jidanni@jidanni.org Tue Jun 3 17:47:29 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2008 00:47:29 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m540lPGk025297 for ; Tue, 3 Jun 2008 17:47:26 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3h9w-0005CK-Hp for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3h9p-0005AV-A3 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:24 -0400 Received: from [199.232.76.173] (port=37187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3h9p-0005AS-6g for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:17 -0400 Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]:60366 helo=blingymail-a3.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3h9o-00056a-Mx for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 20:47:17 -0400 Received: from jidanni1.jidanni.org (122-127-33-182.dynamic.hinet.net [122.127.33.182]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 4035614D776; Tue, 3 Jun 2008 17:47:13 -0700 (PDT) To: emacs-w3m@namazu.org Cc: bug-gnu-emacs@gnu.org Subject: ffap-string-at-point-mode-alist should include multibyte References: From: jidanni@jidanni.org Date: Wed, 04 Jun 2008 08:47:10 +0800 Message-ID: <87zlq2m3g1.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 >>>>> "KY" =3D=3D Katsumi Yamaoka writes: >>>>> In [emacs-w3m : No.10204] jidanni@jidanni.org wrote: >> U runs the command w3m-goto-url >> but when the cursor is upon the link >> http://www.coolloud.org.tw/tag/=E7=A7=BB=E6=B0=91=E5=B7=A5/feed >> it only prompts with >> http://www.coolloud.org.tw/tag/ >> apparently unable to deal with the non-ASCII. KY> Besause emacs-w3m uses the `ffap-url-at-point' function, what KY> should be improved is the url element of the variable KY> `ffap-string-at-point-mode-alist' defined in ffap.el. For KY> instance: KY> (eval-after-load "ffap" KY> '(setcar (cdr (assq 'url ffap-string-at-point-mode-alist)) KY> "--:=3D&?$+@-Z_[:lower:][:multibyte:]~#,%;*")) KY> It defaults to "--:=3D&?$+@-Z_[:lower:]~#,%;*" which does not KY> match non-ASCII characters. OK, your workaround works. I'm CCing this to bug-gnu-emacs. ------------=_1213127108-5341-1--