aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2015-04-27 11:22:33 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2015-04-27 11:22:33 +0000
commit776bdbeda4bc9cf7f4e1746f316b2940d7b1fda0 (patch)
treefd4ac046308ded22d230be4d03a0bd30698f5fe8
parentf7434ea0d899e4a95b48a47dbc0fd84e9e4bc5b0 (diff)
Fixed at-point detection.
-rw-r--r--coq/coq.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/coq/coq.el b/coq/coq.el
index e8de7dde..42ceb2e3 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -732,7 +732,7 @@ Return nil if S is nil."
(defun coq-grab-punctuation-left (pos)
(let ((res nil)
(currpos pos))
- (while (coq-is-symbol-or-punct (char-before currpos)(char-before currpos))
+ (while (and (coq-is-symbol-or-punct (char-before currpos)))
(setq res (concat (char-to-string (char-before currpos)) res))
(setq currpos (- currpos 1)))
res))