Skip to content

Commit d6b1739

Browse files
committed
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.
1 parent 31ceb60 commit d6b1739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
;; be undone via tab.
118118

119119
(when (looking-at (concat "\s*\." rust-re-ident))
120-
(previous-logical-line)
120+
(forward-line -1)
121121
(end-of-line)
122122

123123
(let
@@ -176,7 +176,7 @@
176176
((string-begin-pos (nth 8 (syntax-ppss)))
177177
(end-of-prev-line-pos (when (> (line-number-at-pos) 1)
178178
(save-excursion
179-
(previous-line)
179+
(forward-line -1)
180180
(end-of-line)
181181
(point)))))
182182
(when

0 commit comments

Comments
 (0)