all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* different sessions into one
@ 2005-07-28  4:45 Johan Meskens CS3 jmcs3
  2005-07-28  8:25 ` Peter Dyballa
  2005-07-28  9:19 ` Lennart Borgman
  0 siblings, 2 replies; 4+ messages in thread
From: Johan Meskens CS3 jmcs3 @ 2005-07-28  4:45 UTC (permalink / raw)



hello


i have a session of emacs open:
jmcs3@interlichtspielhaus:~$ emacs

now
  if i do:
jmcs3@interlichtspielhaus:~$ ps aux | emacs &

  , a second session of emacs will open

the same goes for when i call emacs from within perl scripts
  , each time new emacs sessions will open

how can i force the opening of buffers within the first emacs session ?

thanks
jmcs3

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

* Re: different sessions into one
  2005-07-28  4:45 different sessions into one Johan Meskens CS3 jmcs3
@ 2005-07-28  8:25 ` Peter Dyballa
  2005-07-28 11:39   ` Johan Meskens CS3 jmcs3
  2005-07-28  9:19 ` Lennart Borgman
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Dyballa @ 2005-07-28  8:25 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 28.07.2005 um 06:45 schrieb Johan Meskens CS3 jmcs3:

> how can i force the opening of buffers within the first emacs session ?
>

See server-start and the little utility emacscslient. When you define 
an environment variable EDITOR that contains emacsclient a few commands 
will send Emacs text to edit. Leaving/Closing an emacsclient buffer 
might be a bit inconvenient ...

'ps aux' you can do to in a shell inside Emacs too ...

--
Greetings

   Pete

   It's not the valleys in life I dread so much as the dips.
		-- 	Garfield

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

* Re: different sessions into one
  2005-07-28  4:45 different sessions into one Johan Meskens CS3 jmcs3
  2005-07-28  8:25 ` Peter Dyballa
@ 2005-07-28  9:19 ` Lennart Borgman
  1 sibling, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2005-07-28  9:19 UTC (permalink / raw)
  Cc: help-gnu-emacs, Emacs Devel

Johan Meskens CS3 jmcs3 wrote:

>
> hello
>
>
> i have a session of emacs open:
> jmcs3@interlichtspielhaus:~$ emacs
>
> now
>  if i do:
> jmcs3@interlichtspielhaus:~$ ps aux | emacs &
>
>  , a second session of emacs will open
>
> the same goes for when i call emacs from within perl scripts
>  , each time new emacs sessions will open
>
> how can i force the opening of buffers within the first emacs session ?

You have to use emacsserver/client or gnuserv/client. But unfortunately 
at least with gnuserv I do not believe that you can pipe the content 
directly to gnuclient.

A workaround is of course making a small program that saves the output 
to a temporary file and then calls emaclient or gnuclient on that. Maybe 
there should be such a program in the Emacs distribution?

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

* Re: different sessions into one
  2005-07-28  8:25 ` Peter Dyballa
@ 2005-07-28 11:39   ` Johan Meskens CS3 jmcs3
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Meskens CS3 jmcs3 @ 2005-07-28 11:39 UTC (permalink / raw)


Peter Dyballa wrote:
> 
> Am 28.07.2005 um 06:45 schrieb Johan Meskens CS3 jmcs3:
> 
>> how can i force the opening of buffers within the first emacs session ?
>>
> 
> See server-start and the little utility emacscslient. When you define an 
> environment variable EDITOR that contains emacsclient a few commands 
> will send Emacs text to edit. Leaving/Closing an emacsclient buffer 
> might be a bit inconvenient ...

yes thank you
  , that works perfectly

  - sorry about that reply off-list - the list doesnt seem to answer to 
the list by default

> 'ps aux' you can do to in a shell inside Emacs too ...

how do get into shell mode ? :)


kind regards
jmcs3

> -- 
> Greetings
> 
>   Pete
> 
>   It's not the valleys in life I dread so much as the dips.
>         --     Garfield
> 
> 
> 
> 

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

end of thread, other threads:[~2005-07-28 11:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28  4:45 different sessions into one Johan Meskens CS3 jmcs3
2005-07-28  8:25 ` Peter Dyballa
2005-07-28 11:39   ` Johan Meskens CS3 jmcs3
2005-07-28  9:19 ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.