changeset 104539:7d4a9e8bcfb8

(gnus-button-patch): Use forward-line rather than goto-line.
author Glenn Morris <rgm@gnu.org>
date Sat, 22 Aug 2009 19:13:34 +0000
parents 328a5fd88053
children fc0ed6b4a2b2
files lisp/gnus/ChangeLog lisp/gnus/gnus-art.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Sat Aug 22 10:26:14 2009 +0000
+++ b/lisp/gnus/ChangeLog	Sat Aug 22 19:13:34 2009 +0000
@@ -1,3 +1,8 @@
+2009-08-22  Glenn Morris  <rgm@gnu.org>
+
+	* gnus-art.el (gnus-button-patch): Use forward-line rather than
+	goto-line.
+
 2009-07-24  Glenn Morris  <rgm@gnu.org>
 
 	* gnus-demon.el (gnus-demon-add-nntp-close-connection):
--- a/lisp/gnus/gnus-art.el	Sat Aug 22 10:26:14 2009 +0000
+++ b/lisp/gnus/gnus-art.el	Sat Aug 22 19:13:34 2009 +0000
@@ -7908,7 +7908,8 @@
     (unless file
       (error "Couldn't find library %s" library))
     (find-file file)
-    (goto-line (string-to-number line))))
+    (goto-char (point-min))
+    (forward-line (1- (string-to-number line)))))
 
 (defun gnus-button-handle-man (url)
   "Fetch a man page."