aboutsummaryrefslogtreecommitdiff
path: root/generic/pg-user.el
diff options
context:
space:
mode:
authorDavid Aspinall2003-06-08 20:30:12 +0000
committerDavid Aspinall2003-06-08 20:30:12 +0000
commitbc447583fd85d770bc676162c7b124bbfbe9b84e (patch)
tree0a7250aea055700e63b70697259508c380089826 /generic/pg-user.el
parent19973e74dbbc8e83ccf755a46d872cf604b41312 (diff)
Add simple but effective identifier-under-mouse-query command.
Diffstat (limited to 'generic/pg-user.el')
-rw-r--r--generic/pg-user.el28
1 files changed, 27 insertions, 1 deletions
diff --git a/generic/pg-user.el b/generic/pg-user.el
index 28fd12ec..b30b2a03 100644
--- a/generic/pg-user.el
+++ b/generic/pg-user.el
@@ -990,7 +990,7 @@ If NUM is negative, move upwards. Return new span."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
-;; Message buffer hints
+;; Message buffer hints (added in PG 3.5)
;;
(defun pg-goals-buffers-hint ()
@@ -1026,5 +1026,31 @@ If NUM is negative, move upwards. Return new span."
The function `substitute-command-keys' is called on the argument."
(if pg-show-hints (message (substitute-command-keys hintmsg))))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; Identifier under mouse query (added in PG 3.5)
+;;
+
+;; FIXME: next setting perhaps a bit obnoxious, but this modifier
+;; combination is currently unused.
+(global-set-key '(control meta button1) 'pg-identifier-under-mouse-query)
+
+(defun pg-identifier-under-mouse-query (event)
+ (interactive "e")
+ (if proof-shell-identifier-under-mouse-cmd
+ (let ((identifier (save-selected-window
+ (save-selected-frame
+ (save-excursion
+ (mouse-set-point event)
+ (current-word))))))
+ (proof-shell-invisible-command
+ (format proof-shell-identifier-under-mouse-cmd
+ identifier)))))
+
+
+
+
+
(provide 'pg-user)
;; pg-user.el ends here.