RE: [Orgmode] RE: (prepend-to-buffer "buffer-name" "string")

2008-09-17 Thread Parker, Matthew
: (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

Re: [Orgmode] RE: (prepend-to-buffer "buffer-name" "string")

2008-09-17 Thread Bernt Hansen
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 <[EMAIL PROTECTED]> writes: > Parker, Matthew

Re: [Orgmode] RE: (prepend-to-buffer "buffer-name" "string")

2008-09-16 Thread Nick Dokos
Parker, Matthew <[EMAIL PROTECTED]> 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 > > -Origin

[Orgmode] RE: (prepend-to-buffer "buffer-name" "string")

2008-09-16 Thread Parker, Matthew
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:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 11:03 PM To: Parker, Matthew Cc: emacs-orgmode@gnu.org Subje

[Orgmode] Re: (prepend-to-buffer "buffer-name" "string")

2008-09-16 Thread Bernt Hansen
See the builtin function 'insert' (insert "string to insert") -Bernt "Parker, Matthew" <[EMAIL PROTECTED]> 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-