|
From: | Michael Heerdegen |
Subject: | Re: Meaning of \C-? in bracket regular expression |
Date: | Mon, 28 Sep 2015 02:11:04 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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. Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |