From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs-26 ee512e9: Ignore buffers whose name begins with a space in save-some-buffers Date: Fri, 22 Sep 2017 15:03:19 -0400 Message-ID: References: <20170918202953.21378.63492@vcs0.savannah.gnu.org> <20170918202955.5043420AC4@vcs0.savannah.gnu.org> <87inge8skl.fsf@ericabrahamsen.net> <878th9z40r.fsf@ericabrahamsen.net> <831sn0fpk9.fsf@gnu.org> <87o9q3lt8s.fsf@ericabrahamsen.net> <83zi9ncjg2.fsf@gnu.org> <87d16iivcx.fsf@ericabrahamsen.net> <874lruishe.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506107018 3501 195.159.176.226 (22 Sep 2017 19:03:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 19:03:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 22 21:03:34 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 1dvTEb-0000eq-1Y for ged-emacs-devel@m.gmane.org; Fri, 22 Sep 2017 21:03:33 +0200 Original-Received: from localhost ([::1]:60645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvTEi-00077K-Hk for ged-emacs-devel@m.gmane.org; Fri, 22 Sep 2017 15:03:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvTEc-000779-Ui for emacs-devel@gnu.org; Fri, 22 Sep 2017 15:03:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvTEZ-0001Ry-Sc for emacs-devel@gnu.org; Fri, 22 Sep 2017 15:03:34 -0400 Original-Received: from [195.159.176.226] (port=38440 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvTEZ-0001R2-MT for emacs-devel@gnu.org; Fri, 22 Sep 2017 15:03:31 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dvTEN-0008PW-Eg for emacs-devel@gnu.org; Fri, 22 Sep 2017 21:03:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:tlNO2K1jACzBA7s38TGudGwF9ys= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:218698 Archived-At: > "If b-o-s is t and PRED is t the buffer will be saved, unless b-o-s is > 'always in which case it doesn't matter what PRED is, unless PRED is a > function in which case the only thing that matters is what that function > returns, so long as buffer has a file name." > > I'm exaggerating for effect, but still. I still don't quite understand > the use of passing a boolean in for PRED. It's historical. `pred = t` means "all possible buffers", whereas `pred = nil` means "all buffers where we usually want to do it" and another value of `pred` means just those buffers selected by pred. Stefan