From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: kill-matching-buffers without confirmation Date: Mon, 22 May 2017 15:13:15 -0400 Message-ID: <6ab68316-8d2b-50df-21a7-5a931af15e47@gmail.com> References: <537757403.6158992.1495470490914.ref@mail.yahoo.com> <537757403.6158992.1495470490914@mail.yahoo.com> <126b99e9-6af4-0ed7-2f8b-aee7e04c3022@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1495480413 30006 195.159.176.226 (22 May 2017 19:13:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 May 2017 19:13:33 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: Kaushal Modi , "R. Diez" , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 22 21:13:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCslk-0007h6-VB for ged-emacs-devel@m.gmane.org; Mon, 22 May 2017 21:13:29 +0200 Original-Received: from localhost ([::1]:44468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCslq-00076R-C1 for ged-emacs-devel@m.gmane.org; Mon, 22 May 2017 15:13:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCsle-00075K-Mz for emacs-devel@gnu.org; Mon, 22 May 2017 15:13:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCslZ-0000Xi-Kg for emacs-devel@gnu.org; Mon, 22 May 2017 15:13:22 -0400 Original-Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:34553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCslZ-0000X8-Gl for emacs-devel@gnu.org; Mon, 22 May 2017 15:13:17 -0400 Original-Received: by mail-qk0-x230.google.com with SMTP id k74so114570125qke.1 for ; Mon, 22 May 2017 12:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=7OsiTxu496YI87ib51YRelFUlpGFFK28DibPZm5Xvww=; b=oTxFE8aa9LiDXB3Nd2RDnUTwTvJsUqsdodtdOWZoZ2uippd3hv1qsKSyuUSb/i8Fpz UtLvbRa7zy7hGqw8vxuyww5zUAo1L9igaXADFvlrpbGjYMtg2sLjvO+DJabRXEaMCRLE u981DUnT6dVY38E6kxmZWFuYKqX8H691AbeVGR02WA41qZGH6FtYhH6vE/ktefJlo7Bj n9L7ZJQjZu/B9ZCpFf+ibuA9OtjPxt7prp/Y37MxQX55sarNRa5EOdI1PUe/8zQf1N8I fWQrhh+Wo+PVc6+5FZ9DCcR64feQkRfzBklbrqfWcKyaRiXD3Kz8Nac1RxHtPgJjO4So oSlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7OsiTxu496YI87ib51YRelFUlpGFFK28DibPZm5Xvww=; b=lS/Puey7rfvtQpzEbSTAOT4kIRfwf9mO6PjMC0LONw6uOnJrn9SCAU2jYtN2KLOHgW Mv9bTRF6uyHOQii8aTUJ1WvmSeuJYQ3mTz27LnAgT7JKZMd2E88MdyKmnNP/g3L4aT9N QtgisDvZ2Cn7K9x38o6t6sFqk1hD+3FH41PB43P+DZtW62C5Ki2XheQZIlKTNLgys2Hr KCZ/17k6+Iubaj1Goc7fyQDtnnoTPf3aRqXR8BS4YvuXleqr4Dnb9k2qi65n2eW+u2/8 DqRTNRCEJeoicP79QD2gZennkOEMb8AT8X/+f5RT0Sd52e76s6Z+QshNkVXBIMJZyaCa 1c6Q== X-Gm-Message-State: AODbwcDKvwxBZ81Je09vo/Cfo9ULbHMvoYJfi4gyZT4XLVL9tBn4b/U9 PeCIxkOa18xXzw== X-Received: by 10.55.50.204 with SMTP id y195mr21505636qky.264.1495480397021; Mon, 22 May 2017 12:13:17 -0700 (PDT) Original-Received: from [128.30.9.236] (30-9-236.wireless.csail.mit.edu. [128.30.9.236]) by smtp.gmail.com with ESMTPSA id u51sm12701778qta.56.2017.05.22.12.13.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 12:13:16 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215102 Archived-At: On 2017-05-22 15:00, Kaushal Modi wrote: > 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. I don't think we've applied such a standard before: we have multiple other variables that disable confirmation prompts, like confirm-nonexistent-file-or-buffer, confirm-kill-processes or kill-buffer-query-functions. > 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. Isn't there a similar risk of a user unknowingly copying code that rebinds the default binding to the risky variant? Cheers, Clément.