Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 3cf8ccb

Browse files
dpathakjjoachimschmidt557
authored andcommitted
Replace obsolete function point-at-eol with equivalent.
Emacs 29.1+ emits a warning when code using `point-at-eol` is compiled; see emacs/master commit b7e867. This is a trivial but safe change to get rid of that warning. `point-at-eol` seems to have been the same thing as `line-end-position` since 1999 (emacs/master commit 475fb2f). I've tested this briefly and the behavior of `zig-end-of-defun` does seem to be the same with this change.
1 parent d5b00bc commit 3cf8ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zig-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ This is written mainly to be used as `end-of-defun-function' for Zig."
321321
(interactive)
322322

323323
;; Jump over the function parameters and paren-wrapped return, if they exist.
324-
(while (re-search-forward "(" (point-at-eol) t)
324+
(while (re-search-forward "(" (line-end-position) t)
325325
(progn
326326
(backward-char)
327327
(forward-sexp)))

0 commit comments

Comments
 (0)