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

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).