GNU bug report logs -
#54190
29.0.50; [PATCH] Incorrect/missing documentation for some Eshell "$" syntaxes
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 27 Feb 2022 21:35:02 UTC
Severity: minor
Tags: patch
Found in version 29.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen [2022-02-28 10:38:31] wrote:
> Jim Porter <jporterbugs <at> gmail.com> writes:
>> Ok, the breaking commit is b03f74e0f2a578b1580e8b1c368665850ee7f808
>> ("Don't quote lambdas in several places"). Reverting the change in
>> that commit in lisp/eshell/esh-var.el fixes things, although I'm not
>> sure why yet. I believe that code gets evaluated by `eshell-do-eval',
>> which evaluates things in a very particular way in order to support
>> deferring evaluation at various points. Once I'm sure I understand why
>> this is breaking, I'll post a patch to fix the bustage.
>
> It's this bit? Hm...
>
> diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
> index 96838d4132..7388279f15 100644
> --- a/lisp/eshell/esh-var.el
> +++ b/lisp/eshell/esh-var.el
> @@ -463,8 +463,8 @@ eshell-parse-variable-ref
> (eshell-as-subcommand ,(eshell-parse-command cmd))
> (ignore
> (nconc eshell-this-command-hook
> - (list (function (lambda ()
> - (delete-file ,temp))))))
> + (list (lambda ()
> + (delete-file ,temp)))))
> (quote ,temp)))
> (goto-char (1+ end)))))))
> ((eq (char-after) ?\()
>
>
> Trying to follow the logic of how this is eventually evaluated isn't,
> er, obvious, but I'm not sure how that change could break anything,
> either. Perhaps Stefan has a comment; added to the CCs.
Looks like a bug somewhere in the `eshell-do-eval` machinery, yes.
Until we find the problem (or rewrite `eshell-do-eval` on top of the CPS
converter of `generator.el`), I think reverting this change (and adding
a comment pointing to this bug) sounds like a great plan.
Stefan
This bug report was last modified 2 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.