branch: elpa/rust-mode
commit d6b173995b8d9c4f43124e639861ac615002a1a0
Author: Micah Chalmer <[email protected]>
Commit: Micah Chalmer <[email protected]>

    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