Byte compilation of my mode:
(defun dict-setup-expansions () "Add `dict-mode' specific expansions." (set (make-local-variable 'er/try-expand-list) (list #'dict-mark-article)))
Warning: assignment to free variable `er/try-expand-list'
This is normal situation because
er/try-expand-list is defined in external library
My mode register extension to
expand-region library but it is ok to run my mode without
I think that proper way to deal with warning is to add declaration:
defvar docs say:
The `defvar' form also declares the variable as "special", so that it is always dynamically bound even if `lexical-binding' is t.
-*- lexical-binding: t -*-. Does that mean that without
er/try-expand-list be in lexical scope and I have real bug?