Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unbound variables when invoking poly-org-mode #39

Open
alanruttenberg opened this issue Apr 12, 2022 · 0 comments
Open

unbound variables when invoking poly-org-mode #39

alanruttenberg opened this issue Apr 12, 2022 · 0 comments

Comments

@alanruttenberg
Copy link

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant