[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any local variable to avoid asking me to save buffer on kil
From: |
Jean Louis |
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 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
* 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