From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Allow inhibiting 'auto-save-visited-mode' on a per-buffer basis. Date: Wed, 08 Apr 2020 16:07:19 +0300 Message-ID: <83k12qp1mg.fsf@gnu.org> References: <20200401175736.203124-1-phst@google.com> <83wo6yxb0s.fsf@gnu.org> <83lfn6p4kw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70498"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 08 15:07:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMAQv-000IG3-Ba for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Apr 2020 15:07:57 +0200 Original-Received: from localhost ([::1]:35900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMAQu-0001gD-D0 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Apr 2020 09:07:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40919) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMAQN-0001F8-E5 for emacs-devel@gnu.org; Wed, 08 Apr 2020 09:07:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jMAQL-000065-Vx; Wed, 08 Apr 2020 09:07:22 -0400 Original-Received: from [176.228.60.248] (port=1107 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jMAQL-0001Qg-1G; Wed, 08 Apr 2020 09:07:21 -0400 In-Reply-To: (message from Philipp Stephani on Wed, 8 Apr 2020 14:19:44 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246665 Archived-At: > From: Philipp Stephani > Date: Wed, 8 Apr 2020 14:19:44 +0200 > Cc: Stefan Monnier , Philipp Stephani , > Emacs developers > > > IMO, it depends on how popular the "disable locally" feature will be. > > If we envision that many users will want to do that for some buffers, > > then I think we'll need either a local minor mode or at least a > > variable where you can specify which buffers are exempt from the > > global mode. > > Hmm, that variable is exactly what I'm proposing here? No, not IIUC. You proposed a buffer-local variable that has to be set for each buffer where the global mode should be effectively disabled. I was talking about a global variable with regular expressions that match names of buffers where the user wants the global mode to be disabled.