unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Suhail Singh <suhailsingh247@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Is there any local variable to avoid asking me to save buffer on kill-buffer?
Date: Mon, 16 Dec 2024 14:39:19 -0500	[thread overview]
Message-ID: <87r067s9i0.fsf@gmail.com> (raw)
In-Reply-To: <Z2BRnFRInLgGzGSU@lco2> (Jean Louis's message of "Mon, 16 Dec 2024 19:13:16 +0300")

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"?

-- 
Suhail



  reply	other threads:[~2024-12-16 19:39 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 [this message]
2024-12-16 21:02       ` Jean Louis
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=87r067s9i0.fsf@gmail.com \
    --to=suhailsingh247@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).