From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: make emacs switch to front unsaved buffer when quit Date: Wed, 4 Apr 2012 18:27:59 -0700 Message-ID: <2525CF68339246799F231612DAA2FFD5@us.oracle.com> References: <9419453e-b6f8-4384-8a31-3b3391efa724@8g2000pbm.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333589297 7525 80.91.229.3 (5 Apr 2012 01:28:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2012 01:28:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Juanma Barranquero'" , "'Xah Lee'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 05 03:28:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SFbUj-0005ec-Uz for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2012 03:28:14 +0200 Original-Received: from localhost ([::1]:45461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFbUj-0002AK-BX for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Apr 2012 21:28:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFbUe-00029R-2h for help-gnu-emacs@gnu.org; Wed, 04 Apr 2012 21:28:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFbUc-0005my-CE for help-gnu-emacs@gnu.org; Wed, 04 Apr 2012 21:28:07 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:20679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFbUc-0005ms-5e for help-gnu-emacs@gnu.org; Wed, 04 Apr 2012 21:28:06 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q351S2q4032351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Apr 2012 01:28:03 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q351S21D017479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Apr 2012 01:28:02 GMT Original-Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q351S1s9012989; Wed, 4 Apr 2012 20:28:01 -0500 Original-Received: from dradamslap1 (/10.159.56.237) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Apr 2012 18:28:01 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac0SxkL4yrcpOz4NT3ayuI/A8kvojQAAeWKQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-CT-RefId: str=0001.0A090204.4F7CF523.0065,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84331 Archived-At: > That runs save-buffers-kill-emacs, which runs save-some-buffers, whose > docstring says: > > 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'. `C-x C-c' runs `save-buffers-kill-terminal', by default. And that calls `save-buffers-kill-emacs', which runs `save-some-buffers'. It's not so obvious which function to check for more info. Fortunately, the prompt lists the keys you can use. Unfortunately, it does not point out that `C-h' will give you more help, telling you what each key does. Also unfortunately, the doc of `save-some-buffers' (both doc string and Elisp manual) does not say anything about hitting `C-h' and some of the the other keys you can use. I just filed bug #11181 for this.