From: Edward O'Connor <hober0@gmail.com>
Subject: patch: remove data: URLs from goto-address-url-regexp
Date: Tue, 25 Oct 2005 16:12:52 -0700 [thread overview]
Message-ID: <m2slupi423.fsf@roisin.local> (raw)
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hi,
Included is a trivial patch to net/goto-addr.el which removes data: URLs
from goto-address-url-regexp.
I noticed that 'use Data::Dumper;' was being fontified oddly in Perl
files, and tracked it down to this. As far as I know, following such
URLs in Emacs is not terribly useful.
Ted
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: remove data: URLs from goto-address-url-regexp --]
[-- Type: text/x-patch, Size: 1178 bytes --]
*** code/emacs/lisp/net/goto-addr.el Tue Aug 2 09:58:56 2005
--- /Users/ted/Desktop/goto-addr.el Tue Oct 25 16:08:49 2005
***************
*** 105,116 ****
"A regular expression probably matching an e-mail address.")
(defvar goto-address-url-regexp
! (concat "\\<\\("
! (mapconcat 'identity
! (delete "mailto:" (copy-sequence thing-at-point-uri-schemes))
! "\\|")
! "\\)"
! thing-at-point-url-path-regexp)
;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|"
;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:"
;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*"
--- 105,119 ----
"A regular expression probably matching an e-mail address.")
(defvar goto-address-url-regexp
! (concat
! "\\<\\("
! (mapconcat 'identity
! (delete "mailto:"
! (delete "data:"
! (copy-sequence thing-at-point-uri-schemes)))
! "\\|")
! "\\)"
! thing-at-point-url-path-regexp)
;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|"
;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:"
;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*"
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
reply other threads:[~2005-10-25 23:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2slupi423.fsf@roisin.local \
--to=hober0@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).