diff options
author | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:29:18 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:29:18 +0000 |
commit | 73ff65e05cc50b537e71724f1f42083af182f77c (patch) | |
tree | 1ac8e8236a6e83332a56270a2c9f181c9cfe16c0 /lisp/view.el | |
parent | 8b66f9b29a64cff259aec1012c05503734fe113e (diff) | |
download | emacs-73ff65e05cc50b537e71724f1f42083af182f77c.tar.gz |
Use forward-line rather than goto-line.
Diffstat (limited to 'lisp/view.el')
-rw-r--r-- | lisp/view.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el index 311d5e3123c..40214c073c0 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -817,7 +817,8 @@ Display is centered at LINE. Also set the mark at the position where point was." (interactive "p") (push-mark) - (goto-line line) + (goto-char (point-min)) + (forward-line (1- line)) (view-recenter)) (defun View-back-to-mark (&optional ignore) |