From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Buttons in help buffer that displays contents of variables Date: Mon, 24 Jul 2023 02:57:03 +0700 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="5925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Berman , 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 21:58:03 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 1qNfDP-0001Ja-3H for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 21:58:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNfCh-0007ET-Cu; Sun, 23 Jul 2023 15:57:19 -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 1qNfCf-0007EF-Kf for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 15:57:17 -0400 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNfCe-00045K-8B for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 15:57:17 -0400 Original-Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7659c6cae2cso247471285a.1 for ; Sun, 23 Jul 2023 12:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690142235; x=1690747035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lPX041MAXXVjCWBEYAzz9KxhNlxcFtNK/Yz8slq74XM=; b=VqztBJ81d1l8nlfdJZbF52A1wY/GAhYCSOOo62omsD/dyL7HmlCwlvqoXezh4XreFS VwF7eZKBN8H97CTM8z9kgXWGZMADwwUL4gRIAa+WxaRyfD6ZwF4DcZFmKjd1HHwP5dlj 9poiCPCOt7B9QW5Dfg7yLSyO8HrLSJrvdrtcQGDO0lJMzJtk4krX0qiM9tZT5rRVFZx9 3LyjIfL0WQ/1BZ/8mYmuSxew2wRmM0I1IYDkW1NnM4l25Q14lnv1VyMpEymsAkg1ZksL wKmePB9gPebIb3NCbfj0ND/zCmUFU1tUJKwJraru1GHcsvZsrHAmOwrNRiuvcj5E+tjv T7Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690142235; x=1690747035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lPX041MAXXVjCWBEYAzz9KxhNlxcFtNK/Yz8slq74XM=; b=lL03VFMcZYTVZJergNBXyZXUnGllw+iWw8lJZ8rHVVOw95Ms7WSWWJ0RBcPDkoX602 QJEXUZBfgWkunF6YscworgcV7ZYd2Pb/fDcFewNvOR2YawlqNLRc+Na4Jr/hH2GtRJ9S PLZMVtrRT6zziIELf3XyoVES87bimUT5iXJgLob3p15de/CzxY+V2lePpTzPNxB7+cQ4 mCoxrCXBZ6Z037GRUGr11icWh4WVRSCpJ2tKlz04kjeUfPs0ccL17dSb/ojnT7oI3rAr vKYgtcLcN/s5iGw06YuiyRA6lXAbLJRSURZdzzinKkFO7ThkyfG9W1/qAwiYoVMH10hK 28xA== X-Gm-Message-State: ABy/qLbs5V/gwv6Q9JAFsfuLP3FchB0jk7IY/3fDoGwdpHgyjHA1s5Ag Q9LWF3MUS40IvuCxdSWlc3Ko2ez4FRTjzFNygRv17x0g X-Google-Smtp-Source: APBJJlFXtBn8E0ouKVvU86oKWS84DFYYe7jbvr6xE17WjjaTRe3T058p8ZmrE75uuMK0josvyA/Ny6Xg17Ps5UY5Du0= X-Received: by 2002:a05:620a:2086:b0:767:db7b:aecb with SMTP id e6-20020a05620a208600b00767db7baecbmr4502303qka.28.1690142235082; Sun, 23 Jul 2023 12:57:15 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=yurivkhan@gmail.com; helo=mail-qk1-x733.google.com 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_DNSWL_NONE=-0.0001, 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:144410 Archived-At: On Mon, 24 Jul 2023 at 02:34, Heime wrote: > Does the function associated with the button be restricted to a single ar= gument, > meaning that users cannot pass any additional data to it ? 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.