-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Test failure for julia--test-end-of-defun-nested-2 #199
Comments
This problem seems to be the cause of the problem for this behavior in Guix
Here's the relevant part of the file
|
@simonlegrand I confim the bug appears with Emacs 29.1 and not with 28.2. What happens? Consider the Julia code used by the test: function f(x)
function fact(n)
if n == 0
return 1
else
return n * fact(n-1)
end
end
return fact(x)
end Now, I use the symbol function f(x)
function fact(n)
if n == 0[X]
return 1
else
return n * fact(n-1)
end
end
return fact(x)
end The test function f(x)
function fact(n)
if n == 0
return 1
else
return n * fact(n-1)
end
end
[x] return fact(x)
end which is incorrect. It should be at the end. Therefore, I guess the bug comes from this new snippet in 29.1, ;; At this point, point either didn't move (because we started
;; in between two defun's), or is at the end of a defun
;; (because we started in the middle of a defun).
(unless (zerop arg)
(when (setq success (beginning-of-defun-raw (- arg)))
(funcall end-of-defun-function)))) that replaced this old snippet in 28.x: (unless (zerop arg)
(beginning-of-defun-raw (- arg))
(setq beg (point))
(funcall end-of-defun-function)))) |
Hum, I do not know... I observe the same behavior with an equivalent Python code using |
Thanks for the explanations!
Doesn't it make sens since python-mode is also using |
Reported to upstream Emacs: #66763. |
Bugs in wrappers do not break our code tests then. Cf JuliaEditorSupport#199.
While waiting for Emacs to address this, I refactored our tests in #209 so they no longer error. Closing this, but if anyone wants it reopened please comment. |
I just tried to run the tests for 7a8c868, with Emacs-29.1, and I got the following error:
I tried with Emacs-28.2 and it works fine.
Cheers,
Simon
The text was updated successfully, but these errors were encountered: