# HG changeset patch # User Glenn Morris # Date 1250840058 0 # Node ID 395f430854da363cc7018e183a705c437c178847 # Parent 1229ad8aec2685d44318abf9f1bb547af8e22771 (news-mail-reply): Use goto-char rather than goto-line. diff -r 1229ad8aec26 -r 395f430854da lisp/ChangeLog --- a/lisp/ChangeLog Fri Aug 21 07:31:10 2009 +0000 +++ b/lisp/ChangeLog Fri Aug 21 07:34:18 2009 +0000 @@ -1,5 +1,8 @@ 2009-08-21 Glenn Morris + * 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 -r 1229ad8aec26 -r 395f430854da lisp/obsolete/rnewspost.el --- a/lisp/obsolete/rnewspost.el Fri Aug 21 07:31:10 2009 +0000 +++ b/lisp/obsolete/rnewspost.el Fri Aug 21 07:34:18 2009 +0000 @@ -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 @@ (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")