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

Error: (void-variable *autoit-smie-backward-bob*) in show-paren-function call #1

Closed
silencej opened this issue Aug 21, 2016 · 2 comments

Comments

@silencej
Copy link

Dear pcrama,

PLS find the backtrace here: backtrace.txt

Thanks.

@silencej
Copy link
Author

silencej commented Aug 21, 2016

Hi,

The following change solves this:

diff --git a/emacsEls/autoit-smie.el b/emacsEls/autoit-smie.el
index fbde82e..b9f633a 100644
--- a/emacsEls/autoit-smie.el
+++ b/emacsEls/autoit-smie.el
@@ -337,7 +337,7 @@
               ;; care of by the grammar.
               (t (setq result (autoit-backward-identifier)))))
       (setq autoit-last-token-start (point)))
-    (when (or (< (point) old) (not *autoit-smie-backward-bob*))
+    (when (or (< (point) old) (or (not (boundp '*autoit-smie-backward-bob*)) (not *autoit-smie-backward-bob*)))
       (setq *autoit-smie-backward-bob* (= (point) old)
             *autoit-smie-forward-eob* nil)
       result)))

@pcrama
Copy link
Owner

pcrama commented Aug 25, 2016

Thank you for the report and the fix. I'm currently working on another branch that isn't done yet to indent properly so I can't apply it: the file will completely change.

@pcrama pcrama closed this as completed Aug 25, 2016
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

2 participants