Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3307564
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:25:15+00:00 2026-05-17T21:25:15+00:00

In GNU Emacs, what is [C-tab] ? Consider: (version) GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of

  • 0

In GNU Emacs, what is [C-tab]? Consider:

(version)
"GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
 of 2010-05-08 on G41R2F1"

(defun key-binding-test ()
  (interactive)
  (insert " key-binding-test called "))

For a single letter control character, a character constant must be used in the vector:

(global-set-key [C-l] 'key-binding-test) ; does not work
(global-set-key [?\C-l] 'key-binding-test) ; works

?\C-l can be evaluated in the *scratch* buffer:

?\C-l
12

However to bind C-Tab:

(global-set-key [?\C-tab] 'key-binding-test) ;does not work
    ; Debugger entered--Lisp error: (invalid-read-syntax "?")
(global-set-key [C-tab] 'key-binding-test) ; works

When I try to evalulate C-tab though:

C-tab ; Debugger entered--Lisp error: (void-variable C-tab)

Comparing the evaluation of the vectors:

[?\C-l] ; input
[12]    ; result

[C-tab] ; input
[C-tab] ; result

(aref [C-tab] 0) ; input
C-tab            ; result, but C-tab can not be evaulated further.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:25:15+00:00Added an answer on May 17, 2026 at 9:25 pm

    [C-tab] is a vector, see the manual for vectors. In there you will find that a vector is considered constant for evaluation (i.e. it evaluates to itself).

    So [C-tab] evaluates to [C-tab], a vector of one element, the symbol C-tab, which you can extract like so

    (aref [C-tab] 0)
    

    Added in response to the first comment.

    Another vector is:

    [some-symbol another (a list of things) 9]
    

    it has length 4

    (length [some-symbol another (a list of things) 9])
    

    It contains two symbols some-symbol and another, a list (a list of things) and an integer 9.

    C-tab is a symbol just like some-symbol and another in the examples above, they have no value unless their value cell is set to something.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using windows emacs with specifications below. GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26
I am using GNU Emacs 23.2.1 (i386-mingw-nt6.1.7601) of 2010-05-08 on G41R2F1 I find that
I am on Mac (Lion), using GNU/Emacs version 24.1. I have created a VM,
I'm using GNU/Emacs HEAD with the included cc-mode (c-version 5.32.2) on a GNU/Linux Debian
GNU Emacs 23.2.1 prolog-mode-version is a variable defined in `prolog.el'. Its value is 1.22
I am using GNU Emacs 23.1.1. I used M-x org-version to confirm that I
Although several thousand Emacs Lisp libraries exist, GNU Emacs, until version 24.1 did not
I am using GNU Emacs 23.1.50.1 (i486-pc-linux-gnu). What I want is conceptually simple, [TAB]
GNU Emacs on Mac OS X, by default, uses the control key as CTRL
Update 2013 May : As of GNU Emacs 24.3.1, (let .. (defun..)) bytecompiles just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.