Skip to content

Commit ddf45ed

Browse files
committed
Use (goto-char (point-max)) instead of (end-of-buffer) to silence warning.
Fixes issue #54.
1 parent 42730b1 commit ddf45ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ See `compilation-error-regexp-alist for help on their format.")
774774
; start of the buffer: the relevant text
775775
; (shortened url or error message) is exactly
776776
; the last line.
777-
(end-of-buffer)
777+
(goto-char (point-max))
778778
(let ((last-line (thing-at-point 'line t))
779779
(err (plist-get state :error)))
780780
(kill-buffer)

0 commit comments

Comments
 (0)