diff options
author | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:13:34 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:13:34 +0000 |
commit | 5dcc825f21c290704e0bb205080e4f6e36bad69c (patch) | |
tree | 31227447a2849172f89499208c1c87f38b4f2fa8 /lisp | |
parent | 729eaddaca2d5f683dcd6d4a587f4db84636c486 (diff) | |
download | emacs-5dcc825f21c290704e0bb205080e4f6e36bad69c.tar.gz emacs-5dcc825f21c290704e0bb205080e4f6e36bad69c.tar.bz2 emacs-5dcc825f21c290704e0bb205080e4f6e36bad69c.zip |
(gnus-button-patch): Use forward-line rather than goto-line.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/gnus/gnus-art.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index cd5bcc4f4d3..24500b64744 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -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): diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 09f481763df..cedfff0421c 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -7908,7 +7908,8 @@ url is put as the `gnus-button-url' overlay property on the button." (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." |