emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot 710854f 026/184: Fixed a bug in gnuplot-end-of-con


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 710854f 026/184: Fixed a bug in gnuplot-end-of-continuation at beginning of buffer
Date: Sun, 29 Aug 2021 11:03:08 -0400 (EDT)

branch: elpa/gnuplot
commit 710854f2680b1457ef7b9f1d219171aa4deabff4
Author: Jonathan Oddie <j.j.oddie@gmail.com>
Commit: Jonathan Oddie <j.j.oddie@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]