From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Patch: minor blackbox.el fix Date: Tue, 08 Jan 2008 17:47:41 -0700 Message-ID: References: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199841577 2176 80.91.229.12 (9 Jan 2008 01:19:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 01:19:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 09 02:19:58 2008 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.50) id 1JCPbq-000436-55 for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2008 02:19:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCPbS-0002d8-D5 for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2008 20:19:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCPbM-0002Ya-RI for emacs-devel@gnu.org; Tue, 08 Jan 2008 20:19:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCPbK-0002TB-Mw for emacs-devel@gnu.org; Tue, 08 Jan 2008 20:19:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCPbK-0002Sz-Ix for emacs-devel@gnu.org; Tue, 08 Jan 2008 20:19:26 -0500 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCPbG-0001VZ-Ln; Tue, 08 Jan 2008 20:19:22 -0500 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m091JLAa031424; Tue, 8 Jan 2008 20:19:21 -0500 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m091JLD7009574; Tue, 8 Jan 2008 20:19:21 -0500 Original-Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m091JKeF003061; Tue, 8 Jan 2008 20:19:21 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 31C54508021; Tue, 8 Jan 2008 17:47:41 -0700 (MST) X-Attribution: Tom In-Reply-To: (Glenn Morris's message of "Tue\, 08 Jan 2008 03\:34\:09 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: 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:86599 Archived-At: GM> (define-key map [return] 'bb-done) GM> be better than adding a binding for newline-and-indent? I neglected to send the updated patch. Here it is. Tom 2008-01-08 Tom Tromey * play/blackbox.el (blackbox-mode-map): Bind [return] and "q". Index: lisp/play/blackbox.el =================================================================== RCS file: /sources/emacs/emacs/lisp/play/blackbox.el,v retrieving revision 1.28 diff -u -r1.28 blackbox.el --- lisp/play/blackbox.el 8 Jan 2008 20:44:08 -0000 1.28 +++ lisp/play/blackbox.el 9 Jan 2008 01:18:27 -0000 @@ -107,6 +107,8 @@ (blackbox-redefine-key map 'move-beginning-of-line 'bb-bol) (define-key map " " 'bb-romp) (define-key map [insert] 'bb-romp) + (define-key map "q" 'bury-buffer) + (define-key map [return] 'bb-done) (blackbox-redefine-key map 'newline 'bb-done) map))