[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode 3cf8ccb551 2/3: Replace obsolete function `point-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode 3cf8ccb551 2/3: Replace obsolete function `point-at-eol` with equivalent. |
Date: |
Sat, 21 Jan 2023 08:00:00 -0500 (EST) |
branch: elpa/zig-mode
commit 3cf8ccb55156677b77e0cafbafee8f63dcebfd49
Author: David Pathakjee <dpathakjee@gmail.com>
Commit: Joachim Schmidt <joachim.schmidt557@outlook.com>
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.
---
zig-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zig-mode.el b/zig-mode.el
index 277668174d..064c290953 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -321,7 +321,7 @@ This is written mainly to be used as
`end-of-defun-function' for Zig."
(interactive)
;; Jump over the function parameters and paren-wrapped return, if they exist.
- (while (re-search-forward "(" (point-at-eol) t)
+ (while (re-search-forward "(" (line-end-position) t)
(progn
(backward-char)
(forward-sexp)))