From 11d3c0189fee91aa09b83bca4093dd774e92fc07 Mon Sep 17 00:00:00 2001 From: Nikolaos Bezirgiannis Date: Sat, 21 Dec 2019 15:54:30 +0100 Subject: [PATCH] fix documentation for goto-line --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 6d5030073b..3830845838 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1229,7 +1229,7 @@ mark is already active. This function is usually the wrong thing to use in a Lisp program. What you probably want instead is something like: (goto-char (point-min)) - (forward-line (1- N)) + (forward-line (N - 1)) If at all possible, an even better solution is to use char counts rather than line counts." (declare (interactive-only forward-line)) -- 2.24.1