[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Send buffer to new emacs session
From: |
Drew Adams |
Subject: |
RE: [External] : Send buffer to new emacs session |
Date: |
Wed, 23 Aug 2023 14:13:54 +0000 |
> > > I have a buffer in an emacs session, call the session S1. I want to
> start
> > > a new emacs session
> > > (call it S2) with the frame displaying the current buffer in S1. All
> the
> > > windows displaying
> > > buffer in S1 are then to be removed and the buffer in S1 killed. What
> can
> > > I do using elisp code ?
> >
> > The buffer doesn't exist in another Emacs session,
> > as I mentioned when you asked the question elsewhere.
> >
> > If you're talking only about the buffer's content,
> > or perhaps its content and some other state (e.g.
> > list of markers, variable values,...), then you can
> > of course persist most such info in a file and
> > then populate a buffer in the other session using it.
> >
> > But a buffer is itself in memory, and session-specific.
>
> The buffer is then only known with a particular session,
Correct.
> there is no possibility for a different emacs session to
> capture the details from another emacs session. Unless
> that memory is captures in a file that the new session can
> read.
Yes, AFAIK. There may also be a way for one
Emacs process to interact with another, but
someone else will need to speak to that. Even
then, I doubt you can communicate things like
buffers between processes - you would need to
serialize/marshall whatever info you wanted
to send to the other process, which amounts
to the same thing as saving serialized data
to disk.
It's not clear what you really need or want
to do. "The details" is vague. Most info
about a buffer that would be relevant in
general can be saved to disk and restored.
> I understand your point. I shall keep with a new frame
> associated with its respective emacs session.