]> git.notmuchmail.org Git - notmuch/commit
emacs: Fix search tab completion in terminals
authorAustin Clements <amdragon@MIT.EDU>
Fri, 16 Mar 2012 03:13:12 +0000 (23:13 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 18 Mar 2012 12:14:23 +0000 (09:14 -0300)
commit0eaf4a21dda9519cc08db5b49126b02c4c6b5682
tree37d39153aa4cd8db8e668b17abdfac6d54b6662f
parentc695534df5830d0681f451bd213e75758b532e31
emacs: Fix search tab completion in terminals

In X, Emacs distinguishes the tab key, which produces a 'tab event;
from C-i, which produces a ?\t event.  However, in a terminal, these
are indistinguishable and only produce a ?\t event.  In order to
simplify things, Emacs automatically translates from 'tab to ?\t (see
"Function key translations" in M-x describe-bindings), so functions
only need to be bound to ?\t to work in all situations.

Previously, the search tab completion code usedq (kbd "<tab>"), which
produced the event sequence [tab], which only matched the 'tab event
and hence only worked in X.  This patch changes it to (kbd "TAB"),
which matches the general ?\t event and works in all situations.
emacs/notmuch.el