GNU bug report logs - #5329
goto-address regular expression

Previous Next

Package: emacs;

Reported by: Daniel Carvalho <idnael <at> gmail.com>

Date: Wed, 6 Jan 2010 15:23:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5329 in the body.
You can then email your comments to 5329 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5329; Package emacs. (Wed, 06 Jan 2010 15:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Carvalho <idnael <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 06 Jan 2010 15:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Carvalho <idnael <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: goto-address regular expression
Date: Wed, 6 Jan 2010 14:43:44 +0000
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:




The goto-address minor-mode does not match the urls of the emacs official
online documentation, because they use parentesis!
For example, here it only matches until the "?"
http://www.cs.cmu.edu/cgi-bin/info2www?(elisp)Using%20Interactive

I tried to fix the regex
(setq goto-address-url-regexp
  (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|"
	  "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:"
	  "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,()]*"
	  "[-a-zA-Z0-9_=#$@~`%&*+|\\/()]"))

and now it displays well but when I click a url, it seems it is still
using the old regex



In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on vernadsky, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure  '--build=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim'
'--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN
-DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed'
'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: pt_PT.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  savehist-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 07 Jan 2010 21:25:02 GMT) Full text and rfc822 format available.

Notification sent to Daniel Carvalho <idnael <at> gmail.com>:
bug acknowledged by developer. (Thu, 07 Jan 2010 21:25:02 GMT) Full text and rfc822 format available.

Message #10 received at 5329-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 5329-done <at> debbugs.gnu.org
Subject: Re: bug#5329: goto-address regular expression
Date: Thu, 07 Jan 2010 16:24:15 -0500
Daniel Carvalho wrote:

> The goto-address minor-mode does not match the urls of the emacs official
> online documentation, because they use parentesis!
> For example, here it only matches until the "?"
> http://www.cs.cmu.edu/cgi-bin/info2www?(elisp)Using%20Interactive

This was fixed in Emacs 23.1.

> In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
>  of 2009-11-10 on vernadsky, modified by Ubuntu




bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 134 days ago.

Previous Next


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