From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: simple function to prepend a string to a file --> SOLUTION Date: Sat, 18 Apr 2009 19:15:10 +0200 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1240076452 3967 80.91.229.12 (18 Apr 2009 17:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2009 17:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 19:42:12 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvEYN-0008Qo-Hv for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 19:42:11 +0200 Original-Received: from localhost ([127.0.0.1]:53875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvEWy-00085U-Om for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 13:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp4-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:vixJlb+xNMfx73HWDiuDebefmCM= Original-Lines: 12 Original-NNTP-Posting-Date: 18 Apr 2009 19:15:11 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1240074911 news-3.free.fr 23905 82.240.200.149:54868 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:168578 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63851 Archived-At: bojohan+news@dd.chalmers.se (Johan Bockgård) writes: > harven writes: > >> (point-min) goes to the beginning of the accessible part of the >> buffer, if the buffer is narrowed. > > (goto-char 1) does the same. Ack ! Then I don't know why I used (goto-char (point-min)) instead of (goto-char 1) all these years.