From: tpeplt <tpeplt@gmail.com>
To: hendeigr <hendeigr@protonmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, <help-gnu-emacs@gnu.org>
Subject: Re: Error with add-function and process-filter
Date: Mon, 11 Mar 2024 14:01:20 -0400 [thread overview]
Message-ID: <87h6hczlzj.fsf@gmail.com> (raw)
In-Reply-To: <jwv4jdcsy97.fsf-monnier+emacs@gnu.org> (Stefan Monnier via Users list for the's message of "Mon, 11 Mar 2024 09:21:35 -0400")
>> (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.
--
next prev parent reply other threads:[~2024-03-11 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 10:20 Error with add-function and process-filter hendeigr via Users list for the GNU Emacs text editor
2024-03-11 13:21 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-03-11 18:01 ` tpeplt [this message]
2024-03-11 18:21 ` hendeigr
2024-03-11 18:06 ` tpeplt
2024-03-11 20:29 ` hendeigr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6hczlzj.fsf@gmail.com \
--to=tpeplt@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=hendeigr@protonmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).