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: Tue, 29 Dec 2020 10:06:19 +0300

`elisp--local-variables'

чт, 17 дек. 2020 г. в 18:43, Stefan Monnier <monnier@iro.umontreal.ca>:
> I've composed a patch that fixes this, could you please apply it.

Done.


This patch fixes this particular problem with lisp syntax reader, however `elisp--local-variables' remains *so* fragile, for example here I've got next errors from it:

In these cases lisp syntax is ok, but `elisp--local-variables-1' fails on it:

(with-current-buffer (get-buffer-create "bb")
  (erase-buffer)
  (insert "(let cc ")
  (elisp--local-variables))
==> Lisp error: (wrong-type-argument listp cc)

(with-current-buffer (get-buffer-create "bb")
  (erase-buffer)
  (insert "(let [a b]\n")
  (elisp--local-variables))
==> Lisp error: (wrong-type-argument listp [a b])

Should we fix all these cases one by one, or maybe just run `elisp--local-variables` under `ignore-errors`, what do you think?

--
lg

reply via email to

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