From: Jean Louis <bugs@gnu.support>
To: Suhail Singh <suhailsingh247@gmail.com>
Cc: help-gnu-emacs@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Is there any local variable to avoid asking me to save buffer on kill-buffer?
Date: Tue, 17 Dec 2024 00:02:03 +0300 [thread overview]
Message-ID: <Z2CVS0sA1cpy7yB0@lco2> (raw)
In-Reply-To: <87r067s9i0.fsf@gmail.com>
* Suhail Singh <suhailsingh247@gmail.com> [2024-12-16 22:41]:
> Jean Louis <bugs@gnu.support> writes:
>
> > (let* ((file-name (concat rcd-temp-file-directory
> > (format-time-string "%Y-%m-%d-%H:%M:%S-")
> > rcd-temp-buffer-name
> > ".txt"))
> > (buffer (or name (concat "*" rcd-temp-buffer-name "*"))))
> > (switch-to-buffer (generate-new-buffer buffer))
> > (setq buffer-file-name file-name)
>
> A "temporary" buffer with a buffer-file-name? What makes it
> "temporary"?
rcd-temp-file-directory ➜ "/home/data1/protected/tmp/"
Even files can be temporary files, not so?
My temporary buffer with a buffer-file-name is considered temporary
because it is intended for short-term use and is typically deleted or
discarded after its purpose is served, regardless of whether it has a
file name or is stored in a designated temporary directory like
`rcd-temp-file-directory`.
--
Jean Louis
next prev parent reply other threads:[~2024-12-16 21:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-16 6:59 Is there any local variable to avoid asking me to save buffer on kill-buffer? Jean Louis
2024-12-16 7:14 ` Jean Louis
2024-12-16 12:04 ` Tassilo Horn
2024-12-16 12:25 ` Eduardo Ochs
2024-12-16 15:00 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-16 16:13 ` Jean Louis
2024-12-16 19:39 ` Suhail Singh
2024-12-16 21:02 ` Jean Louis [this message]
2024-12-16 21:26 ` Suhail Singh
2024-12-17 4:05 ` 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=Z2CVS0sA1cpy7yB0@lco2 \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=suhailsingh247@gmail.com \
/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).