GNU bug report logs -
#20904
If global-set-key is used to rebind <tab>, searching for a TAB character inserts a TAB
Previous Next
Reported by: Fran Litterio <flitterio <at> gmail.com>
Date: Fri, 26 Jun 2015 16:50:03 UTC
Severity: normal
Tags: notabug
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20904 in the body.
You can then email your comments to 20904 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20904
; Package
emacs
.
(Fri, 26 Jun 2015 16:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Fran Litterio <flitterio <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 26 Jun 2015 16:50:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20904
; Package
emacs
.
(Fri, 26 Jun 2015 17:02:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20904
; Package
emacs
.
(Fri, 26 Jun 2015 20:04:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 20904 <at> debbugs.gnu.org (full text, mbox):
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
Added tag(s) notabug.
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Fri, 26 Jun 2015 20:04:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20904
; Package
emacs
.
(Fri, 26 Jun 2015 20:33:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 20904 <at> debbugs.gnu.org (full text, mbox):
> From: Fran Litterio <flitterio <at> 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.
bug closed, send any further explanations to
20904 <at> debbugs.gnu.org and Fran Litterio <flitterio <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 01 Jul 2015 17:08:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 30 Jul 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.