aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-08-21 07:34:18 +0000
committerGlenn Morris2009-08-21 07:34:18 +0000
commitfff28970383c88621cfcdd79375ca200bd69bb0e (patch)
treee44b258073e86ef76aa693c1f8eb73ec5a168885
parentd93e053bb544bca58f9d993c538ce45a6946cef6 (diff)
downloademacs-fff28970383c88621cfcdd79375ca200bd69bb0e.tar.gz
emacs-fff28970383c88621cfcdd79375ca200bd69bb0e.zip
(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 @@
12009-08-21 Glenn Morris <rgm@gnu.org> 12009-08-21 Glenn Morris <rgm@gnu.org>
2 2
3 * obsolete/rnewspost.el (news-mail-reply):
4 Use goto-char rather than goto-line.
5
3 * term/ns-win.el (ns-open-file-select-line): 6 * term/ns-win.el (ns-open-file-select-line):
4 Use line-beginning-position rather than goto-line. 7 Use line-beginning-position rather than goto-line.
5 8
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 @@
1;;; rnewspost.el --- USENET news poster/mailer for GNU Emacs 1;;; rnewspost.el --- USENET news poster/mailer for GNU Emacs
2 2
3;; Copyright (C) 1985, 1986, 1987, 1995, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1985, 1986, 1987, 1995, 2001, 2002, 2003, 2004, 2005,
4;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: mail, news 7;; Keywords: mail, news
@@ -296,9 +296,9 @@ original message into it."
296 (let (from cc subject date to reply-to message-id 296 (let (from cc subject date to reply-to message-id
297 (buffer (current-buffer))) 297 (buffer (current-buffer)))
298 (save-restriction 298 (save-restriction
299 (narrow-to-region (point-min) (progn (goto-line (point-min)) 299 (narrow-to-region (point-min) (progn (goto-char (point-min))
300 (search-forward "\n\n") 300 (search-forward "\n\n")
301 (- (point) 1))) 301 (1- (point))))
302 (setq from (mail-fetch-field "from") 302 (setq from (mail-fetch-field "from")
303 subject (mail-fetch-field "subject") 303 subject (mail-fetch-field "subject")
304 reply-to (mail-fetch-field "reply-to") 304 reply-to (mail-fetch-field "reply-to")