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

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

Re: Meaning of \C-? in bracket regular expression


From: Joe Riel
Subject: Re: Meaning of \C-? in bracket regular expression
Date: Sun, 27 Sep 2015 21:51:23 -0700

On Mon, 28 Sep 2015 02:11:04 +0200
Michael Heerdegen <michael_heerdegen@web.de> wrote:

> Joe Riel <joer@san.rr.com> writes:
> 
> >  "[^\C-?}]"
> 
> (info "(elisp) Ctl-Char Syntax") says that
> 
>   For historical reasons, Emacs treats the <DEL> character as the
>   control equivalent of ‘?’:
> 
>        ?\^? ⇒ 127     ?\C-? ⇒ 127
> 
> Try (string-to-vector "[^\C-?}]").
> 
> So this is a question of string read syntax - there is no character "-"
> in this string representing a regexp.

Thanks, that was helpful.


-- 
Joe Riel




reply via email to

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