aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Courtieu2015-03-04 13:17:02 +0000
committerPierre Courtieu2015-03-04 13:17:02 +0000
commit4e0cdecdc3fa43dc07585ac05334bb6c9a3e622a (patch)
tree07c65e302e0dd41ff7c9a5fafb8bbd48435ee9b9
parent3a11cf88c175ac38956f513c8fe465dc39bbc712 (diff)
Fixed compilation issue with previous commit + CHANGE updates.
-rw-r--r--CHANGES15
-rw-r--r--coq/coq.el43
2 files changed, 36 insertions, 22 deletions
diff --git a/CHANGES b/CHANGES
index c99653a4..e73fb502 100644
--- a/CHANGES
+++ b/CHANGES
@@ -106,6 +106,21 @@ the CVS ChangeLog and PG Trac, http://proofgeneral.inf.ed.ac.uk/trac.
Experimental: colorize hypothesis names and some parts of error
and warning messages. For readability.
+*** mouse Queries
+
+ This remaps standard emacs key bindings (faces and buffers menus
+ popup), so this is not enabled by default, use (setq
+ coq-remap-mouse-1 t) to enable.
+
+ - (control mouse-1) on an identifier sends a Print query on that id.
+ - (shift mouse-1) on an identifier sends a About query on that id.
+ - (control shift mouse-1) on an identifier sends a Check query on
+ that id.
+
+ As most of the bindings, they are active in the three buffer
+ (script, goals, response).
+
+
* Changes of Proof General 4.2 from Proof General 4.1
** Generic/misc changes
diff --git a/coq/coq.el b/coq/coq.el
index 2a13157c..f3fe03d4 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -2166,28 +2166,27 @@ Completion is on a quasi-exhaustive list of Coq tacticals."
(define-key coq-response-mode-map [(control ?c)(control ?a)(control ?g)] 'proof-store-goals-win)
(define-key coq-response-mode-map [(control ?c)(control ?a)?h] 'coq-PrintHint)
-(eval-when-compile
- (when coq-remap-mouse-1
- (define-key proof-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-mode-map [(control mouse-1)] '(lambda () (interactive)))
- (define-key proof-mode-map [(shift mouse-1)] '(lambda () (interactive)))
- (define-key proof-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-mode-map [(control shift mouse-1)] '(lambda () (interactive)))
-
- (define-key proof-response-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-response-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-response-mode-map [(control mouse-1)] '(lambda () (interactive)))
- (define-key proof-response-mode-map [(shift mouse-1)] '(lambda () (interactive)))
- (define-key proof-response-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-response-mode-map [(control shift mouse-1)] '(lambda () (interactive)))
-
- (define-key proof-goals-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-goals-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-goals-mode-map [(control mouse-1)] '(lambda () (interactive)))
- (define-key proof-goals-mode-map [(shift mouse-1)] '(lambda () (interactive)))
- (define-key proof-goals-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
- (define-key proof-goals-mode-map [(control shift mouse-1)] '(lambda () (interactive)))))
+(when coq-remap-mouse-1
+ (define-key proof-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-mode-map [(control mouse-1)] '(lambda () (interactive)))
+ (define-key proof-mode-map [(shift mouse-1)] '(lambda () (interactive)))
+ (define-key proof-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-mode-map [(control shift mouse-1)] '(lambda () (interactive)))
+
+ (define-key proof-response-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-response-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-response-mode-map [(control mouse-1)] '(lambda () (interactive)))
+ (define-key proof-response-mode-map [(shift mouse-1)] '(lambda () (interactive)))
+ (define-key proof-response-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-response-mode-map [(control shift mouse-1)] '(lambda () (interactive)))
+
+ (define-key proof-goals-mode-map [(control down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-goals-mode-map [(shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-goals-mode-map [(control mouse-1)] '(lambda () (interactive)))
+ (define-key proof-goals-mode-map [(shift mouse-1)] '(lambda () (interactive)))
+ (define-key proof-goals-mode-map [(control shift down-mouse-1)] 'coq-id-under-mouse-query)
+ (define-key proof-goals-mode-map [(control shift mouse-1)] '(lambda () (interactive))))
;;;;;;;;;;;;;;;;;;;;;;;;
;; error handling