From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: switch buffer variable context after (push-button)? Date: Tue, 31 Dec 2024 13:56:08 -0900 Message-ID: <87ed1nv4vr.fsf@librehacker.com> 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="3648"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Mailing List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 31 23:56:55 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 1tSlAU-0000lb-Q2 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 31 Dec 2024 23:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSlA8-0006Bh-T8; Tue, 31 Dec 2024 17:56:33 -0500 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 1tSl9z-000675-QR for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 17:56:25 -0500 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSl9y-00042K-0b for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 17:56:23 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id BEAC22092015 for ; Tue, 31 Dec 2024 23:56:14 +0100 (CET) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1735685772; x=1737500173; bh=NcpNGtBTu0sqnOMhLFugF3ACtp/0s+C913N88UtZA6k=; b=RN56tHvHAj89 pSAOiqk6WJP4c+DbkWRlZTFaffOYewphnbbMqQlPfbwuR9sHx2+pM+BQFLZ6TTzi ctqolFmUFnt2odafPWSEchH5BrvHpv9tdigFV9Fm/FZkAfBRVwb+Vsl+dAsWobMw QGT4wHVTtk6K2eC5zMBsSO/1VbBbuYcaxy7Ja9NrWBnW/8QT2M9KD61x9sAWYPgW 653qjFyCYSj6TWIfoe0SiBIkg7iL3PopKv5/oy5WQo1SCTGieU8Fi9kJIPSWfkh7 k80tQj+aAkbDQQtJ81J9mlPRKYgyIq28OxF8nqivTn1sVL9pwKfpAtXy5qqTr/QI zgMsLyCuXQ== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id 4GMwpkXhzjND for ; Tue, 31 Dec 2024 23:56:12 +0100 (CET) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id C95A0209228B for ; Tue, 31 Dec 2024 23:56:11 +0100 (CET) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 763402050990 for ; Tue, 31 Dec 2024 23:56:11 +0100 (CET) Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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:149082 Archived-At: Hi, I'm trying to automate some various procedures I do =E2=80=94 private t= asks, not of general interest. One was to navigate to a button in a buffer,= and then run (push-button) which opens a link to a Web page in EWW. (The b= utton target may vary.) After that, I wanted to run (eww-readable), but it = gives me an error. After some debugging, I figured out the eww-readable was= trying to use the value of the eww-data variable from the previous buffer = =E2=80=94 which is nil =E2=80=94 rather than the value of it in the EWW buf= fer. Is there a function that I have to call first, so that my elisp function se= es the variable values from the second buffer instead of the original one? --=20 =F0=9F=93=9B Christopher Howard =F0=9F=9A=80 gemini://gem.librehacker.com =F0=9F=8C=90 http://gem.librehacker.com =D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94= =D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA= =D7=94=D7=90=D7=A8=D7=A5