[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elisp--local-variables triggers an error on special input
From: |
tomas |
Subject: |
Re: elisp--local-variables triggers an error on special input |
Date: |
Tue, 1 Dec 2020 21:16:31 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Dec 01, 2020 at 03:36:47PM +0100, Joost Kremers wrote:
>
> On Tue, Dec 01 2020, tomas@tuxteam.de wrote:
> > On Tue, Dec 01, 2020 at 02:15:48PM +0100, Joost Kremers wrote:
> >> You get that error by just eval'ing:
> >>
> >> (insert "((eg \"\C-,\")")
> >>
> >> in the *scratch* buffer.
> >
> > Hm. I don't. The string just gets inserted:
> >
> > ((eg "C-,")
> >
> > (as I'd expected).
>
> What Emacs version are you using?
>
> Mine is:
>
> "GNU Emacs 27.1.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo
> version 1.15.10)
> of 2020-11-14"
Mine:
"28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version
1.16.0)
of 2020-11-30"
I win :-)
> >> So it doesn't seem to be related to `elisp--local-variables`.
> >
> > What does happen if you toggle-debug-on-error before doing
> > that?
>
> Nothing very interesting:
>
> ```
> Debugger entered--Lisp error: (error "Invalid modifier in string")
> read(#<buffer test.el>)
> elisp--preceding-sexp()
> elisp--eval-last-sexp(nil)
> eval-last-sexp(nil)
> funcall-interactively(eval-last-sexp nil)
> call-interactively(eval-last-sexp nil nil)
> command-execute(eval-last-sexp)
> ```
Oh, wait! I forgot the backslash before the 'C'. Now I get the error.
Just evaluating "\C-," gets you the same error. The '\C-,' isn't valid
char escape syntax (AFAIK it only works for ASCII SPACE through SPACE+32).
Sorry for the confusion.
Cheers
- t
signature.asc
Description: Digital signature