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: Sun, 23 Jul 2023 14:45:55 +0700 Message-ID: References: <87cz0jvfjo.fsf@gmx.net> <-Of1ukZDnMEs_SVnir4H5K16gZyeSQzumX2oqufViGBYgx6lWFHLhnFHoUC6_0NHmrd9FQ7I5-HyOlZWKDx1Go2wVfQ9Yb0WZrTPY2ihcbo=@protonmail.com> <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" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2187"; 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 09:46:46 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 1qNTni-0000Oj-BV for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 09:46:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNTnB-0000d2-Ve; Sun, 23 Jul 2023 03:46: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 1qNTn9-0000cs-Pe for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 03:46:11 -0400 Original-Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNTn7-0004a5-KF for help-gnu-emacs@gnu.org; Sun, 23 Jul 2023 03:46:11 -0400 Original-Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-4812fc6b41dso1315446e0c.3 for ; Sun, 23 Jul 2023 00:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690098367; x=1690703167; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=frRhc904KaPC2zGSXuMkQok2hq2mhx6V8frLYmuVAJ8=; b=qBbCnkZeZO0VBz060wUs70BqEy7ItYW0tFrz8hesieu/f1fZ0irgSZKCAj7q7vVQz0 EHm2QZdYyAPsi9seDG+w8xl3hXLs5mI7xrcYN7H5TlA7NQ/qASAb+s8xVS2bZdb/yiwX aIzQEOKiz9JlzIFp4g7nFnQWTKUqsl8sfQnOnPEFvwzOhIkpPMPXp+v+CbjWEFKnEFiB UacSTRoyD4IdSOSOOHCK7jdnq9DQ3pzICPQ47sM8l0r8+SZPjkCesHZHdALUSEE4NJ9M ChSZZYUb9DlZCZ7ypyTMtR50AAUV5SdK6V0peLz8KJO/z29NeyO7U+B4YPaYa3W9Ngen sfag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690098367; x=1690703167; h=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=frRhc904KaPC2zGSXuMkQok2hq2mhx6V8frLYmuVAJ8=; b=UPLoIINgw1BdyEb5+F2N+5qDAdLCZgAQ+gFi3+r+fZiXDfncZbo45bZLkUNK9Y32oZ R/tu9S4O6ZN/rUKYGtww3rkMaLEfFj4JpahDzG+gyG+WH5Ft8CBOGju4ITxZpuXKFThY 7Vstzw9qcg0HgP/X1l37JM3vhh9Z/BjhvPklVY8jfnbPRZCTU1GxhEBMXdEvwZMlDKRO 6MDMv2bZHlQLYce/vDsvm5I47E7gOaY747Lsq29t5SqMMlGjGu+MipC+BqLPgLhSsuZo revJ6do6NwTkFxaqdSa18DuPEeJ2bzHf8ai9JRfkXzFch5akmcoKUtHObrBVi46colv6 BWgQ== X-Gm-Message-State: ABy/qLav2ywtGSghkNlu0eyTK7/uuPu5EYGIp0IiemGKDDqJTAiG2McS D/8pTmtp4swsI6rBGJsmA1JaEKwmrwDUxHOq8rI= X-Google-Smtp-Source: APBJJlGu84FiQ5/5h7MaPPo0O7zCvaEQFvTpwZlR6/2vLH2rCmufa+nFKNfU7aMA6XHaNl5KPw/DEV+RkiYRekYnShc= X-Received: by 2002:a1f:4196:0:b0:471:304e:b563 with SMTP id o144-20020a1f4196000000b00471304eb563mr2821190vka.8.1690098367569; Sun, 23 Jul 2023 00:46:07 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a35; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa35.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:144405 Archived-At: On Sun, 23 Jul 2023 at 06:14, Heime wrote: > What does the button.el use as object to push to the action associated function > that would be sensible. Would it be "action" ? 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. 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.