GNU bug report logs - #572
thing-at-point 'url gets confused if url has paren

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Fri, 18 Jul 2008 12:50:03 UTC

Severity: normal

Done: joakim <at> verona.se

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: joakim <at> verona.se
To: 572 <at> debbugs.gnu.org
Subject: bug#572: patch which seems to fix it
Date: Sun, 03 Aug 2008 23:43:01 +0200
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




This bug report was last modified 16 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.