[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: minor blackbox.el fix

From: Tom Tromey
Subject: Patch: minor blackbox.el fix
Date: Sun, 06 Jan 2008 09:29:22 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

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.


2008-01-06  Tom Tromey  <address@hidden>

        * 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)
 ;; Blackbox mode is suitable only for specially formatted data.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]