From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Parker, Matthew" Subject: RE: RE: (prepend-to-buffer "buffer-name" "string") Date: Wed, 17 Sep 2008 10:09:25 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52EDF@post07.corp.seic.com> References: <87iqsvvt1x.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfxis-0003bw-Fn for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 10:09:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfxir-0003bY-RN for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 10:09:38 -0400 Received: from [199.232.76.173] (port=42938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfxir-0003bS-Ck for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 10:09:37 -0400 Received: from exprod5og113.obsmtp.com ([64.18.0.26]:33151) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kfxiq-0004GW-ID for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 10:09:37 -0400 Content-class: urn:content-classes:message In-Reply-To: <87iqsvvt1x.fsf@gollum.intra.norang.ca> 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: Bernt Hansen , nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Sorry, I reviewed that in 'intro to lisp' but promptly forgot about it. Thanks. -----Original Message----- From: Bernt Hansen [mailto:bernt@norang.ca]=20 Sent: Wednesday, September 17, 2008 8:47 AM To: nicholas.dokos@hp.com Cc: Parker, Matthew; emacs-orgmode@gnu.org Subject: Re: [Orgmode] RE: (prepend-to-buffer "buffer-name" "string") 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. >>=20 > > That's what with-current-buffer is for I believe: > > (with-current-buffer (insert "foo")) > > HTH, > Nick > >>=20 >> -----Original Message----- >> From: Bernt Hansen [mailto:bernt@norang.ca]=3D20 >> Sent: Tuesday, September 16, 2008 11:03 PM >> To: Parker, Matthew >> Cc: emacs-orgmode@gnu.org >> Subject: Re: (prepend-to-buffer "buffer-name" "string") >>=20 >> See the builtin function 'insert' >>=20 >> (insert "string to insert") >>=20 >> -Bernt >>=20 >>=20 >> "Parker, Matthew" writes: >>=20 >> > 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 >>=20 >>=20 >> _______________________________________________ >> 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 >>=20