# HG changeset patch # User Oleksandr Gavenko # Date 1490823527 -10800 # Node ID bbc10891c9a0a7b77913190c55ff752f1b0c9ece # Parent df20553d4bd26b8f5f7fabf8bdf4ccc69965f03b Fix: Warning: 'goto-line' is for interactive use only; use 'forward-line' instead. diff -r df20553d4bd2 -r bbc10891c9a0 ag.el --- a/ag.el Thu Mar 30 00:34:44 2017 +0300 +++ b/ag.el Thu Mar 30 00:38:47 2017 +0300 @@ -19,7 +19,8 @@ (goto-char (point-min))) (search-forward-regexp "^.*") (find-file-other-window (match-string 0)) - (goto-line lineno))))) + (goto-char (point-min)) + (forward-line (1- lineno)))))) (defun my-ag-kill-process () (interactive)