help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Send buffer to new emacs session


From: Heime
Subject: RE: [External] : Send buffer to new emacs session
Date: Wed, 23 Aug 2023 05:17:17 +0000





Sent with Proton Mail secure email.

------- Original Message -------
On Wednesday, August 23rd, 2023 at 1:30 PM, Drew Adams <drew.adams@oracle.com> 
wrote:


> > 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,
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.

I understand your point.  I shall keep with a new frame
associated with its respective emacs session. 
 
> (But I said all of this the first time you asked...,
> and I pointed you to Emacs docs about buffers etc.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]