4 ms·
> errors ... bracket imbalance in comments Not sure where this is coming from. Elisp doesn't error on anything in comments.
by minerjoe 6y ago
> errors ... bracket imbalance in comments
Not sure where this is coming from. Elisp doesn't error on anything in comments.
- alpaca128 6y agoI think it was due to org-mode, which has its share of bugs and glitches. Either way Emacs refused to evaluate a function because I had a commented out line with a closing parentheses in it, and would only accept it after I deleted that line.
- Jtsummers 6y agoIf you can reproduce it it would be worth submitting a bug report. Comments like: (defun foo () ;; old code) new code) Should just get discarded when parsing/running the lisp code. There was a lot of code like that in my old .emacs file back when I was learning how I wanted it to behave but didn't want to delete old configurations (before I got into the git everything habit, especially).
- alpaca128 6y agoI just checked, it doesn't happen in an actual elisp buffer, but every time in a standard .org file. It'll always throw a 'Lisp error: (scan-error "Unbalanced parentheses")'. You might rightly say that evaluating lisp code directly in an org-mode code block might not be the best idea, I just don't expect it to mostly work but mess up the syntax depending on comments.