lang/org: remove org-babel-get-header polyfill
If packages haven't caught up by now, oh well! ob-spice hasn't, that's for sure.
This commit is contained in:
parent
f3ca420c27
commit
cf2cea75cf
1 changed files with 0 additions and 9 deletions
|
@ -102,15 +102,6 @@
|
|||
;; ipython, where the result could be an image)
|
||||
(add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images)
|
||||
|
||||
;; `org-babel-get-header' was removed from org in 9.0. Quite a few babel
|
||||
;; plugins use it (like ob-spice), so until those plugins update, this
|
||||
;; polyfill will do:
|
||||
(defun org-babel-get-header (params key &optional others)
|
||||
(cl-loop with fn = (if others #'not #'identity)
|
||||
for p in params
|
||||
if (funcall fn (eq (car p) key))
|
||||
collect p))
|
||||
|
||||
;; Fixes for various babel plugins
|
||||
(setq org-babel-js-function-wrapper "console.log(require('util').inspect(function(){\n%s\n}()));"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue