]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark shr buttons as button.el buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 30 Jul 2019 13:23:22 +0000 (15:23 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 30 Jul 2019 13:23:22 +0000 (15:23 +0200)
* lisp/net/shr.el (shr-urlify): Mark buttons as button.el buffers
for easier reuse in buttonified buffers.

lisp/net/shr.el

index 7555d6c6aec81e6ded2499bc7d4d22499444972c..fbd1a9b7661172f3e7d1253001c03f995f2dd33e 100644 (file)
@@ -1207,6 +1207,8 @@ START, and END.  Note that START and END should be markers."
   (add-text-properties
    start (point)
    (list 'shr-url url
+         'button t
+         'category 'shr                ; For button.el button buffers.
         'help-echo (let ((parsed (url-generic-parse-url
                                    (or (ignore-errors
                                         (decode-coding-string