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 20:05:41 +0000 Message-ID: References: <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="9851"; 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 22:06:47 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 1qNfLq-0002PV-NZ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 22:06:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNfL7-0000aN-0b; Sun, 23 Jul 2023 16:06:01 -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 1qNfL5-0000aF-RE for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 16:05:59 -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 1qNfL3-0005aX-Fe for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 16:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1690142754; x=1690401954; bh=EjqrPuTtkZeDepSJRadpYOJAL2iJXxH4HYKezJdYL/4=; 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=PwTcRVBdNBcpOROqtogA+oe+Ua8y/18F0E0+5WOcJ4PiOnDk8Bu8jTe2eyvTZOHVG wTvsxT47yAkxLbKZAdd2q1V9kZzxr/sNz4ADgrJakyXw5WNQr+CO4BFIjgEPcvwukC tksYAA2+El7ixNIK/P8/4AY5KcEBblFQto9VEuhDlcCYDVzDLpd82vHzBtQQcJINRC yKlG/T9RnGwbp0oNlw2910O1f95dTKT1SH65AzbMibw8B+ejoUHWJJ68R++cvCRwwf I9eQc1fj3G3YygIjUPHZJkXLhfXj1SGGJix6LfnviAE3tn3CueNELW7ldpgam7SKiy wKB0McsxPcarg== 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:144411 Archived-At: ------- Original Message ------- On Monday, July 24th, 2023 at 7:57 AM, Yuri Khan wr= ote: > On Mon, 24 Jul 2023 at 02:34, Heime heimeborgia@protonmail.com wrote: >=20 > > Does the function associated with the button be restricted to a single = argument, > > meaning that users cannot pass any additional data to it ? >=20 >=20 > Passing the button is sufficiently general. An action can reach into > the button=E2=80=99s properties and/or use the button=E2=80=99s identity = or one of its > properties to look up in an external alist. And, of course, you can > always create lexical closures over a multi-argument function, > adapting it to the action interface. Are the things you describe done often with buttons in emacs source code ?