[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error with add-function and process-filter
From: |
tpeplt |
Subject: |
Re: Error with add-function and process-filter |
Date: |
Mon, 11 Mar 2024 14:01:20 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> (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.
--