From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Bind `q' to `quit-window' or similar in *Messages* Date: Thu, 04 Feb 2010 09:24:57 +0100 Message-ID: <87eil1jtly.fsf@thinkpad.tsdh.de> References: <874olx8yz7.fsf@regnitz.physics.niu.edu> <87ljf9ju2i.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265271913 19128 80.91.229.12 (4 Feb 2010 08:25:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 08:25:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 09:25:10 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 1Ncx1Q-000205-6c for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 09:25:08 +0100 Original-Received: from localhost ([127.0.0.1]:38132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncx1P-0003Ua-L4 for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 03:25:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncx1J-0003Sn-Nz for emacs-devel@gnu.org; Thu, 04 Feb 2010 03:25:01 -0500 Original-Received: from [199.232.76.173] (port=37088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncx1J-0003Rp-6t for emacs-devel@gnu.org; Thu, 04 Feb 2010 03:25:01 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncx1H-0000Nc-Qc for emacs-devel@gnu.org; Thu, 04 Feb 2010 03:25:01 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:6033) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncx1H-0000NP-9R for emacs-devel@gnu.org; Thu, 04 Feb 2010 03:24:59 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id A5DFE78A3D4E for ; Thu, 4 Feb 2010 09:24:58 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22566-01 for ; Thu, 4 Feb 2010 09:24:57 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp234.uni-koblenz.de [141.26.71.234]) by deliver.uni-koblenz.de (Postfix) with ESMTP id BF59478A3D41 for ; Thu, 4 Feb 2010 09:24:57 +0100 (CET) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87ljf9ju2i.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 04 Feb 2010 09:15:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:120890 Archived-At: Tassilo Horn writes: Ups, sorry. I'm sick, and my head fell on the keyboard sending the message before it was finished... :-) >> Roland Winkler writes: >>> ...which brings us back to the original request: most often it is >>> used for viewing what is happening, so that most people probably were >>> happy if `q' had the same quit-window binding it has in other buffers >>> that are not intended for editing. >> >> Indeed. > > 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 Ok, `m' would be bound to a new command that provides an interface to `message'. It would read a format string, and if that contains %s and friends, it would read those (with elisp completion). That way, I could quickly add a marker with m ##################### RET or get some more useful informations with m %d^2 = %d RET 3 RET (* 3 3) RET. One problem I see, is that would always append to *Messages*, and I guess some users want to be able to write anywhere... Bye, Tassilo