From cf2cea75cf103d272b299e5728d7ad14fda1cc1b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 23 Oct 2019 13:21:47 -0400 Subject: [PATCH] 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. --- modules/lang/org/config.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 0c52b6c95..afe00ac9c 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -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}()));"))