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

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

[elpa] externals/rec-mode dcd3394584: rec-mode.el: avoid explicit buffer


From: ELPA Syncer
Subject: [elpa] externals/rec-mode dcd3394584: rec-mode.el: avoid explicit buffer positions in rec-beginning-of-field-pos
Date: Mon, 20 Nov 2023 18:58:29 -0500 (EST)

branch: externals/rec-mode
commit dcd339458469d6c3c499b11df9d3b44e6de98ff5
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>

    rec-mode.el: avoid explicit buffer positions in rec-beginning-of-field-pos
    
    Fix suggested and cooked by Stefan Monnier.
---
 rec-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rec-mode.el b/rec-mode.el
index 801be9c499..f7c1b64aa2 100644
--- a/rec-mode.el
+++ b/rec-mode.el
@@ -6,7 +6,7 @@
 ;; Maintainer: Antoine Kalmbach <ane@iki.fi>
 ;; URL: https://www.gnu.org/software/recutils/
 ;; Package-Requires: ((emacs "25"))
-;; Version: 1.9.2
+;; Version: 1.9.3
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -515,9 +515,9 @@ then nil is returned."
 Return nil if the pointer is not on a field."
   (save-excursion
     (beginning-of-line)
-    (while (and (not (= (line-beginning-position) 1))
+    (while (and (not (= (line-beginning-position) (point-min)))
                 (or (looking-at "\\+")
-                    (and (> (point) 1)
+                    (and (not (bobp))
                          (save-excursion
                            (backward-char 2)
                            (looking-at "\\\\\n")))))



reply via email to

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