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: Sun, 23 Jul 2023 19:34:05 +0000 Message-ID: References: <878rb7vctx.fsf@gmx.net> <874jlvvawe.fsf@gmx.net> <2o0OzY_iBd8TOmOEzF9du3kSZGrEKIJbl7QdqK3lyQ7xonVsF2v5W3Dxt4hQ8T1cQfShQxikqyAhCD4Kc0BGJNGaPya9ClnAWarEa9ZJ9HQ=@protonmail.com> <87zg3ntvbv.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="18522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Berman , Heime via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 21:35:05 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 1qNerA-0004eb-W3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 21:35:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNeqY-0004cF-HH; Sun, 23 Jul 2023 15:34:26 -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 1qNeqW-0004c6-GC for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 15:34:24 -0400 Original-Received: from mail-40141.protonmail.ch ([185.70.40.141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNeqU-0006VT-Do for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 15:34:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1690140852; x=1690400052; bh=D7WwaALCd02C4586K33V0ZzQOqMgm+jC64MENzjcc9Y=; 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=FHVX28uUH+WFZI8Z4oicWqsaOptOEKaCelLit4psaiNDmJz/LdktQxq3slem9auUF 7QaZeZlZR6eXexmeJbJC5yh1gawQ4aq1wl5V0aNuQhuYiNrNCS25mPrz/Uy6mOtOhB gFWfQsop1SxAP0H1S43UeHiRgzytVxXoKBbks8fGanvjH7bCOdBoDI8g2oUzC9nf++ qnCYxhRCAD1hXHAn0KEU/302gIu+83ULz24KVKyEelsaZNtf9GvCs0SPLvoISY0EjR eD/YZq9iEjsPFNSBfJVMDOSPP1N88jRzTqebSzNWbumyGytxiWbjRI78m/W4toZWeG ZncsKcWKXywsw== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.141; envelope-from=heimeborgia@protonmail.com; helo=mail-40141.protonmail.ch X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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=-1, RCVD_IN_MSPIKE_WL=-0.01, 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:144408 Archived-At: ----- Original Message ------- On Sunday, July 23rd, 2023 at 7:45 PM, Yuri Khan wr= ote: > On Sun, 23 Jul 2023 at 06:14, Heime heimeborgia@protonmail.com wrote: >=20 > > What does the button.el use as object to push to the action associated = function > > that would be sensible. Would it be "action" ? Does the function associated with the button be restricted to a single argu= ment, meaning that users cannot pass any additional data to it ? =20 > The documentation quoted upthread states the argument is named BUTTON. > It is easy to conclude that the action function, when called, will > receive as its argument a reference to the button object that was > clicked. >=20 > This pattern is widespread in GUI frameworks. It lets you create a > bunch of slightly different buttons and assign them all the same > single action, and it will be able to do slightly different things for > each button.