From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Buttons in help buffer that displays contents of variables Date: Sat, 22 Jul 2023 22:42:55 +0000 Message-ID: <2o0OzY_iBd8TOmOEzF9du3kSZGrEKIJbl7QdqK3lyQ7xonVsF2v5W3Dxt4hQ8T1cQfShQxikqyAhCD4Kc0BGJNGaPya9ClnAWarEa9ZJ9HQ=@protonmail.com> References: <87h6pvvh4i.fsf@gmx.net> <87cz0jvfjo.fsf@gmx.net> <-Of1ukZDnMEs_SVnir4H5K16gZyeSQzumX2oqufViGBYgx6lWFHLhnFHoUC6_0NHmrd9FQ7I5-HyOlZWKDx1Go2wVfQ9Yb0WZrTPY2ihcbo=@protonmail.com> <878rb7vctx.fsf@gmx.net> <874jlvvawe.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="11400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 00:43:42 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 1qNLKA-0002ox-Cp for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 00:43:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNLJi-0001RS-S9; Sat, 22 Jul 2023 18:43:14 -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 1qNLJg-0001R7-Bq for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 18:43:12 -0400 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNLJe-0004TT-D8 for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 18:43:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1690065787; x=1690324987; bh=TYIERZkQ1zPcUHh83t5CE4kUcXoWLNzXoub0yVIg/qM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=c8YK+mV7pLvrt6+xJF/2CB//JPl041V/D7S0vaMKPFLzwovDKmXd85sWXiSYHR743 LnjoVmDQ94ChcYCLGNJJeNI313KdKBTo26Rt3hh+xh6l/mhKHsFTG1tMa7kd/LemPI eQxFESpizB6ftYC7VObG1JC6TG9/65HOA3oSJadAM/SSXOuRrnREH1PK6vmDqiW3ob sx9aSE8kiV2kyyHqLocx2V7KWXk2tpy0KD2zEAmbuEsIz54NIN4euJK0mD0gtWUA+o ZeYRrA0z8OE8gAyLn62sK23Yk8WxW+PaC23QumHp0rK8O1IfQUJknzpAQe3LjzR4zY 7k3PmJfNnrIKg== In-Reply-To: <874jlvvawe.fsf@gmx.net> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.137; envelope-from=heimeborgia@protonmail.com; helo=mail-40137.protonmail.ch 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_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:144399 Archived-At: ------- Original Message ------- On Sunday, July 23rd, 2023 at 10:28 AM, Stephen Berman wrote: > On Sat, 22 Jul 2023 22:13:25 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 >=20 > [...] >=20 > > > > > > > > The error says the function my-action expects one argument,= but you > > > > > > > > defined it with an empty argument list. If you don't want t= o use the > > > > > > > > argument, you can use `' as a placeholder for the required = argument, > > > > > > > > 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 ? >=20 >=20 > 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 m= arker (for text property buttons). Such an object is passed as the first ar= gument to a button=E2=80=99s invocation function when it is invoked. See al= so the function` button-activate' described in that node. >=20 > Steve Berman What would be the actual object name passed to the function ?