GNU bug report logs - #1000
C-i is TAB on my Mac

Previous Next

Package: emacs;

Reported by: Alex <kensanata <at> gmail.com>

Date: Fri, 19 Sep 2008 09:45:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 1000 in the body.
You can then email your comments to 1000 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1000; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Alex <kensanata <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Alex <kensanata <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: C-i is TAB on my Mac
Date: Fri, 19 Sep 2008 11:39:46 +0200
When I use C-h k C-i I get the following:

TAB runs the command indent-for-tab-command

Apparently C-i gets translated to TAB as if I were in a terminal
window but I'm using Emacs in Apple's windowing system.



In GNU Emacs 22.3.1 (i386-apple-darwin8.11.1, Carbon Version 1.6.0)
 of 2008-09-11 on Pyrobombus.local
Windowing system distributor `Apple Inc.', version 10.4.11
configured using `configure  '--enable-carbon-app''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
  encoded-kbd-mode: t
  show-paren-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  view-mode: t

Recent input:
C-c TAB C-c <tab> C-c TAB C-c
TAB <C-up> C-SPC <C-down> <escape> x i n d e n t -
r e g i o n <return> C-x C-s <C-up> <C-down> <C-down>
<C-up> C-h k TAB <S-down> <escape> x e m a c s . v
e r <backspace> <backspace> <backspace> <backspace>
- v e r <tab> <return> <escape> x r e p o r t <tab>
<return>

Recent messages:
Mark set [2 times]
Mark saved where search started
Mark set
Mark activated
Loading newcomment...done
Saving file /Users/alex/oddmuse/wiki.pl...
Wrote /Users/alex/oddmuse/wiki.pl
Type C-x 1 to remove help window.
GNU Emacs 22.3.1 (i386-apple-darwin8.11.1, Carbon Version 1.6.0) of
2008-09-11 on Pyrobombus.local
Loading emacsbug...done





bug reassigned from package `emacs' to `emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 25 Sep 2008 08:05:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1000; Package emacs,ns. (Wed, 21 Jan 2009 23:25:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adrian Robert <adrian.b.robert <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 21 Jan 2009 23:25:04 GMT) Full text and rfc822 format available.

Message #12 received at 1000 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: 1000 <at> debbugs.gnu.org
Cc: Alex Schröder <kensanata <at> gmail.com>
Subject: Re: C-i is TAB on my Mac
Date: Thu, 22 Jan 2009 01:19:01 +0200
I could use some more background here.  Hitting C-h k C-i says the  
key was "TAB", whereas actually hitting C-h k tab says the key was  
"TAB (translated from <tab>)".  Is the definition of tab Ctrl-i and  
then some fancy keyboards later added a Tab key?  What does emacs do  
under X or w32?  What behavior is expected?

thanks





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1000; Package emacs,ns. (Thu, 22 Jan 2009 04:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Stefan Monnier" <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Thu, 22 Jan 2009 04:30:03 GMT) Full text and rfc822 format available.

Message #17 received at 1000 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Stefan Monnier" <monnier <at> iro.umontreal.ca>
To: "Adrian Robert" <adrian.b.robert <at> gmail.com>
Cc: <1000 <at> debbugs.gnu.org>,
        Alex Schröder <kensanata <at> gmail.com>
Subject: Re: bug#1000: C-i is TAB on my Mac
Date: Wed, 21 Jan 2009 23:22:07 -0500
> I could use some more background here.  Hitting C-h k C-i says the key was
> "TAB", whereas actually hitting C-h k tab says the key was  "TAB (translated
> from <tab>)".  Is the definition of tab Ctrl-i and  then some fancy
> keyboards later added a Tab key?  What does emacs do  under X or w32?
> What behavior is expected?

Yes, TAB is an ASCII char whose code is the same as C-i, just like DEL
is an ASCII char (whose code is the same as C-?).  The `tab' key emits
a `tab' symbol event which is then turned into a TAB char event.


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1000; Package emacs,ns. (Thu, 22 Jan 2009 05:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jasonr <at> f2s.com:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Thu, 22 Jan 2009 05:35:04 GMT) Full text and rfc822 format available.

Message #22 received at 1000 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: jasonr <at> f2s.com
To: Adrian Robert <adrian.b.robert <at> gmail.com>, 1000 <at> debbugs.gnu.org
Subject: Re: bug#1000: C-i is TAB on my Mac
Date: Thu, 22 Jan 2009 05:26:22 +0000
Quoting Adrian Robert <adrian.b.robert <at> gmail.com>:

> I could use some more background here.  Hitting C-h k C-i says the
> key was "TAB", whereas actually hitting C-h k tab says the key was
> "TAB (translated from <tab>)".  Is the definition of tab Ctrl-i and
> then some fancy keyboards later added a Tab key?  What does emacs do
> under X or w32?  What behavior is expected?

The definition of C-i is the ASCII control character with a code of 9 (TAB).

w32 also reports simply TAB for C-h k C-i, and TAB (translated from <tab>) for
the tab key. So this is not a Mac specific thing.

While I can see the connection between C-i and ASCII TAB, it does seem
inconsistent, as other control keys are not reported as their ASCII meaning
like this.






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1000; Package emacs,ns. (Thu, 22 Jan 2009 20:40:04 GMT) Full text and rfc822 format available.

Message #25 received at 1000 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 1000 <at> debbugs.gnu.org
Cc: "Adrian Robert" <adrian.b.robert <at> gmail.com>
Subject: Re: bug#1000: C-i is TAB on my Mac
Date: Thu, 22 Jan 2009 15:31:46 -0500
reassign 1000 emacs
stop

This issue (if it is an issue) is the same under X on GNU/Linux, so I
should not have assigned this to ns; sorry.




bug reassigned from package `emacs,ns' to `emacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 22 Jan 2009 20:40:05 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to Alex <kensanata <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 24 Jun 2010 18:24: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. (Fri, 23 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.