From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Option for saving all buffers always? Date: Sat, 10 Aug 2019 11:54:42 -0700 Message-ID: <86r25s3l71.fsf@stephe-leake.org> References: <87r25zdgvq.fsf@mouse.gnus.org> <87a7cnvcmm.fsf@ericabrahamsen.net> <87d0hg96df.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="87675"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 10 21:16:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwWr2-000Mh9-1w for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 21:16:40 +0200 Original-Received: from localhost ([::1]:37768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwWr1-0005WV-2R for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 15:16:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41418) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwWqd-0005Tu-S5 for emacs-devel@gnu.org; Sat, 10 Aug 2019 15:16:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwWqc-0005Us-Uj for emacs-devel@gnu.org; Sat, 10 Aug 2019 15:16:15 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.148.231]:49322) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hwWqc-0005SQ-Mz for emacs-devel@gnu.org; Sat, 10 Aug 2019 15:16:14 -0400 Original-Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway34.websitewelcome.com (Postfix) with ESMTP id A960BAC274 for ; Sat, 10 Aug 2019 13:54:44 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id wWVohIMud90onwWVoh7gT2; Sat, 10 Aug 2019 13:54:44 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9KKjay/Rbrv96V7wrjzKt5sGxBcLfsM22EQCzXM60GI=; b=cRLCn2n6zbLj4QZDDT7mlOVfY oNWjDy8ALLpjaTFOS9NNIOT8QBOHwQHJYg8mEN9XV/bpFteASsEUsmBNQOtlCkyaxiYyncIMx2usm plDTUf4WkgBpmao8Ai9mKY7A4p+6wIceHT/CN0Rokdlomz4BV5JjofZeyIECStxWS52tqJVGGW0nP YqbMqi4VT5nA5PZIRAg6rnntJ03bLTXp3SOHytwWnAAZQxE9tgGPJLoqnYP36c3p77uTUPjTmqJLW /ieIlOJk3lIm9V3knkpmFvAEnffPG//1dfCbZFt0ZLCcwUSNPVvila9iETMiCe9g4ObtgjCX6PUwj kF2SP/QdA==; Original-Received: from [76.77.182.20] (port=49822 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hwWVn-004Fap-QJ for emacs-devel@gnu.org; Sat, 10 Aug 2019 12:54:43 -0600 In-Reply-To: <87d0hg96df.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Wed, 07 Aug 2019 20:29:16 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1hwWVn-004Fap-QJ X-Source-Sender: (Takver4) [76.77.182.20]:49822 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.148.231 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239312 Archived-At: Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> Lars Ingebrigtsen writes: >> >>> I just realised that I have never in the history of ever said "n" to the >>> question "Save file ...?" So I wondered whether there was any easy way >>> to make `save-some-buffers' always save everything. (The question is >>> especially annoying when compiling/grepping for stuff.) >> >> You can just "!" to approve all saves -- that doesn't seem that annoying. > > It's annoying to me. :-) > > But there didn't seem to be a general clamouring for this functionality, > so I just went with advice instead. For future duckduckgoing, here's > the necessary incantation: > > (advice-add 'save-some-buffers :around > (lambda (oldfun &optional arg pred) > (funcall oldfun t pred))) I did the same thing many moons ago. It's easy enough to do, and a good skill to have; i don't think we need yet another global setting for this. -- -- Stephe