From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Error with add-function and process-filter Date: Mon, 11 Mar 2024 14:01:20 -0400 Message-ID: <87h6hczlzj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2814"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , To: hendeigr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 11 19:03:45 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rjk00-0000cK-Pn for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 11 Mar 2024 19:03:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjjxn-0005Jd-P8; Mon, 11 Mar 2024 14:01:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjjxl-0005JI-D2 for help-gnu-emacs@gnu.org; Mon, 11 Mar 2024 14:01:25 -0400 Original-Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rjjxj-0002sB-Tx for help-gnu-emacs@gnu.org; Mon, 11 Mar 2024 14:01:25 -0400 Original-Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6e4d88b93e8so1564332a34.0 for ; Mon, 11 Mar 2024 11:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710180082; x=1710784882; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/8CxlNcJUH5cyjdEolavG6v+m6T5ZMZVcT3yA/aGVvs=; b=Cjx/NUUsOJUZM2cXU8R/Bp7J0dY5iZxV4cMTwqdVGlp37Lq377jV5yMUvnddGmn3H+ 9x0xD3TEW9qpEbVnWQ+WOW2KSScn+RRqC+M8NC8EbxM5i30WAs1k2CzPK6o8zMlk2mGR N9ZGt//Q3qoPal9wPYv3Lf0kTL/N+e/F7o5sV/tHlUFl+bkk+l6pDdDy/tdI0JO6YpKz al/j2JpqdQ4zAeT5RQLPbeoDgqhF257ED9kCaoYrGZPqlYM+JQuMlRWxkwBjk/zCoFkW y559jl99a2sIGPj7q/KUk4e9mDah5Y4pb4XleyJaxsI7XIv6zDvPFnQZgOMxea8QsYg1 g4uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710180082; x=1710784882; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/8CxlNcJUH5cyjdEolavG6v+m6T5ZMZVcT3yA/aGVvs=; b=NgShC4VvZfI6XZFuC2i0vV2rOrONLvgL+HcjVmLbucvocLHhN2YWsfnG/CW0fXFXYK nKpwAS0hWp7iaHxxXeNAvoRqMHc/qSIh0L4fiCj1iQcbeUrPEZkhb5o6EjdbFnqrPutf A32qESTswZiILV9sgiFA2CN6dwq8ok5t8ClVcgTwtkm/2Ls5wUMAHmAJGhCMZCXG2MqF fQIYOftKRaLRDf7IspaOPNxbJ0fGDzuSk1z2kbgv2a6g5e3QN1xC2bmijLjJW4WtbGmd YsKOB2ltqBTesnmw2zCg97FqhukFAc3nP2xdkOqZ9qhKl6VQtz9gCIzHVrrXhcXHLY68 s1Og== X-Forwarded-Encrypted: i=1; AJvYcCXK+XX38/gigAjhdh5W1qd4rKHgmAp3ON68CNx1bTZ6uPkbBW0Fe7f2AdiJAL1h4jXhUAS1+v3Obby+rPjFrizmzww+XyIq X-Gm-Message-State: AOJu0Yzt9iLQrzO+feMCSW0/mL1Qq7o3s7Sdu70wz14TLYs0htOrhifV Y/eWbA0LzpPSsCUYE+mSbpwjLrI/phYG5m0or2aunZRLVgEPNp8I X-Google-Smtp-Source: AGHT+IERwACKW8LWzwXvyRNmkGJlphyh++hjoMPyJCYv7AmluWJcvTx43rdpPxX6TeTs3jkCdnJcYw== X-Received: by 2002:a9d:6d81:0:b0:6e4:efc8:656b with SMTP id x1-20020a9d6d81000000b006e4efc8656bmr6463603otp.38.1710180082196; Mon, 11 Mar 2024 11:01:22 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::cfce]) by smtp.gmail.com with ESMTPSA id h27-20020a05620a13fb00b00787930320b6sm2895261qkl.70.2024.03.11.11.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 11:01:21 -0700 (PDT) In-Reply-To: (Stefan Monnier via Users list for the's message of "Mon, 11 Mar 2024 09:21:35 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=tpeplt@gmail.com; helo=mail-ot1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146075 Archived-At: >> (add-function :before (process-filter h-proc) #'h/trace) > [...] >> However, am getting this error: >> Symbol=E2=80=99s 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. --