Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Emacs 24.2 under Windows 7 x64 with cedet, semantic, autocomplete and other modules.

In one of my config files I've defined

(global-set-key (kbd "<C-tab>") 'semantic-complete-self-insert)

But actually in Emacs when I type Ctrl+Tab it inserts some character (like japanese).

Also I have (prefer-coding-system 'utf-8). Can anybody explain this issue? (no problems with same configs under linux)

share|improve this question

Here is where to start: C-h k C-TAB. And even C-h k TAB --- that is, ask Emacs what key sequence it sees when you hit the Tab key.

My guess is that it will say TAB and not <tab>. Different keyboards send different events when you hit the keyboard Tab key. If C-h k TAB says it is TAB, then do this:

(global-set-key (kbd "TAB") 'semantic-complete-self-insert)

You can also do this, which takes care of everything --- no need to actually find out what even the keyboard Tab key corresponds to:

M-x global-set-key RET TAB semantic-complete-self-insert RET

That is, hit the Tab key at the prompt from comand global-set-key.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .