From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: RE: (prepend-to-buffer "buffer-name" "string") Date: Wed, 17 Sep 2008 08:46:34 -0400 Message-ID: <87iqsvvt1x.fsf@gollum.intra.norang.ca> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DC2@post07.corp.seic.com> <19748.1221625073@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfwQb-0003U1-7N for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 08:46:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfwQZ-0003Tp-Hj for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 08:46:40 -0400 Received: from [199.232.76.173] (port=54580 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfwQZ-0003Tm-D8 for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 08:46:39 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:50600) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfwQZ-0005A9-2i for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 08:46:39 -0400 In-Reply-To: <19748.1221625073@gamaville.dokosmarshall.org> (Nick Dokos's message of "Wed\, 17 Sep 2008 00\:17\:53 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, "Parker, Matthew" save-excursion is used to save your location when you temporarily move somewhere else to do something (save-excursion (with-current-buffer "buffer" (goto-char (point-min)) (insert "Stuff at the front of the buffer\n"))) -Bernt Nick Dokos writes: > Parker, Matthew wrote: > >> Yes, but this would require I first move to the buffer to write to, do >> the insert, then move back to the buffer I'm searching in. >> > > That's what with-current-buffer is for I believe: > > (with-current-buffer (insert "foo")) > > HTH, > Nick > >> >> -----Original Message----- >> From: Bernt Hansen [mailto:bernt@norang.ca]=20 >> Sent: Tuesday, September 16, 2008 11:03 PM >> To: Parker, Matthew >> Cc: emacs-orgmode@gnu.org >> Subject: Re: (prepend-to-buffer "buffer-name" "string") >> >> See the builtin function 'insert' >> >> (insert "string to insert") >> >> -Bernt >> >> >> "Parker, Matthew" writes: >> >> > I've reviewed a lot of the docs, but maybe missed something... Is >> there a >> > function that allows you to just insert text into a buffer. i.e. just >> like >> > (prepend-to-buffer buffer-name start stop)... but instead of passing a >> start and >> > a stop, you can just pass a string. >> > >> > Thanks, >> > >> > matt >> > >> > >> > _______________________________________________ >> > Emacs-orgmode mailing list >> > Remember: use `Reply All' to send replies to the list. >> > Emacs-orgmode@gnu.org >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>