From: Jean Louis <bugs@gnu.support>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Is there any local variable to avoid asking me to save buffer on kill-buffer?
Date: Mon, 16 Dec 2024 10:14:58 +0300 [thread overview]
Message-ID: <Z1_TcnSTbTr69NMU@lco2> (raw)
In-Reply-To: <7f8a548d35d21c6436045ce11af22088.support1@rcdrun.com>
* Jean Louis <bugs@gnu.support> [2024-12-16 10:01]:
> I have bunch of temporary buffers which I regularly use, like 160
> times in 8 days, and as they are truly temporary I do not want to
> answer the question on `C-x k' yes/no/save?
>
> Maybe there is some local variable which I could set on opening of the
> buffer to kill the buffer on `C-x k' without getting bothered, anybody
> knows?
(defun rcd-temp-buffer-kill-current ()
"Kill current buffer without asking."
(interactive)
(let ((buffer-name (buffer-name (current-buffer))))
(kill-matching-buffers-no-ask (regexp-quote buffer-name))
(message "Killed: " buffer-name)))
I see that above attempt is again asking me, but function is called "no-ask". Is that a bug?
--
Jean Louis
next prev parent reply other threads:[~2024-12-16 7:14 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 [this message]
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
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=Z1_TcnSTbTr69NMU@lco2 \
--to=bugs@gnu.support \
--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).