From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Bind `q' to `quit-window' or similar in *Messages* Date: Thu, 4 Feb 2010 07:30:15 -0800 Message-ID: <666B4094E55B408781676FA54BAEFB83@us.oracle.com> References: <7b501d5c1002030148j2df7b01eu92eb0729eb6cc28f@mail.gmail.com><87636evclf.fsf@thinkpad.tsdh.de><49F60829322A48C886BC62810DDB0147@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265297636 11039 80.91.229.12 (4 Feb 2010 15:33:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 15:33:56 +0000 (UTC) To: "'Tassilo Horn'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 16:33:53 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nd3iL-000498-5r for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 16:33:53 +0100 Original-Received: from localhost ([127.0.0.1]:46346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd3iK-0002D2-HV for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 10:33:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd3gw-0001h7-Mi for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:32:26 -0500 Original-Received: from [199.232.76.173] (port=60170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd3gw-0001gp-6N for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:32:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd3gu-0002QE-Mf for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:32:26 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:31175) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nd3gu-0002Q4-9J for emacs-devel@gnu.org; Thu, 04 Feb 2010 10:32:24 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o14FWHni011825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 4 Feb 2010 15:32:19 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o14D0wUD001624; Thu, 4 Feb 2010 15:32:16 GMT Original-Received: from abhmt012.oracle.com by acsmt354.oracle.com with ESMTP id 11255701265297419; Thu, 04 Feb 2010 07:30:19 -0800 Original-Received: from dradamslap1 (/10.175.197.239) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Feb 2010 07:30:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcqkvIEW8XyNmpHTRm+CkNhrxOpDWAAKy7jAAAKh8mAALoEx0A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4B6AE880.013A:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120903 Archived-At: > 99% of the time, I use it that way, too. But when debugging > some elisp code, I sometimes add markers there, like Drew > pointed out. So how about this idea: > > - *Messages* is read-only > - `q' buries the buffer > - `m' is bound to a new command that... provides an > interface to `message' I said: > So this comes down to a choice, I think: > > 1. View-mode by default, so `q' quits, and you need to do > `C-x C-q' to make it writable. > > 2. Writable by default, and you need to do `C-x 0' (or `C-x > k') to get rid of it. > > And the same or similar considerations probably apply to *Pp > Eval Output*. I still vote for #2, but I don't feel strongly about it. Again, I'm OK with either. I too use it without editing most of the time. And I don't think we need undo (with its cost) in *Messages*. The same applies to *Pp Eval Output*. But undo there would be useful. Quitting read-only should put *Pp Eval Output* back in Emacs-Lisp mode. I don't see the point (need) for the proposed `m' binding in `Messages'. If it's just in order to be able to add to the buffer text without turning off read-only (C-x C-q), then turning it off and editing is handier, IMO. But I'm probably missing the point here. If we choose #1, then `q' should do what it does in other, similar situations. I think that's more likely to be `quit-window' than `bury-buffer'. (FWIW, with my use of frames, `bury-buffer' is almost never the behavior I want.) Let `q' do what it does in Dired, for instance (`quit-window').