help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to bind the keyboard 'C-;'


From: Stefan Monnier
Subject: Re: How to bind the keyboard 'C-;'
Date: Fri, 16 Mar 2007 10:06:26 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> and [?\C-;]
> Can anyone explain why the semicolon does not need to be backslashed
> there?

Well, it kind of does: the `read' function will not need a backslash because
when it sees "?\C-" is knows that what follows can't be a comment (because
"?\C-" on its own is not a valid lexeme).

But emacs-lisp-mode doesn't understand this (because it doesn't use the full
builtin lisp parser), so font-lock and syntax-based navigation (e.g. C-M-f)
will not treat it correctly if the ; is not escaped.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]