From: Miles Bader Date: Sat, 9 Sep 2017 14:28:08 +0000 (+0900) Subject: ; Add a comment for make-text-button in rcirc-markup-urls X-Git-Tag: emacs-26.0.90~219 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e91da7f8f2523057fa93ea4aace36863315abb5b;p=emacs.git ; Add a comment for make-text-button in rcirc-markup-urls --- diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 60af1973ccb..6377f791f45 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2499,6 +2499,9 @@ If ARG is given, opens the URL in a new browser window." (end (match-end 0)) (url (match-string-no-properties 0)) (link-text (buffer-substring-no-properties start end))) + ;; Add a button for the URL. Note that we use `make-text-button', + ;; rather than `make-button', as text-buttons are much faster in + ;; large buffers. (make-text-button start end 'face 'rcirc-url 'follow-link t