Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*ERROR*: Wrong number of arguments: (1 . 4), 5 #82

Closed
tsdh opened this issue Sep 30, 2020 · 3 comments
Closed

*ERROR*: Wrong number of arguments: (1 . 4), 5 #82

tsdh opened this issue Sep 30, 2020 · 3 comments

Comments

@tsdh
Copy link

tsdh commented Sep 30, 2020

This bug report is the counterpart of the emacs report https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43716 which I reported before I knew that the error is in with-buffer.el.

I've debugged the issue (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43716#41). The short version is that the signature of server-switch-buffer changed recently on the emacs master branch so that the with-editor advice server-switch-buffer--with-editor-server-window-alist has too few arguments which gives "ERROR: Wrong number of arguments: (1 . 4), 5" when doing emacsclient some-file.txt.

@tsdh
Copy link
Author

tsdh commented Oct 1, 2020

Thanks Jonas, that was quick! 👍

@gvol
Copy link

gvol commented Oct 1, 2020

Thanks to both of you for this! I was trying to debug it myself and eventually gave up and tried updating packages on MELPA and it was magicly (magitly?) fixed!

c0001 added a commit to c0001/entropy-emacs-extensions that referenced this issue Oct 27, 2020
Bug: [*ERROR*: Wrong number of arguments: (1 . 4), 5 ] which corrupts
     magit-commit in emacs-28.

github issue: magit/with-editor#82
@andrelkin
Copy link

It was somewhat really difficult to me to find this one.
So it was cased for me by trying out magit - which is cool :-), but i did not realize
at once that with-editor is a stand-alone package.

Here it would be good to state that explicitly: please upgrade with-editor.

Thank you for fixing it!

ubolonton added a commit to ubolonton/.emacs.d that referenced this issue Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants