mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 13:32:52 +00:00
org-babel-read: Small fix
* lisp/ob-core.el (org-babel-read): Remove redundant `format' call for code block body. The body is already a string. Make the block name more human readable using %s `format' arg. Reported-by: Tom Gillespie <tgbugs@gmail.com> Link: https://orgmode.org/list/CA+G3_PPFHcx6eeKGuvxDcuy3NjSpTnrbye0gHJePtvi2a-5wrg@mail.gmail.com
This commit is contained in:
parent
987fe173ac
commit
7f2f73c414
|
@ -3187,8 +3187,8 @@ situations in which is it not appropriate."
|
|||
(if (and (memq (string-to-char cell) '(?\( ?`))
|
||||
(not (org-babel-confirm-evaluate
|
||||
;; See `org-babel-get-src-block-info'.
|
||||
(list "emacs-lisp" (format "%S" cell)
|
||||
'((:eval . yes)) nil (format "%S" cell)
|
||||
(list "emacs-lisp" cell
|
||||
'((:eval . yes)) nil (format "%s" cell)
|
||||
nil nil))))
|
||||
;; Not allowed.
|
||||
(user-error "Evaluation of elisp code %S aborted." cell)
|
||||
|
|
Loading…
Reference in a new issue