From: hendeigr <hendeigr@protonmail.com>
To: tpeplt <tpeplt@gmail.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 18:21:21 +0000 [thread overview]
Message-ID: <tONnRwqnoem6EgkmmtGr-hpDYy829evWD8jZaEJ-hJZ_JSP38dIdXchtynvTO6TeAA3KxSKrjugq0ihPmgmvGUGHO6IN_Hh1RIjczA6aHgs=@protonmail.com> (raw)
In-Reply-To: <87h6hczlzj.fsf@gmail.com>
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
next prev parent reply other threads:[~2024-03-11 18:21 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
2024-03-11 18:21 ` hendeigr [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='tONnRwqnoem6EgkmmtGr-hpDYy829evWD8jZaEJ-hJZ_JSP38dIdXchtynvTO6TeAA3KxSKrjugq0ihPmgmvGUGHO6IN_Hh1RIjczA6aHgs=@protonmail.com' \
--to=hendeigr@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tpeplt@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.