Codebase list emacs-deferred / 2462482
Add patch to fix wrong-number-of-arguments error (Closes: #1020029) Lev Lamberov 1 year, 6 months ago
2 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Lev Lamberov <dogsleg@debian.org>
1 Subject: Fix wrong-number-of-arguments error
2
3 This patch fixes wrong-number-of-arguments error for GNU Emacs 28.
4
5 --- a/deferred.el
6 +++ b/deferred.el
7 @@ -754,7 +754,7 @@ object. The process name and buffer name
8 `start-process-shell-command' are generated by this function automatically.
9 The next deferred object receives stdout and stderr string from
10 the command process."
11 - (deferred:process-gen 'start-process-shell-command command args))
12 + (deferred:process-gen 'start-process-shell-command (string-join (cons command args) " ") nil))
13
14 (defun deferred:process-buffer (command &rest args)
15 "A deferred wrapper of `start-process'. Return a deferred
16 @@ -770,7 +770,7 @@ object. The process name and buffer name
17 `start-process-shell-command' are generated by this function automatically.
18 The next deferred object receives stdout and stderr buffer from
19 the command process."
20 - (deferred:process-buffer-gen 'start-process-shell-command command args))
21 + (deferred:process-buffer-gen 'start-process-shell-command (string-join (cons command args) " ") nil))
22
23 (defun deferred:process-gen (f command args)
24 "[internal]"
00 0001-fix-documentation.diff
11 0002-fix-version.diff
22 0003-comment-out-undercover.diff
3 0004-fix-wrong-number-of-arguments.diff