-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit fe60d0f breaks org-babel #6678
Comments
@izahn if you put this in (defun return-t (&rest _args) t)
(advice-add 'spacemacs/useful-buffer-p :override #'return-t) Also, please check if there's anything relevant in the |
I have a similar issue with notmuch. When I open some buffers in notmuch and then close it with |
@vashirov I don't think it's a similar issue. In your case, it's probably that Spacemacs considers the earlier buffer as "useless" ( |
It's similar in a way that this commit broke notmuch, sorry for the confusion. |
@izahn I noticed that current implementation of (defun spacemacs/useful-buffer-p (buffer)
"Determines if a buffer is useful."
(let ((buf-name (buffer-name buffer)))
(or (with-current-buffer buffer
(derived-mode-p 'comint-mode))
(cl-loop for useful-regexp in spacemacs-useful-buffers-regexp
thereis (string-match-p useful-regexp buf-name))
(cl-loop for useless-regexp in spacemacs-useless-buffers-regexp
never (string-match-p useless-regexp buf-name)))))
(defun spacemacs/useless-buffer-p (buffer)
"Determines if a buffer is useless."
(not (spacemacs/useful-buffer-p buffer))) Does this fix the problem? If it doesn't, I'd like you to perform the earlier test I asked for and report back. |
@bmag Replacing |
Fix merged. |
Description![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
Commit fe60d0f breaks org-babel
Reproduction guide 馃
(require 'ob-R)
to enable R code blocks in orgmode.org
file and insertC-c C-c
to evaluate the blockObserved behaviour: 馃憖 馃挃
Emacs says "Code block produced no output" and no figure is created
Expected behaviour: 鉂わ笍 馃槃
R should start and generate the figure.
Details
I bisected this to
Before that it works as expected. After that commit, kaboom. I don't see what that commit has to do with orgmode or babel, but is clear that this is where things were broken. Hopefully @bmag or @TheBB have some idea about how to fix it.
System Info 馃捇
Backtrace 馃惥
The text was updated successfully, but these errors were encountered: