aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2016-05-16 18:59:33 -0400
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2016-05-16 18:59:33 -0400
commit4346278e5ae54fe46a3dd04cb92892a0c9e045c0 (patch)
treeba48721e71f3f2a4a2b8e6defa6d8a9491ab37a4
parent2e7f542aa80ead836ea7bfe14e4d94430a7b556c (diff)
Don't offer "" as the default in C-c C-c C-a
-rw-r--r--coq/coq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index a75760ed..4921bdaf 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -867,8 +867,9 @@ Support dot.notation.of.modules."
(defun coq-id-or-notation-at-point ()
- (or (coq-id-at-point) (concat "\"" (coq-notation-at-position (point)) "\"")))
-
+ (or (coq-id-at-point)
+ (let ((notation (coq-notation-at-position (point))))
+ (if notation (concat "\"" notation "\"") ""))))
(defcustom coq-remap-mouse-1 nil
"Wether coq mode should remap mouse button 1 to coq queries.