unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* eshell/addpath broken since commit dea24a0f7d
@ 2022-01-25 18:49 Iñigo Serna
  2022-01-25 19:19 ` Jim Porter
  0 siblings, 1 reply; 3+ messages in thread
From: Iñigo Serna @ 2022-01-25 18:49 UTC (permalink / raw)
  To: emacs-devel

Hi

It looks `eshell/addpath' is broken in master since commit 
dea24a0f7d [1].

$ src/emacs --debug-init -Q --eval "(progn (require 'eshell) 
(eshell/addpath \"~/bin\"))"

Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 
3)
  eshell--do-opts("addpath" ((98 "begin" nil prepend "add path 
  element at beginning") (104 "help" nil nil "display this usage 
  message") :usage "[-b] PATH\nAdds the given PATH to $PATH.") 
  ("~/bin"))
  eshell/addpath("~/bin")


Thanks,
-- 
Iñigo Serna


[1]
commit dea24a0f7d4ae42fae912dd724a770678054989a
Author: Jim Porter <jporterbugs@gmail.com>
Date:   Mon Jan 24 21:03:42 2022 -0800

    Don't manipulate args in-place for 'eshell-eval-using-options'
    
    This is necessary for preserve the original arguments to 
    forward on to
    :external commands.  Previously, when :preserve-args was also 
    set, the
    original argument list could be altered, changing the meaning 
    of the
    command.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eshell/addpath broken since commit dea24a0f7d
  2022-01-25 18:49 eshell/addpath broken since commit dea24a0f7d Iñigo Serna
@ 2022-01-25 19:19 ` Jim Porter
  2022-01-25 19:50   ` Iñigo Serna
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Porter @ 2022-01-25 19:19 UTC (permalink / raw)
  To: Iñigo Serna, emacs-devel

On 1/25/2022 10:49 AM, Iñigo Serna wrote:
> It looks `eshell/addpath' is broken in master since commit dea24a0f7d [1].
> 
> $ src/emacs --debug-init -Q --eval "(progn (require 'eshell) 
> (eshell/addpath \"~/bin\"))"
> 
> Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 3)
>   eshell--do-opts("addpath" ((98 "begin" nil prepend "add path  element 
> at beginning") (104 "help" nil nil "display this usage  message") :usage 
> "[-b] PATH\nAdds the given PATH to $PATH.")  ("~/bin"))
>   eshell/addpath("~/bin")

Have you tried `make bootstrap' (or `touch lisp/eshell/*.el' if you 
don't want to rebuild everything)? Commit dea24a0f7d changes the 
`eshell-eval-using-options' macro in a way that requires recompiling 
files that use it.

- Jim



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: eshell/addpath broken since commit dea24a0f7d
  2022-01-25 19:19 ` Jim Porter
@ 2022-01-25 19:50   ` Iñigo Serna
  0 siblings, 0 replies; 3+ messages in thread
From: Iñigo Serna @ 2022-01-25 19:50 UTC (permalink / raw)
  To: Jim Porter; +Cc: emacs-devel

Hi Jim,

> Have you tried `make bootstrap' (or `touch lisp/eshell/*.el' if 
> you
> don't want to rebuild everything)? Commit dea24a0f7d changes the
> `eshell-eval-using-options' macro in a way that requires 
> recompiling
> files that use it.

Ouch. You're right, I missed this part.
Sorry everyone for the noise.

Thanks,
-- 
Iñigo Serna

On 25 January 2022 at 20:19 +01, Jim Porter 
<jporterbugs@gmail.com> wrote:

> On 1/25/2022 10:49 AM, Iñigo Serna wrote:
>> It looks `eshell/addpath' is broken in master since commit 
>> dea24a0f7d [1].
>> $ src/emacs --debug-init -Q --eval "(progn (require 'eshell)
>> (eshell/addpath \"~/bin\"))"
>> Debugger entered--Lisp error: (wrong-number-of-arguments (4 
>> . 4) 3)
>>   eshell--do-opts("addpath" ((98 "begin" nil prepend "add path
>>  element at beginning") (104 "help" nil nil "display this usage
>>  message") :usage "[-b] PATH\nAdds the given PATH to $PATH.")
>>  ("~/bin"))
>>   eshell/addpath("~/bin")
>
> Have you tried `make bootstrap' (or `touch lisp/eshell/*.el' if 
> you
> don't want to rebuild everything)? Commit dea24a0f7d changes the
> `eshell-eval-using-options' macro in a way that requires 
> recompiling
> files that use it.
>
> - Jim



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-25 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 18:49 eshell/addpath broken since commit dea24a0f7d Iñigo Serna
2022-01-25 19:19 ` Jim Porter
2022-01-25 19:50   ` Iñigo Serna

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).