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:
Henrik Lissner 2019-10-23 13:21:47 -04:00
parent f3ca420c27
commit cf2cea75cf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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}()));"))