clojure-indent-function: (wrong-type-argument number-or-marker-p nil) #584
Comments
I don't know if this could be helpful, but following the above steps when I evaluate |
On further debugging I noticed that in (when (numberp method)
(setq method (list method))) And then on line 1376: (`1 (let ((head (elt method 0)))
(when (or (= pos 0) (sequencep head))
head))) But it looks like that |
I have the same error with emacs compiled from the latest master, but not with 27.1. Furthermore, it's something that changed recently, as I recompile emacs every couple of weeks, and noticed this regression only yesterday. I don't have the time to bisect the master right now, sorry for not providing additional info. |
I hard reset to commit |
@omar-polo I saw many changes on |
This commit seems only about comments and a style change, so maybe the culprit is some commit after? Since |
Yes I explicitly reverted to the first commit I found without changes to [1] https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg00172.html |
As per the exchange on emacs-devel, (pcase method
((or (pred integerp) `(,method))
(let ((pos -1))
[...] to: (pcase method
((or (pred integerp) `(m))
(let ((method (if (integerp method) method m))
(pos -1))
[...] Not sure how to make the change backward compatible, though, but since this is related to changes on Emacs master, I guess we can close this. |
Expected behavior
With the whole buffer marked, I expect
indent-region
to indent it all with no errors.Actual behavior
Steps to reproduce the problem
clojure-mode
(I usedstraight.el
)Environment & Version information
clojure-mode version
Emacs version
GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0)
of 2021-03-03
Operating system
Ubuntu 20.04 LTS
The text was updated successfully, but these errors were encountered: