From a6027bef486b488753c4a3389ad272b7648bbd09 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Tue, 23 Aug 2011 12:40:14 +0000 Subject: Crude patch for Trac #416. I haven't tried to understand indent code fully, so may not be best fix. --- coq/coq-indent.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'coq/coq-indent.el') diff --git a/coq/coq-indent.el b/coq/coq-indent.el index 36e3eea7..891319d9 100644 --- a/coq/coq-indent.el +++ b/coq/coq-indent.el @@ -384,6 +384,12 @@ Can jump line if NOJUMPLINES = nil." (setq res (cons command-found res)) (if (and (coq-script-parse-cmdend-forward) ;(ignore-errors (forward-char 1) t);to fit in the "and" + ;; da: My PATCH for Trac #416, to avoid looping at buffer end + (not (let ((p (point))) + (skip-chars-forward " \t\n") + (prog1 + (eobp) + (goto-char p)))) (coq-find-real-start)) (setq command-found (coq-command-at-point nojumplines)) (setq command-found nil) -- cgit v1.2.3