Skip to content

Commit

Permalink
Fix obsoleted function warnings for newer Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex authored and dominikh committed Feb 10, 2024
1 parent 8dce1e3 commit 6f4ff9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-guru.el
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ If BUFFER, return the number of characters in that buffer instead."

(defun go-guru--goto-byte-column (offset)
"Go to the OFFSETth byte in the current line."
(goto-char (byte-to-position (+ (position-bytes (point-at-bol)) (1- offset)))))
(goto-char (byte-to-position (+ (position-bytes (line-beginning-position)) (1- offset)))))

(defun go-guru--goto-pos (posn other-window)
"Find the file containing the position POSN (of the form `file:line:col')
Expand Down

0 comments on commit 6f4ff9e

Please sign in to comment.