summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-08-21 07:34:18 +0000
committerGlenn Morris <rgm@gnu.org>2009-08-21 07:34:18 +0000
commitfff28970383c88621cfcdd79375ca200bd69bb0e (patch)
treee44b258073e86ef76aa693c1f8eb73ec5a168885
parentd93e053bb544bca58f9d993c538ce45a6946cef6 (diff)
downloademacs-fff28970383c88621cfcdd79375ca200bd69bb0e.tar.gz
(news-mail-reply): Use goto-char rather than goto-line.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/obsolete/rnewspost.el8
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e73697dcf0d..67d416c8ada 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2009-08-21 Glenn Morris <rgm@gnu.org>
+ * obsolete/rnewspost.el (news-mail-reply):
+ Use goto-char rather than goto-line.
+
* term/ns-win.el (ns-open-file-select-line):
Use line-beginning-position rather than goto-line.
diff --git a/lisp/obsolete/rnewspost.el b/lisp/obsolete/rnewspost.el
index 4513cad6d5c..3b64516b410 100644
--- a/lisp/obsolete/rnewspost.el
+++ b/lisp/obsolete/rnewspost.el
@@ -1,7 +1,7 @@
;;; rnewspost.el --- USENET news poster/mailer for GNU Emacs
-;; Copyright (C) 1985, 1986, 1987, 1995, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1986, 1987, 1995, 2001, 2002, 2003, 2004, 2005,
+;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: mail, news
@@ -296,9 +296,9 @@ original message into it."
(let (from cc subject date to reply-to message-id
(buffer (current-buffer)))
(save-restriction
- (narrow-to-region (point-min) (progn (goto-line (point-min))
+ (narrow-to-region (point-min) (progn (goto-char (point-min))
(search-forward "\n\n")
- (- (point) 1)))
+ (1- (point))))
(setq from (mail-fetch-field "from")
subject (mail-fetch-field "subject")
reply-to (mail-fetch-field "reply-to")