unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Writing to an open buffer from shell?
@ 2003-02-09 21:26 Peter Neumann
  2003-02-10  6:08 ` Eli Zaretskii
  2003-02-10  6:31 ` Kai Großjohann
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Neumann @ 2003-02-09 21:26 UTC (permalink / raw)


Is there a way to write additional informations from a shell into an 
already opened buffer?

Whenever I start my Windowmanager I start Emacs useing it during the day 
for all kinds of work. Aside of codeing I write down my notes and memos 
in a special (today calles)buffer. As I am collecting all kinds of text
in this buffer, I would like to have it filled and accessible from 
"everywhere".

I had just looked if emacsclient could be helpfull but it seems not
to be appropiate, or is it?

thank you for your attention

and your help in advance

Peter
-- 
Peter
heisst
jeder!
mailto:RasT24@lycos.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Writing to an open buffer from shell?
  2003-02-09 21:26 Writing to an open buffer from shell? Peter Neumann
@ 2003-02-10  6:08 ` Eli Zaretskii
  2003-02-10  6:31 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2003-02-10  6:08 UTC (permalink / raw)



On Sun, 9 Feb 2003, Peter Neumann wrote:

> Is there a way to write additional informations from a shell into an 
> already opened buffer?

I hope I understood what you are looking for.  The shell-command function 
accepts optional arguments that cause Emacs to redirect the command's
output into a buffer you name.  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Writing to an open buffer from shell?
  2003-02-09 21:26 Writing to an open buffer from shell? Peter Neumann
  2003-02-10  6:08 ` Eli Zaretskii
@ 2003-02-10  6:31 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2003-02-10  6:31 UTC (permalink / raw)


Peter Neumann <rast24@lycos.com> writes:

> Whenever I start my Windowmanager I start Emacs useing it during the
> day for all kinds of work. Aside of codeing I write down my notes and
> memos in a special (today calles)buffer. As I am collecting all kinds
> of text
> in this buffer, I would like to have it filled and accessible from
> "everywhere".

In the CVS version of Emacs, emacsclient supports the --eval argument
which allows you to eval arbitrary Lisp code, including, say 

    (save-excursion
      (set-buffer "memo")
      (goto-char (point-max))
      (insert "SOME TEXT GOES HERE\n"))

There is also the gnuserv package which contains the gnudoit program
which can do the same.
-- 
A turnip curses Elvis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-10  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-09 21:26 Writing to an open buffer from shell? Peter Neumann
2003-02-10  6:08 ` Eli Zaretskii
2003-02-10  6:31 ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).