Subject: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB

From: Fran Litterio <[email-masked]>
Date: Fri, 26 Jun 2015 16:48:37 +0000 (UTC)

This happens in Emacs built from the latest sources on Windows 7.
To reproduce:

  1. Launch Emacs with: runemacs.exe -Q
  
  2. Type "C-s TAB".  See the error "Failing I-search: ^I" in
     the minibuffer.  This is expected.
  
  2. Evaluate this form:
  
     (global-set-key (kbd "<tab>") 'tab-to-tab-stop)
  
  3. Type "C-s TAB".  Instead of searching for a TAB character, this
     inserts a TAB character.
--
Fran Litterio
[email-masked]

In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2015-06-23 on IZSYSTEM023
Repository revision: 931f00677dee11d687b99140d25e5373448e329c
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=c:/apps/emacs --without-x --without-xpm
 --without-png --without-jpeg --without-tiff --without-gif'

Configured features:
SOUND NOTIFY ACL TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: C.ISO-8859-1
  locale-coding-system: cp1252

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils misearch multi-isearch
edmacro kmacro cl-loaddefs pcase cl-lib time-date mule-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 8 83589 5201)
 (symbols 32 19017 0)
 (miscs 32 45 150)
 (strings 16 14423 4036)
 (string-bytes 1 392815)
 (vectors 8 11321)
 (vector-slots 4 414379 5928)
 (floats 8 121 143)
 (intervals 28 257 183)
 (buffers 516 11))