|
From: | Stefan Monnier |
Subject: | Re: Use of lexical binding plus various other things |
Date: | Tue, 23 Mar 2021 10:16:42 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> (defadvice TeX-region-create (around preview-counters) > "Write out counter information to region." > (let ((TeX-region-extra > (concat > (and (boundp 'begin) > ^^^^^^^^^^^^^ > preview-buffer-has-counters > (mapconcat > #'identity > (cons > "" > (preview-counter-find (symbol-value 'begin))) > ^^^^^^^^^^^^^^^^^^^ > "\\setcounter")) > TeX-region-extra))) > ad-do-it)) Duh! Thanks for the heads up! Indeed, `defadvice` hides the code from the byte-compiler which is why I didn't get a warning for the (boundp 'begin). And I clearly forgot my usual scan of `(set `. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |