]> git.eshelyaron.com Git - emacs.git/commitdiff
(cvs-mode-map): Map follow-link to a function which
authorKim F. Storm <storm@cua.dk>
Fri, 17 Dec 2004 15:17:35 +0000 (15:17 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 17 Dec 2004 15:17:35 +0000 (15:17 +0000)
checks if position is in a filename, rather than some other
clickable item.  Function looks for cvs-filename-face at position.

lisp/pcvs-defs.el

index 6bdd6bb6dd8ad1c78bc97c38c816b1e5fb07f5b2..27629c5ddc629d2103c2fed9eb5b43aecad4fad2 100644 (file)
@@ -380,6 +380,8 @@ This variable is buffer local and only used in the *cvs* buffer.")
     ("+" .     cvs-mode-tree)
     ;; mouse bindings
     ([mouse-2] . cvs-mode-find-file)
+    ([follow-link] . (lambda (pos)
+                      (if (eq (get-char-property pos 'face) 'cvs-filename-face) t)))
     ([(down-mouse-3)] . cvs-menu)
     ;; dired-like bindings
     ("\C-o" .   cvs-mode-display-file)