changeset 72000:8c5ba642d479

(minibuffer-local-map): Rebind TAB so it inserts a \t.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 Jul 2006 14:39:57 +0000
parents 77f1713977dd
children adaad9cef326
files lisp/bindings.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bindings.el	Tue Jul 18 14:06:52 2006 +0000
+++ b/lisp/bindings.el	Tue Jul 18 14:39:57 2006 +0000
@@ -674,7 +674,11 @@
   (define-key map [prior] 'previous-history-element)
   (define-key map [up]    'previous-history-element)
   (define-key map "\es"   'next-matching-history-element)
-  (define-key map "\er"   'previous-matching-history-element))
+  (define-key map "\er"   'previous-matching-history-element)
+  ;; Override the global binding (which calls indent-relative via
+  ;; indent-for-tab-command).  The alignment that indent-relative tries to
+  ;; do doesn't make much sense here since the prompt messes it up.
+  (define-key map "\t"    'self-insert-command))
 
 (define-key global-map "\C-u" 'universal-argument)
 (let ((i ?0))