emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 76fb19b: * lisp/wid-edit.el (link): Remove :follow-


From: Stefan Monnier
Subject: [Emacs-diffs] master 76fb19b: * lisp/wid-edit.el (link): Remove :follow-link property (bug#22434)
Date: Mon, 30 May 2016 00:45:51 +0000 (UTC)

branch: master
commit 76fb19b359dec8556dc66dbac3ad3d333feea3c3
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/wid-edit.el (link): Remove :follow-link property (bug#22434)
    
    * lisp/recentf.el (recentf-dialog-mode-map): Remove unecessary mapping.
---
 lisp/recentf.el  |    1 -
 lisp/wid-edit.el |    8 +++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisp/recentf.el b/lisp/recentf.el
index df7f3e2..3321f2f 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1064,7 +1064,6 @@ Go to the beginning of buffer if not found."
     (define-key km "q" 'recentf-cancel-dialog)
     (define-key km "n" 'next-line)
     (define-key km "p" 'previous-line)
-    (define-key km [follow-link] "\C-m")
     km)
   "Keymap used in recentf dialogs.")
 
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 0a0f458..9ede9a5 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1789,7 +1789,13 @@ If END is omitted, it defaults to the length of LIST."
   "An embedded link."
   :button-prefix 'widget-link-prefix
   :button-suffix 'widget-link-suffix
-  :follow-link 'mouse-face
+  ;; The `follow-link' property should only be used in those contexts where the
+  ;; mouse-1 event normally doesn't follow the link, yet the `link' widget
+  ;; seems to almost always be used in contexts where (down-)mouse-1 is bound
+  ;; to `widget-button-click' and hence the "mouse-1 to mouse-2" remapping is
+  ;; not necessary (and can even be harmful).  So let's not add a :follow-link
+  ;; by default.  See (bug#22434).
+  ;; :follow-link 'mouse-face
   :help-echo "Follow the link."
   :format "%[%t%]")
 



reply via email to

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