From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.bugs Subject: bug#572: patch which seems to fix it Date: Sun, 03 Aug 2008 23:43:01 +0200 Message-ID: Reply-To: joakim@verona.se, 572@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217801257 26256 80.91.229.12 (3 Aug 2008 22:07:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Aug 2008 22:07:37 +0000 (UTC) To: 572@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 00:08:28 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KPlkZ-0005bO-NN for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 00:08:27 +0200 Original-Received: from localhost ([127.0.0.1]:44486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPlje-0001XM-MO for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Aug 2008 18:07:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KPlja-0001X7-Cd for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2008 18:07:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KPljY-0001Ws-Pw for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2008 18:07:25 -0400 Original-Received: from [199.232.76.173] (port=39724 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPljY-0001Wp-MU for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2008 18:07:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41986) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KPljY-0001lK-QY for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2008 18:07:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m73M7MLf021520; Sun, 3 Aug 2008 15:07:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m73Lo3h3015339; Sun, 3 Aug 2008 14:50:03 -0700 X-Loop: don@donarmstrong.com Resent-From: joakim@verona.se Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 03 Aug 2008 21:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 572 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 572-submit@emacsbugs.donarmstrong.com id=B572.121779979013772 (code B ref 572); Sun, 03 Aug 2008 21:50:03 +0000 Original-Received: (at 572) by emacsbugs.donarmstrong.com; 3 Aug 2008 21:43:10 +0000 Original-Received: from gate.verona.se (IDENT:0@iwfs.imcode.com [82.115.149.64]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m73Lh6Hp013766 for <572@emacsbugs.donarmstrong.com>; Sun, 3 Aug 2008 14:43:08 -0700 Original-Received: from chopper (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id m73Lh0G0013942 for <572@emacsbugs.donarmstrong.com>; Sun, 3 Aug 2008 23:43:00 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 03 Aug 2008 18:07:25 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18999 Archived-At: Removing the () from the regexp seems to fix this. The OP:s assesment that () are valid in an url is correct. === modified file 'lisp/thingatpt.el' *** lisp/thingatpt.el 2008-05-06 13:57:18 +0000 --- lisp/thingatpt.el 2008-08-03 21:38:46 +0000 *************** *** 208,214 **** (goto-char (point-min))))) (defvar thing-at-point-url-path-regexp ! "[^]\t\n \"'()<>[^`{}]*[^]\t\n \"'()<>[^`{}.,;]+" "A regular expression probably matching the host and filename or e-mail part of a URL.") (defvar thing-at-point-short-url-regexp --- 208,214 ---- (goto-char (point-min))))) (defvar thing-at-point-url-path-regexp ! "[^]\t\n \"'<>[^`{}]*[^]\t\n \"'<>[^`{}.,;]+" "A regular expression probably matching the host and filename or e-mail part of a URL.") (defvar thing-at-point-short-url-regexp -- Joakim Verona