mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-29 07:58:21 +00:00
ob-calc: ensure that calc stack refers to the correct stack
* lisp/ob-calc.el (org-babel-execute:calc): ensure that calc stack refers to the correct stack
This commit is contained in:
parent
52c87c93b2
commit
9c833c456e
@ -29,6 +29,7 @@
|
||||
;;; Code:
|
||||
(require 'ob)
|
||||
(require 'calc)
|
||||
(require 'calc-trail)
|
||||
(eval-when-compile (require 'ob-comint))
|
||||
|
||||
(defvar org-babel-default-header-args:calc nil
|
||||
@ -48,7 +49,9 @@
|
||||
(if (numberp res) res (math-read-number res)))
|
||||
(calc-eval line)))))))
|
||||
(split-string (org-babel-expand-body:calc body params) "[\n\r]"))
|
||||
(calc-eval (calc-top 1)))
|
||||
(save-excursion
|
||||
(set-buffer (get-buffer "*Calculator*"))
|
||||
(calc-eval (calc-top 1))))
|
||||
|
||||
(provide 'ob-calc)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user