GNU bug report logs -
#30697
make eval-expression only take `read'-able Lisp
Previous Next
Reported by: charles <at> aurox.ch (Charles A. Roelli)
Date: Sun, 4 Mar 2018 16:36:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 30697 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 04 Mar 2018 17:46:18 +0100
> From: charles <at> aurox.ch (Charles A. Roelli)
>
> Here is a change to make eval-expression issue a warning in the
> minibuffer when the user enters an unreadable expression. Currently,
> we just error out, so the user has to restart the command and go back
> in the history to get back what he typed.
>
> With the change applied, if you type
>
> M-: ( RET
>
> from emacs -q, you'll see,
>
> Eval: ( [End of file during parsing]
>
> which gives you a chance to fix the error right away.
>
> As another example, if you type an extra paren, as in
>
> M-: ( ) ) RET
>
> you'll see,
>
> Eval: ()) [Trailing garbage following expression]
>
> and point is left at the extra paren.
You are changing the behavior of read--expression, which has a few
callers in Emacs. Did you verify that those callers won't break due
to this change?
This should also have a NEWS entry, and perhaps the manual needs some
changes, please take a look.
Thanks.
This bug report was last modified 4 years and 345 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.