all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Fran Litterio <flitterio@gmail.com>
Cc: 20904@debbugs.gnu.org
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	[thread overview]
Message-ID: <jwvlhf6s1fn.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <loom.20150626T185826-924@post.gmane.org> (Fran Litterio's message of "Fri, 26 Jun 2015 17:00:34 +0000 (UTC)")

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	other threads:[~2015-06-26 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26 16:48 bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB Fran Litterio
2015-06-26 17:00 ` Fran Litterio
2015-06-26 19:42   ` Stefan Monnier [this message]
2015-06-26 20:32   ` Eli Zaretskii

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=jwvlhf6s1fn.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=20904@debbugs.gnu.org \
    --cc=flitterio@gmail.com \
    /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.