From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#10229: save-some-buffers, -action-alist Date: Tue, 06 Dec 2011 16:50:44 +0800 Message-ID: <878vmqccd7.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323161617 15677 80.91.229.12 (6 Dec 2011 08:53:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2011 08:53:37 +0000 (UTC) To: 10229@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 06 09:53:31 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqmI-0001rC-4J for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2011 09:53:30 +0100 Original-Received: from localhost ([::1]:39109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqmH-0003fK-DO for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2011 03:53:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqmF-0003f4-1O for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:53:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXqmE-0007cY-5n for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:53:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqmE-0007cT-2K for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:53:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RXqmo-0005zK-AE for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2011 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132316160822975 (code B ref -1); Tue, 06 Dec 2011 08:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Dec 2011 08:53:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqmG-0005yW-6T for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:53:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqmB-0005yN-KO for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:53:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXqlX-0007SJ-7G for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:52:47 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:53398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqlX-0007SF-5h for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:52:43 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqlT-0003S2-8h for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:52:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXqlP-0007Rb-B2 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:52:39 -0500 Original-Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:57187 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXqlO-0007JO-LI for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2011 03:52:35 -0500 Original-Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id EFCD210AFB3 for ; Tue, 6 Dec 2011 00:50:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=eCnV2vdO6FtdU6mZw1sL5AhMTkukaVGGBHPjGM7Yq4SM+IIVvdDWjpJ2K/ms x5o6NUJiTreMbf+quf85F1Slzikw5h2Woxe9+shoIdNGGfY4bMQCLzSlSHrhXS/a CmC59jXdeqJ7j2Le5C8W+OE3WZBD9Evna3SSFZh9FZ5d/oY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=1t39Ns78DQr2dfr5Wq5JoUPMqbI=; b=nmy7QziABU9AaLIN KMJrqleaWGCms5ZK29nMlbL2m7Ef2+kYPC4iXcapwamNcNzLZXJVzlwMIw721JD8 6fbV6wy57i4m0dXv9Whwzir6v8GuWqWJq/CIOGswbbdfVgPO1pBHSACWB0aebMUw ws3s3tzs1DJK6rg5AwGaN9dX2EY= Original-Received: from jidanni.org (218-163-21-66.dynamic.hinet.net [218.163.21.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 55D4210AFAD for ; Tue, 6 Dec 2011 00:50:47 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Dec 2011 03:54:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54745 Archived-At: C-x s runs the command save-some-buffers, which is an interactive compiled Lisp function in `files.el'. It is bound to C-x s. (save-some-buffers &optional ARG PRED) Save some modified file-visiting buffers. Asks user about each one. You can answer `y' to save, `n' not to save, `C-r' to look at the buffer in question with `view-buffer' before deciding or `d' to view the differences using `diff-buffer-with-file'. OK, but you forgot one: plain old visit-the-buffer. C-r lets you look at it but you are still in the minibuffer. So you hit C-g and ... you can't see it any more. This command first saves any buffers where `buffer-save-without-query' is non-nil, without asking. Optional argument (the prefix) non-nil means save all with no questions. Optional second argument PRED determines which buffers are considered: If PRED is nil, all the file-visiting buffers are considered. If PRED is t, then certain non-file buffers will also be considered. If PRED is a zero-argument function, it indicates for each buffer whether to consider it or not when called with that buffer current. See `save-some-buffers-action-alist' if you want to change the additional actions you can take on files. Well C-h v save-some-buffers-action-alist shows some horrid byte code.