-
Notifications
You must be signed in to change notification settings - Fork 23
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
"purpose-change-buffer: Wrong number of arguments: (3 . 4), 5" on Emacs 27 #137
Comments
Thanks! Yeah, I did something similar (deleting the |
@Miciah yeah I am in a similar boat 🥶 |
@Miciah looks like you are using spacemacs (a guess given you forked it). Mind showing me how you patched it? I cannot seem to get spacemacs to not load the MELPA version. |
I am indeed using Spacemacs. I had been directly editing (if (version<=
"20180926.1047"
(configuration-layer//get-package-version-string 'window-purpose))
(spacemacs|use-package-add-hook window-purpose
:post-config
(defun purpose-change-buffer (buffer window type &optional alist _dedicated)
"Display BUFFER in WINDOW, but don't select it.
BUFFER, WINDOW, TYPE and ALIST have the same meaning as
`window--display-buffer'.'"
(window--display-buffer buffer window type alist)))
(message "window-purpose updated; check whether patch still needed")) |
@Miciah this worked better for me than my snippet. Well done :) |
Can any of the Emacs 27 users post the value of the variable Also, can you confirm that evaluating the following fixes the issue? (with-eval-after-load 'window-purpose
(defun purpose-change-buffer (buffer window type &optional alist dedicated)
"Display BUFFER in WINDOW, but don't select it.
BUFFER, WINDOW, TYPE, ALIST and DEDICATED have the same meaning
as in `window--display-buffer'.
DEDICATED is ignored for Emacs versions in which
`window--display-buffer' doesn't support a DEDICATED
argument (i.e. version 27)."
(if (version< emacs-version "27")
(window--display-buffer buffer window type alist dedicated)
;; optional argument `dedicated' was removed in emacs 27 development branch
;; (as of 2019-01-14). This is a temporary fix to be re-evaluated once emacs
;; 27 development reaches the pretest phase. (docstring to be re-evaluated
;; as well)
(window--display-buffer buffer window type alist)))) |
|
The patched function makes Emacs usable, but it is not a complete solution. One problem with the patched |
That's probably an unrelated issue, I don't see how |
Right, I was describing the behavior I saw with my patched |
Apologies again, I missed the second part of your first comment. The code you posted does resolve the problem for me (using |
Ok, the issue should be fixed by da08c9d, and the updated version should be available from Melpa soon. Thank you all for the reports. |
purpose-change-buffer
useswindow--display-buffer
fromwindow.el
, which is an internal function fromwindow.el
. GNU Emacs commit f646675c changes the signature ofwindow--display-buffer
:After updating and rebuilding GNU Emacs, I now get the following error for various operations that change the window configuration:
To reproduce, build Emacs from master and run it as follows:
Then press C-x b RET. I get the following backtrace:
The text was updated successfully, but these errors were encountered: