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 19:18:03 +0000 Message-ID: References: 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="19194"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Sat Jul 22 21:18: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 1qNI7r-0004gW-AQ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 21:18:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNI7I-0001JF-UT; Sat, 22 Jul 2023 15:18:12 -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 1qNI7G-0001In-OR for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 15:18:10 -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 1qNI7F-0005sN-0m for help-gnu-emacs@gnu.org; Sat, 22 Jul 2023 15:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1690053486; x=1690312686; bh=YBJagZGeGon87ASILPs0nFDF+qPG071COdeMVydqqkw=; 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=k9HkMtNQXRcD82RZAK0Oh6Ujyrl5ICx3GYFW3C0fpUVl1D11KEZB7LO3y7L91fbWa Ed1YdlPOssinCJsIQOKvPnmZZfJJZi3HpUEjDb5MKgekISwNs1B8hrQ3Oz+ey+C6M5 xpXye1j2cqP8JijP5Xk2nEfNN0cNvP5/CXVjtOQYb/7EP3sLGhQmcJWCzEm7jWkgNC 3bSA+1Bx5KfUuO387CtG+mO3Cs8Wzwf+vpjCy7kSpBnPc3px+EvF/dQZlSDZDfpCSW cSXkmBflCTjvdljsgW1fab0FRmr1mzJtQZsbvzk3AgQFwz12Uh8IaxdoHdNJu/9rs3 8mHrUStOrdiWA== 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: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, TO_EQ_FM_DIRECT_MX=0.534, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:144390 Archived-At: ------- Original Message ------- On Sunday, July 23rd, 2023 at 2:40 AM, Heime w= rote: > I want to use a button to display the contents of a variable inside > a help buffer, but the following gives >=20 > (wrong-number-of-arguments ((t) nil "Function to be executed when the but= ton is clicked..." (interactive) (message "Button clicked!")) 1) > my-action(#) >=20 Why does pressing the button give me such error ? =20 >=20 > (defconst myvar "Text of Front A") >=20 > (defun my-action () > "Function to be executed when the button is clicked." > (interactive) > (message "%s" myvar)) >=20 > (defun qrh () > "Some description." >=20 > (interactive) >=20 > (with-help-window (help-buffer) > (insert-button "Front A" 'action 'my-action 'follow-link t)))