branch: elpa/go-mode commit 6f4ff9ef874d151ed8d297a80f1bf27db5d9dbf0 Author: Shohei YOSHIDA <syo...@gmail.com> Commit: Dominik Honnef <domi...@honnef.co>
Fix obsoleted function warnings for newer Emacs --- go-guru.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-guru.el b/go-guru.el index 42bb6d54a9..c538680df2 100644 --- a/go-guru.el +++ b/go-guru.el @@ -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')