From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Parker, Matthew" Subject: (prepend-to-buffer "buffer-name" "string") Date: Tue, 16 Sep 2008 21:11:19 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DBB@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0045577322==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KflZp-0004V3-Ij for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 21:11:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KflZm-0004Uq-Of for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 21:11:28 -0400 Received: from [199.232.76.173] (port=39312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KflZm-0004Un-JU for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 21:11:26 -0400 Received: from exprod5og114.obsmtp.com ([64.18.0.28]:50705) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KflZl-0002HW-VW for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 21:11:26 -0400 Content-class: urn:content-classes:message 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============0045577322== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C91862.4B2A28FA" This is a multi-part message in MIME format. ------_=_NextPart_001_01C91862.4B2A28FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. =20 Thanks, matt ------_=_NextPart_001_01C91862.4B2A28FA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------_=_NextPart_001_01C91862.4B2A28FA-- --===============0045577322== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0045577322==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: (prepend-to-buffer "buffer-name" "string") Date: Tue, 16 Sep 2008 23:03:15 -0400 Message-ID: <873ajz4gp8.fsf@gollum.intra.norang.ca> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DBB@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfnK7-0003PE-J6 for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:03:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfnK6-0003Ou-22 for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:03:22 -0400 Received: from [199.232.76.173] (port=36495 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfnK5-0003Or-Sy for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:03:21 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:65296) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfnK5-0007vK-IJ for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:03:21 -0400 In-Reply-To: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DBB@post07.corp.seic.com> (Matthew Parker's message of "Tue\, 16 Sep 2008 21\:11\:19 -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: "Parker, Matthew" Cc: emacs-orgmode@gnu.org See the builtin function 'insert' (insert "string to insert") -Bernt "Parker, Matthew" writes: > I=E2=80=99ve reviewed a lot of the docs, but maybe missed something=E2=80= =A6 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)=E2=80=A6 but instead of passin= g 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Parker, Matthew" Subject: RE: (prepend-to-buffer "buffer-name" "string") Date: Tue, 16 Sep 2008 23:06:50 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DC2@post07.corp.seic.com> References: <873ajz4gp8.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 1KfnNr-0004GG-Jz for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:07:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfnNp-0004FZ-NG for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:07:15 -0400 Received: from [199.232.76.173] (port=34159 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfnNp-0004FO-DV for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:07:13 -0400 Received: from exprod5og107.obsmtp.com ([64.18.0.184]:43387) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfnNo-0008Sz-24 for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 23:07:12 -0400 Content-class: urn:content-classes:message In-Reply-To: <873ajz4gp8.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 Cc: emacs-orgmode@gnu.org 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. -----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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: RE: (prepend-to-buffer "buffer-name" "string") Date: Wed, 17 Sep 2008 00:17:53 -0400 Message-ID: <19748.1221625073@gamaville.dokosmarshall.org> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DC2@post07.corp.seic.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfoUu-0001Bx-E6 for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 00:18:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfoUs-0001BX-Tg for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 00:18:36 -0400 Received: from [199.232.76.173] (port=58316 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfoUs-0001BU-Qo for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 00:18:34 -0400 Received: from qmta06.westchester.pa.mail.comcast.net ([76.96.62.56]:50351) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfoUs-0001X7-PJ for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 00:18:34 -0400 In-Reply-To: Message from "Parker, Matthew" of "Tue, 16 Sep 2008 23:06:50 EDT." <9E067A1AECCB154485D4CF7E4BEF4D8E09C52DC2@post07.corp.seic.com> 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: "Parker, Matthew" Cc: Bernt Hansen , emacs-orgmode@gnu.org 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 > 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 >> 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