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

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

[nongnu] elpa/rust-mode d6b1739 136/486: Fix spurious errors in emacs 23


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode d6b1739 136/486: Fix spurious errors in emacs 23
Date: Sat, 7 Aug 2021 09:25:05 -0400 (EDT)

branch: elpa/rust-mode
commit d6b173995b8d9c4f43124e639861ac615002a1a0
Author: Micah Chalmer <micah@micahchalmer.net>
Commit: Micah Chalmer <micah@micahchalmer.net>

    Fix spurious errors in emacs 23
    
    Use (forward-line -1) instead of (previous-line)
    or (previous-logical-line).  This avoids spurious "beginning-of-buffer"
    errors in emacs 23, and is otherwise the same.
---
 rust-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index fdc65b5..c82a484 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -117,7 +117,7 @@
     ;; be undone via tab.
     
     (when (looking-at (concat "\s*\." rust-re-ident))
-      (previous-logical-line)
+      (forward-line -1)
       (end-of-line)
 
       (let
@@ -176,7 +176,7 @@
                    ((string-begin-pos (nth 8 (syntax-ppss)))
                     (end-of-prev-line-pos (when (> (line-number-at-pos) 1)
                                             (save-excursion
-                                              (previous-line)
+                                              (forward-line -1)
                                               (end-of-line)
                                               (point)))))
                  (when



reply via email to

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