]> git.eshelyaron.com Git - emacs.git/commitdiff
Make links in shr use separate mouse highlight regions
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 24 Jan 2020 15:26:34 +0000 (16:26 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 24 Jan 2020 15:26:34 +0000 (16:26 +0100)
* lisp/net/shr.el (shr-urlify): Make adjacent links have separate
mouse hightlights (bug#39115).

lisp/net/shr.el

index 241180d471a971a35ea134e5102870d6f83aa2bd..55c189baa85b1d7f94ccaaeee91c1ee1f821eb32 100644 (file)
@@ -1265,7 +1265,9 @@ START, and END.  Note that START and END should be markers."
                           (format "%s (%s)" iri title)
                         iri))
         'follow-link t
-        'mouse-face 'highlight))
+         ;; Make separate regions not `eq' so that they'll get
+         ;; separate mouse highlights.
+        'mouse-face (list 'highlight)))
   ;; Don't overwrite any keymaps that are already in the buffer (i.e.,
   ;; image keymaps).
   (while (and start