all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: emacs-devel@gnu.org
Subject: Patch: minor blackbox.el fix
Date: Sun, 06 Jan 2008 09:29:22 -0700	[thread overview]
Message-ID: <m3k5mmvrx9.fsf@fleche.redhat.com> (raw)

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  <tromey@redhat.com>

	* 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.

             reply	other threads:[~2008-01-06 16:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-06 16:29 Tom Tromey [this message]
2008-01-08  8:34 ` Patch: minor blackbox.el fix Glenn Morris
2008-01-08 19:36   ` Tom Tromey
2008-01-09  0:47   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k5mmvrx9.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.