emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d9385ac: Make links in shr use separate mouse highlight regions


From: Lars Ingebrigtsen
Subject: master d9385ac: Make links in shr use separate mouse highlight regions
Date: Fri, 24 Jan 2020 10:26:43 -0500 (EST)

branch: master
commit d9385acac25ace1b41f34f120805ef14ccb93bd9
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Make links in shr use separate mouse highlight regions
    
    * lisp/net/shr.el (shr-urlify): Make adjacent links have separate
    mouse hightlights (bug#39115).
---
 lisp/net/shr.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 241180d..55c189b 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]