branch: elpa/gnuplot
commit 710854f2680b1457ef7b9f1d219171aa4deabff4
Author: Jonathan Oddie <[email protected]>
Commit: Jonathan Oddie <[email protected]>
Fixed a bug in gnuplot-end-of-continuation at beginning of buffer
This made setting up gnuplot-mode fail halfway through on an empty buffer.
---
gnuplot.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index 8fce68d..1de6333 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2327,11 +2327,12 @@ If not in a continuation line, move point to beginning
of line."
If there are no continuation lines, move point to end-of-line."
(end-of-line)
- (catch 'eob
- (while (save-excursion (backward-char)
- (looking-at "\\\\"))
- (end-of-line 2)
- (if (eobp) (throw 'eob nil)))))
+ (unless (bobp)
+ (catch 'eob
+ (while (save-excursion (backward-char)
+ (looking-at "\\\\"))
+ (end-of-line 2)
+ (if (eobp) (throw 'eob nil))))))
;; Save-excursion wrappers for the above to return point at beginning
;; or end of continuation