From: Jean Louis <bugs@gnu.support>
To: Heime <heimeborgia@protonmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [External] : Make new buffer from menu
Date: Sun, 4 Dec 2022 17:20:21 +0300 [thread overview]
Message-ID: <Y4yspaPu5WRLGrGj@protected.localdomain> (raw)
In-Reply-To: <cc4xcz2OIOJpws6H1AcwIFPpjdxKX3LKbN_40xY-F_VIy3xb_JpCHt_wy59L5CLF0Oebdxp32Pim1nJ1JemvT9LihRWzAfj5lKDqQE37pMA=@protonmail.com>
* Heime <heimeborgia@protonmail.com> [2022-12-04 10:21]:
> Anyway, when making new buffer, Emacs should just make a temporary
> one, then the user can save it if one wants.
You can do that:
Do this:
C-x b "ENTER NAME OF YOUR BUFFER" like anything "nfj"
then do this to save:
C-x C-w
The temporary buffer in Emacs Lisp sense, it has different
meaning and, I am not even sure if you could access it,
(with-temp-buffer
(current-buffer)) ➜ #<killed buffer>
Can I switch to it?
(with-temp-buffer
(switch-to-buffer (current-buffer))) ➜ #<killed buffer>
Let me see?
(with-temp-buffer
(insert "Hello")
(switch-to-buffer (current-buffer))
(sleep-for 10)) ➜ nil
And I did not see "Hello", so those are really temporary buffers.
Emacs is not one making decisions like human user, as human user
can also decide about "temporary file", but for a file system it
is just file, so for Emacs too, any buffer is just buffer.
Me as user I call some buffers temporary as that is designation I
keep to know that I do not really need to save them. THough I
did couple them with file names automatically, in case that I
wish to quickly save them.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-12-04 14:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 3:58 Make new buffer from menu Heime
2022-12-03 17:20 ` [External] : " Drew Adams
2022-12-03 18:43 ` Heime
2022-12-03 19:15 ` tomas
2022-12-03 20:27 ` Heime
2022-12-04 6:20 ` tomas
2022-12-04 6:48 ` Eli Zaretskii
2022-12-04 7:20 ` Heime
2022-12-04 14:20 ` Jean Louis [this message]
2022-12-04 17:12 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-12-04 12:13 ` Jean Louis
2022-12-04 11:55 ` Dr Rainer Woitok
2022-12-04 12:32 ` Heime
2022-12-04 12:39 ` Jean Louis
2022-12-04 12:36 ` Jean Louis
2022-12-04 12:03 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y4yspaPu5WRLGrGj@protected.localdomain \
--to=bugs@gnu.support \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).