From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Buttons in help buffer that displays contents of variables Date: Sun, 23 Jul 2023 00:28:33 +0200 Message-ID: <874jlvvawe.fsf@gmx.net> References: <87h6pvvh4i.fsf@gmx.net> <87cz0jvfjo.fsf@gmx.net> <-Of1ukZDnMEs_SVnir4H5K16gZyeSQzumX2oqufViGBYgx6lWFHLhnFHoUC6_0NHmrd9FQ7I5-HyOlZWKDx1Go2wVfQ9Yb0WZrTPY2ihcbo=@protonmail.com> <878rb7vctx.fsf@gmx.net> 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="27116"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 00:29:17 2023 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 1qNL6D-0006wB-6l for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 00:29:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNL5d-0008Em-N5; Sat, 22 Jul 2023 18:28:41 -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 1qNL5c-0008Ed-0Y for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 18:28:40 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNL5a-0008JK-67 for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 18:28:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1690064914; x=1690669714; i=stephen.berman@gmx.net; bh=E3J617EMz2yol37/c0yVo8HruaS6rLy+Lw5m7Of+hCM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=coST5ukV8oZf2AeSS0rO8INq/glCyzjXFfLrQJ6mEarR8+9+E0pTH/FP8Cr3jbnorixnmjV PiuV5heuSm3DxnHM3sBnjc8klZlG8BxqmBbUG/Coc2kGPziyfEb9pMmMlJaqOdHRgk0qeSSMh byQNSVdrkz8uH8FoapKCss/4eehc7kPaLwycJpotUzowbuh1C6c+yh6AZY6W9KVAjm9vgztqg +EoK4JI144OOJLpsOntyP/lnfBYk7l28cqSDJUFicDgTinpOSGDtmSm4yQ2grvRshItq8deg8 ebbFuv/wuivPByZJupxwTxARryfRmCjQtpSzk+GaiAkJgqVOscXw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([94.134.196.80]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5mGB-1prFPt0jLn-017Fgx; Sun, 23 Jul 2023 00:28:34 +0200 In-Reply-To: (Heime's message of "Sat, 22 Jul 2023 22:13:25 +0000") X-Provags-ID: V03:K1:Ia2qpvCufvsK836dNImvYa2jrGluIIIyvR7jUHpxSh8CNmlIeys 7v1dSS0ZRwDD63Jkky/Znk+DyVULhUvirSXxq0hOde+cZb+suJen/KZnWQhDAvHpOCmegY5 frY6e//jW3X6pEZTnQ8xa+aQoDBwMNQZzO0q8W/BELnxmR7UJTAq6GaGDrJHqn6Y9Gf2JDr +0R4q+JpSj4y2lSovz/3w== UI-OutboundReport: notjunk:1;M01:P0:dXO3unnhXWw=;pd2Iil0FtAHMvtPhPn1xKrI5WPa 2FEYdZ0qin0eleM31IJL+HZzw8D22v5x2kmHMQkmfDt0n4A+scMr6QM9M2LWjhaHe2KS+a4yn fTweL8A+Iozyc6hNFBg3SFvyBPDmu5naKuVD3agaIstIsord7yK0KusYEyWFEqJcuPb/6SuXY ZTlquOPCeVZmLnkl5Dq81c3qkh84tJDTg57GUiB01Tc8uDAMgkzAX+EMwwijwGkf6XPzsZshx dWsoKNcnkYsLIXE3ZMtt7YUnM3lZk7sd4XqVzdrDD7hOw7rB2Es84VRTEQVI59aCrdubd3oPR ZJ1w8qRsghyQm9orwp9DtnarHFuDvsVW7lzApUm89WLU9FmgTn3EqoeFiVJUxGfqxWjZWQEDV 7l8YIB/iuBcMGOG2I0VLdDxR1BwKhI9ybI/UK5O5X7tqkBUg05TkNnRFBEPiMsRBbPCbBTAJC ieI6tQDXRnZWW/4KNjGY1LMFQTWcAbUz5vU70QJeWtREWm0OFt7klVgxoj+4hWGlwQXFllZT9 +y+ck3yD2DsiCo5QZ2wZG5Y/zOUR5/q3KrxbKFTyeTEwOfu2xfPLoLkJ0JvjWn1Oe8XkA3Y+f /5ILk1paU0mnrlgPpthtdFJzaWiEMQBeVYQE6ojczzgK1upfRqm9ce6jG0oCTavqoc1100TrO KQM4B2yimpx0ZZ8jyI0nJAyo3T/GlfH5q3lLiDF4MWLpkqx5r2DuExa6EyRMBnCO4QjATETTW uTQ0a1eZFLaH2Y0dKudvKpX98ACxtmHvryRR12dejFtY9PW7esN1wAEyBVfeCwBmXm5iW1mR Received-SPF: pass client-ip=212.227.17.21; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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:144398 Archived-At: On Sat, 22 Jul 2023 22:13:25 +0000 Heime wrote: [...] >> > > > > > The error says the function my-action expects one argument, bu= t you >> > > > > > defined it with an empty argument list. If you don't want to u= se the >> > > > > > argument, you can use `' as a placeholder for the required arg= ument, >> > > > > > which will be ignored by the byte compiler: >> > > > > >=20 >> > > > > > (defun my-action () >> > > > > > "Function to be executed when the button is clicked." >> > > > > > (interactive) >> > > > > > (message "%s" myvar)) >> > > > > >=20 >> > > > > > Steve Berman >> > > > >=20 > > Do you know what the single argument is used for ? This is explained in the Info node `(elisp) Manipulating Buttons': Where a BUTTON parameter is specified, it means an object referring to a specific button, either an overlay (for overlay buttons), or a buffer-position or marker (for text property buttons). Such an object is passed as the first argument to a button=E2=80=99s invocation function= when it is invoked. See also the function `button-activate' described in that node. Steve Berman