]> git.eshelyaron.com Git - emacs.git/commitdiff
(news-mail-reply): Use goto-char rather than goto-line.
authorGlenn Morris <rgm@gnu.org>
Fri, 21 Aug 2009 07:34:18 +0000 (07:34 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 Aug 2009 07:34:18 +0000 (07:34 +0000)
lisp/ChangeLog
lisp/obsolete/rnewspost.el

index e73697dcf0df7d636f4222d2602d15f43eb6be0f..67d416c8adaa9f4ef34e8cbc54bedc9920f99c72 100644 (file)
@@ -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.
 
index 4513cad6d5ce0a44d6db2714de8bb671668d85aa..3b64516b41006959548d1c8ac6178848c7764fd0 100644 (file)
@@ -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")