Open alanruttenberg opened 2 years ago
I fixed as follows:
diff --git a/poly-org.el b/poly-org.el index 82050cc..6542cbc 100644 --- a/poly-org.el +++ b/poly-org.el @@ -98,15 +98,18 @@ Used in :switch-buffer-functions slot." (setq-local org-src-fontify-natively nil) (setq-local polymode-move-these-minor-modes-from-old-buffer (append '(org-indent-mode) - polymode-move-these-minor-modes-from-old-buffer)) + (and (boundp 'polymode-move-these-minor-modes-from-old-buffer) + polymode-move-these-minor-modes-from-old-buffer))) (setq-local polymode-run-these-before-change-functions-in-other-buffers (append '(org-before-change-function org-element--cache-before-change org-table-remove-rectangle-highlight) - polymode-run-these-before-change-functions-in-other-buffers)) + (and (boundp 'polymode-run-these-before-change-functions-in-other-buffers) + polymode-run-these-before-change-functions-in-other-buffers))) (setq-local polymode-run-these-after-change-functions-in-other-buffers (append '(org-element--cache-after-change) - polymode-run-these-after-change-functions-in-other-buffers))) + (and (boundp 'polymode-run-these-after-change-functions-in-other-buffers) + polymode-run-these-after-change-functions-in-other-buffers)))) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.org\\'" . poly-org-mode))
I fixed as follows: