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: Patch: minor blackbox.el fix Date: Sun, 06 Jan 2008 09:29:22 -0700 Message-ID: Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199638943 18585 80.91.229.12 (6 Jan 2008 17:02:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2008 17:02:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 18:02:44 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 1JBYtV-0005HA-T9 for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 18:02:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBYt8-0007PO-CY for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 12:02:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBYrD-00075P-5B for emacs-devel@gnu.org; Sun, 06 Jan 2008 12:00:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBYrA-00074u-AW for emacs-devel@gnu.org; Sun, 06 Jan 2008 12:00:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBYr9-00074p-Sa for emacs-devel@gnu.org; Sun, 06 Jan 2008 12:00:15 -0500 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBYr9-0006Dj-Ew for emacs-devel@gnu.org; Sun, 06 Jan 2008 12:00:15 -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 m06H0EZi029142 for ; Sun, 6 Jan 2008 12:00:14 -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 m06H0E0c024960 for ; Sun, 6 Jan 2008 12:00:14 -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 m06H0DKn005726; Sun, 6 Jan 2008 12:00:14 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id ED8EF508021; Sun, 6 Jan 2008 09:29:22 -0700 (MST) X-Attribution: Tom 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:86343 Archived-At: This patch adds a "q" key binding to blackbox, to bury the buffer. Also, locally I found that RET was doing the wrong thing in blackbox, and this patch arranges to redefine newline-and-indent as well. This fixed the problem I saw. Tom 2008-01-06 Tom Tromey * play/blackbox.el (blackbox-mode-map): Rebind newline-and-indent. Bind "q" to bury-buffer. Index: lisp/play/blackbox.el =================================================================== RCS file: /sources/emacs/emacs/lisp/play/blackbox.el,v retrieving revision 1.27 diff -u -r1.27 blackbox.el --- lisp/play/blackbox.el 1 Dec 2007 09:06:35 -0000 1.27 +++ lisp/play/blackbox.el 6 Jan 2008 16:55:12 -0000 @@ -107,7 +107,9 @@ (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) (blackbox-redefine-key map 'newline 'bb-done) + (blackbox-redefine-key map 'newline-and-indent 'bb-done) map)) ;; Blackbox mode is suitable only for specially formatted data.