aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorGlenn Morris2020-01-15 07:50:22 -0800
committerGlenn Morris2020-01-15 07:50:22 -0800
commitd672ad60e34b4e1dcb28f91d15f1e286acf2f94f (patch)
tree5d17911717db0469bed838cbda7c0adf9638e31b /lisp/erc
parente31287e704a539ebef777d92e4d06d4b1d912b2a (diff)
parent0e936f18f8738fbe3809784f5ec6feb27c6bb24e (diff)
downloademacs-d672ad60e34b4e1dcb28f91d15f1e286acf2f94f.tar.gz
emacs-d672ad60e34b4e1dcb28f91d15f1e286acf2f94f.zip
Merge from origin/emacs-27
0e936f18f8 (origin/emacs-27) Fix build failure with --with-cairo --wi... c34f7e884b Add new node "Package Statuses" to manual fdee034ac8 * lisp/isearch.el: Fix corner cases of isearch-lazy-count. 7b14329d86 ; * lisp/simple.el (messages-buffer): Doc fix. (Bug#39124) 7ec66a59e3 Document spacing issues with Xft for some fonts 08cd247fbd ; * etc/NEWS: Fix typo. d645628e3c Always use lexical-binding in lisp-interaction-mode (bug#3... c42198f78c ; *etc/NEWS: Fix typo. 0ed9cfa7dc vc-dir: ensure we don't use a pager with git 37e0d00c14 Improve ERC's matching of nicks and URLs (bug#38257) d47b157969 Handle tab-bar clicks on a GPM-capable console. e4791f3f8e ;* etc/TODO: Update. # Conflicts: # etc/NEWS
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc-button.el11
-rw-r--r--lisp/erc/erc-match.el3
2 files changed, 3 insertions, 11 deletions
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el
index 6e30b3a7935..e4f5a190913 100644
--- a/lisp/erc/erc-button.el
+++ b/lisp/erc/erc-button.el
@@ -41,6 +41,7 @@
41(require 'erc) 41(require 'erc)
42(require 'wid-edit) 42(require 'wid-edit)
43(require 'erc-fill) 43(require 'erc-fill)
44(require 'browse-url)
44 45
45;;; Minor Mode 46;;; Minor Mode
46 47
@@ -87,12 +88,9 @@ above them."
87 :type 'face 88 :type 'face
88 :group 'erc-faces) 89 :group 'erc-faces)
89 90
90(defcustom erc-button-url-regexp 91(defcustom erc-button-url-regexp browse-url-button-regexp
91 (concat "\\(www\\.\\|\\(s?https?\\|"
92 "ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\)"
93 "\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?"
94 "[-a-zA-Z0-9_=!?#$@~`%&*+\\/:;.,()]+[-a-zA-Z0-9_=#$@~`%&*+\\/()]")
95 "Regular expression that matches URLs." 92 "Regular expression that matches URLs."
93 :version "27.1"
96 :group 'erc-button 94 :group 'erc-button
97 :type 'regexp) 95 :type 'regexp)
98 96
@@ -223,14 +221,11 @@ PAR is a number of a regexp grouping whose text will be passed to
223 221
224(defvar erc-button-syntax-table 222(defvar erc-button-syntax-table
225 (let ((table (make-syntax-table))) 223 (let ((table (make-syntax-table)))
226 (modify-syntax-entry ?\( "w" table)
227 (modify-syntax-entry ?\) "w" table)
228 (modify-syntax-entry ?\[ "w" table) 224 (modify-syntax-entry ?\[ "w" table)
229 (modify-syntax-entry ?\] "w" table) 225 (modify-syntax-entry ?\] "w" table)
230 (modify-syntax-entry ?\{ "w" table) 226 (modify-syntax-entry ?\{ "w" table)
231 (modify-syntax-entry ?\} "w" table) 227 (modify-syntax-entry ?\} "w" table)
232 (modify-syntax-entry ?` "w" table) 228 (modify-syntax-entry ?` "w" table)
233 (modify-syntax-entry ?' "w" table)
234 (modify-syntax-entry ?^ "w" table) 229 (modify-syntax-entry ?^ "w" table)
235 (modify-syntax-entry ?- "w" table) 230 (modify-syntax-entry ?- "w" table)
236 (modify-syntax-entry ?_ "w" table) 231 (modify-syntax-entry ?_ "w" table)
diff --git a/lisp/erc/erc-match.el b/lisp/erc/erc-match.el
index 7a824cce9f8..8b9ab331288 100644
--- a/lisp/erc/erc-match.el
+++ b/lisp/erc/erc-match.el
@@ -246,14 +246,11 @@ and other miscellaneous functions."
246;; just put it in erc.el 246;; just put it in erc.el
247(defvar erc-match-syntax-table 247(defvar erc-match-syntax-table
248 (let ((table (make-syntax-table))) 248 (let ((table (make-syntax-table)))
249 (modify-syntax-entry ?\( "w" table)
250 (modify-syntax-entry ?\) "w" table)
251 (modify-syntax-entry ?\[ "w" table) 249 (modify-syntax-entry ?\[ "w" table)
252 (modify-syntax-entry ?\] "w" table) 250 (modify-syntax-entry ?\] "w" table)
253 (modify-syntax-entry ?\{ "w" table) 251 (modify-syntax-entry ?\{ "w" table)
254 (modify-syntax-entry ?\} "w" table) 252 (modify-syntax-entry ?\} "w" table)
255 (modify-syntax-entry ?` "w" table) 253 (modify-syntax-entry ?` "w" table)
256 (modify-syntax-entry ?' "w" table)
257 (modify-syntax-entry ?^ "w" table) 254 (modify-syntax-entry ?^ "w" table)
258 (modify-syntax-entry ?- "w" table) 255 (modify-syntax-entry ?- "w" table)
259 (modify-syntax-entry ?_ "w" table) 256 (modify-syntax-entry ?_ "w" table)