emacs-devel
[Top][All Lists]
Advanced

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

Re: elisp--local-variables triggers an error on special input


From: Evgeny Zajcev
Subject: Re: elisp--local-variables triggers an error on special input
Date: Thu, 17 Dec 2020 11:30:13 +0300



вт, 1 дек. 2020 г. в 18:45, Stefan Monnier <monnier@iro.umontreal.ca>:
> I've noticed that sometimes company raises an error in my *scratch*, I've
> shrinked the case and got:
> (with-current-buffer (get-buffer-create "pwp")
>   (erase-buffer)
>   (insert "((eg \"\C-,\")")
>   (elisp--local-variables))
> Evaluating this sexp raises "Invalid modifier in string" error
> Not sure this is intended, I think elisp--local-variables expects
> `invalid-read-syntax` error for this input, but got another error and does
> not handle it preventing error from happening

Clearly, `elisp--local-variables` should catch this error, but as you
point out, maybe the better way to do that is to change the error that
is signaled so that it is a child of `invalid-read-syntax`.


I've composed a patch that fixes this, could you please apply it.

--
lg

Attachment: 0002-Make-Invalid-modifier-in-string-ordinary-invalid-rea.patch
Description: Text Data


reply via email to

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