* bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
@ 2015-06-26 16:48 Fran Litterio
2015-06-26 17:00 ` Fran Litterio
0 siblings, 1 reply; 4+ messages in thread
From: Fran Litterio @ 2015-06-26 16:48 UTC (permalink / raw)
To: 20904
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
flitterio@gmail.com
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))
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
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
2015-06-26 20:32 ` Eli Zaretskii
0 siblings, 2 replies; 4+ messages in thread
From: Fran Litterio @ 2015-06-26 17:00 UTC (permalink / raw)
To: 20904
I <flitterio <at> gmail.com> wrote:
> 2. Evaluate this form:
>
> (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).
--
Fran
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
2015-06-26 17:00 ` Fran Litterio
@ 2015-06-26 19:42 ` Stefan Monnier
2015-06-26 20:32 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2015-06-26 19:42 UTC (permalink / raw)
To: Fran Litterio; +Cc: 20904
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#20904: If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
2015-06-26 17:00 ` Fran Litterio
2015-06-26 19:42 ` Stefan Monnier
@ 2015-06-26 20:32 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2015-06-26 20:32 UTC (permalink / raw)
To: Fran Litterio; +Cc: 20904
> From: Fran Litterio <flitterio@gmail.com>
> Date: Fri, 26 Jun 2015 17:00:34 +0000 (UTC)
>
> I <flitterio <at> gmail.com> wrote:
>
> > 2. Evaluate this form:
> >
> > (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 exactly what you should have done. <tab> is a function key,
not the character Ctrl-I.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-26 20:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-06-26 20:32 ` Eli Zaretskii
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.