unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "Clément Pit-Claudel" <cpitclaudel@gmail.com>,
	"R. Diez" <rdiezmail-emacs@yahoo.de>,
	"Emacs developers" <emacs-devel@gnu.org>
Subject: Re: kill-matching-buffers without confirmation
Date: Mon, 22 May 2017 19:00:37 +0000	[thread overview]
Message-ID: <CAFyQvY2iAJaHjYA2C=TrD1Z6OMfbEKqo5VgQT_mM58JAZfXNsQ@mail.gmail.com> (raw)
In-Reply-To: <126b99e9-6af4-0ed7-2f8b-aee7e04c3022@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

On Mon, May 22, 2017 at 2:45 PM Clément Pit-Claudel <cpitclaudel@gmail.com>
wrote:

> Or a defcustom, since it seems that the usual approach is to override the
> behavior unconditionally.
>

A defcustom seems too risky for this. A user can unknowingly copy that var
from somewhere and then end up killing modified buffers without
confirmation.

Add a new defun that just sets the new optional arg to non-nil value is
less risky as the user would then be knowingly calling the risky variant.
The default kill-matching-buffers will still remain safe.

What do you think?
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 985 bytes --]

  reply	other threads:[~2017-05-22 19:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <537757403.6158992.1495470490914.ref@mail.yahoo.com>
2017-05-22 16:28 ` kill-matching-buffers without confirmation R. Diez
2017-05-22 18:21   ` Kaushal Modi
2017-05-22 18:34     ` Clément Pit-Claudel
2017-05-22 18:42       ` Kaushal Modi
2017-05-22 18:45         ` Clément Pit-Claudel
2017-05-22 19:00           ` Kaushal Modi [this message]
2017-05-22 19:13             ` Clément Pit-Claudel
2017-05-22 19:20               ` Kaushal Modi
2017-05-22 19:34               ` Stefan Monnier
2017-05-22 22:21   ` Drew Adams
2017-05-23  5:28     ` Yuri Khan
2017-05-23  6:28     ` R. Diez
2017-05-23 20:34       ` Drew Adams
2017-05-23 12:51     ` Kaushal Modi
2017-05-23 13:03       ` Stefan Monnier
2017-05-23 13:18         ` Kaushal Modi
2017-05-24  1:50           ` zhanghj

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='CAFyQvY2iAJaHjYA2C=TrD1Z6OMfbEKqo5VgQT_mM58JAZfXNsQ@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=cpitclaudel@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rdiezmail-emacs@yahoo.de \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).