bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20904: If global-set-key is used to rebind <tab>, searching for a TA


From: Stefan Monnier
Subject: bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
Date: Fri, 26 Jun 2015 15:42:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

tags 20904 notabug
thanks

>> (global-set-key (kbd "<tab>") 'tab-to-tab-stop)
> I have found that changing the above form to:
>   (global-set-key (kbd "TAB") 'tab-to-tab-stop)
> avoids the problem (i.e., it allows the global binding of TAB to be
> changed to tab-to-tab-stop and allows searching for a TAB character).

That's right.
Most of Emacs (including Isearch) gives no special meaning to `tab', and
instead this key is typically remapped to TAB.
So unless you care about the difference between the two, you should
always bind the TAB and not `tab'.


        Stefan





reply via email to

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