From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen 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 16:27:17 -0700 Message-ID: <877ewq1fhm.fsf@ericabrahamsen.net> 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 1506122889 22919 195.159.176.226 (22 Sep 2017 23:28:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 23:28:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 23 01:28:05 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 1dvXMZ-0005bJ-3J for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2017 01:28:03 +0200 Original-Received: from localhost ([::1]:33137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvXMg-0005Ez-99 for ged-emacs-devel@m.gmane.org; Fri, 22 Sep 2017 19:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvXM2-0005Dq-Qu for emacs-devel@gnu.org; Fri, 22 Sep 2017 19:27:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvXLz-00054g-O4 for emacs-devel@gnu.org; Fri, 22 Sep 2017 19:27:30 -0400 Original-Received: from [195.159.176.226] (port=37894 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvXLz-00053U-Gp for emacs-devel@gnu.org; Fri, 22 Sep 2017 19:27:27 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dvXLp-0003Iy-OZ for emacs-devel@gnu.org; Sat, 23 Sep 2017 01:27:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Lmolo7HdLNtmWqo8SssjYN93U5g= 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:218715 Archived-At: Stefan Monnier writes: >> "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. My logic circuits have fused. Give me a day or so.