Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8613404

Browse files
Don't use cache for getting src-block info
It causes an error
1 parent 02955d2 commit 8613404

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎ob-sagemath.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,16 @@ buffer."
146146
(4 (ob-sagemath-execute-buffer-async))))
147147

148148
(defun ob-sagemath-execute-async-1 ()
149-
(let* ((info (org-babel-get-src-block-info))
149+
(let* ((org-element--cache nil) ; Avoid using cache.
150+
(info (org-babel-get-src-block-info))
150151
(language (car info))
151152
(body (nth 1 info))
152153
(params (nth 2 info)))
153154
(cond ((and language body
155+
;; To avoid byte-compiler warning
156+
;; with-no-warnings doesn't work in Emacs 25.1
157+
(null org-element--cache)
158+
154159
(ob-sagemath--cache-current-p info params))
155160
;; If result is cached, call sync version.
156161
(org-babel-execute-src-block nil info params))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /