[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error with add-function and process-filter
From: |
hendeigr |
Subject: |
Re: Error with add-function and process-filter |
Date: |
Mon, 11 Mar 2024 18:21:21 +0000 |
Sent with Proton Mail secure email.
On Monday, 11 March 2024 at 18:01, tpeplt <tpeplt@gmail.com> wrote:
> > > (add-function :before (process-filter h-proc) #'h/trace)
> > > [...]
> > > However, am getting this error:
> > > Symbol’s value as variable is void: v
> >
> > My crystal ball tells me you forgot to activate `lexical-binding`
> > because you didn't see the message that must have been emitted at some
> > point:
> >
> > Warning: Use of gv-ref probably requires lexical-binding
> >
> > If you're using a new enough Emacs you can click on the orange "/d" in
> > your mode line to fix the problem.
>
>
> If you are not using a new enough version of Emacs, then add the
> following line to the beginning (the very first line) of your Emacs Lisp
> file:
>
> ;; -- lexical-binding: t; --
>
> That is what clicking on the "/d" will do for you.
>
> --
That's got it! Thank you both for your prompt responses. Now its time for me to
learn more about dynamic binding vs lexical binding!
Thanks again,
James