]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mouse-1 in profiler-report-mode-map
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 25 Jul 2019 20:00:59 +0000 (22:00 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 25 Jul 2019 20:00:59 +0000 (22:00 +0200)
* lisp/profiler.el (profiler-report-mode-map): Make `mouse-1'
respect `mouse-1-click-follows-link' (bug#30515).

lisp/profiler.el

index 775096276da5a5ed9b7e32390ddd4abf28aec06a..ee11ff68c5650b7137740692d175bd841ea7f969 100644 (file)
@@ -473,6 +473,7 @@ this variable directly.")
                       (fboundp entry))
                  (propertize (symbol-name entry)
                              'face 'link
+                              'follow-link "\r"
                              'mouse-face 'highlight
                              'help-echo "\
 mouse-2: jump to definition\n\
@@ -534,9 +535,9 @@ RET: expand or collapse"))
     (define-key map "\r"    'profiler-report-toggle-entry)
     (define-key map "\t"    'profiler-report-toggle-entry)
     (define-key map "i"     'profiler-report-toggle-entry)
-    (define-key map [mouse-1] 'profiler-report-toggle-entry)
     (define-key map "f"     'profiler-report-find-entry)
     (define-key map "j"     'profiler-report-find-entry)
+    (define-key map [follow-link] 'mouse-face)
     (define-key map [mouse-2] 'profiler-report-find-entry)
     (define-key map "d"            'profiler-report-describe-entry)
     (define-key map "C"            'profiler-report-render-calltree)