From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Using button to display a help menu Date: Sun, 27 Aug 2023 14:54:25 +0200 Message-ID: <87fs44lk72.fsf@gmx.net> References: <87msyclv1r.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 Sun Aug 27 14:55:12 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 1qaFIO-0004Jt-8p for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 14:55:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaFHo-0005K4-FX; Sun, 27 Aug 2023 08:54:36 -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 1qaFHk-0005JV-Ia for help-gnu-emacs@gnu.org; Sun, 27 Aug 2023 08:54:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaFHh-0004dO-AF for help-gnu-emacs@gnu.org; Sun, 27 Aug 2023 08:54:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1693140866; x=1693745666; i=stephen.berman@gmx.net; bh=/Xw4NCEhOKECFbEpJert1mpkL900wYXPNlrXcZDdkxI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=RRRf7OAb1b73IwbJkKau+tlPMW+KRsXNGfYb5oTmCjG2DCrkwH2mg4gA8pRi+Jya108nw02 bmQHlQlu1YQAZplY2K3NIgpCXs/+rVPXyCi9X1ai6CEM5ruTi1LcLlkNWfvfUjpmjEwJDMImS aCvPV/ZiwWph5YCu7V9xfSpIoP2IUqMM3vNQaMGi+4uyEtVQ37ZbMNyMbGSFUdMgRnOGQYgMq ARzFLZkqY3S4HgCFlyseapTy/ptY6rVPBUQaJYlTMYoP+hkK87Zg8NgZ/7bkTDmI2z7ISuIVB HbG6sFJdygYBPTUZ+WLmR77acODaoRm3/g+V4xyUmP4oxOYHNgbw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([94.134.196.30]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQMyf-1qMie03mZl-00MIrn; Sun, 27 Aug 2023 14:54:25 +0200 In-Reply-To: (Heime's message of "Sun, 27 Aug 2023 12:34:22 +0000") X-Provags-ID: V03:K1:zy2QGqUCgz0bn/4ihM9P4u6rg0C0I70XlXdI6bc0TIpCQUYSN7v HL+5jiP4FxECdUTNlcCaetlv8SL1tAYIxy4NFCZ/CzZ6phKBBDf4P4e19UeSGC0gjBEd/bn r+UZ/5LMUvtWs+5uFHoqXn4fTsFIRpz3+a1zT5TsYCIX2m9pX/z8FEohYu4m5C6PJG/bdaz TcDbDan8FK7q6/ncYcegg== UI-OutboundReport: notjunk:1;M01:P0:8DF8BinN3xg=;5BhCloTLtoEK7T1q15eD/WhINnS S6YkjXF7u8IE+Lv0M8uwiexRfBQY4mOcjmUHSAgG2LyfYB6E3O3PBWp+EUWk04XkcF9GAbyOF mNYpjEMf95SDumZHJWlEYin2po9tT1DYArpmXB6Ioow8E/eiQOHEHumcolNm7Udoz+HXHBUcD 2j7WWnwP9AQH3ClM3Dtt5fy7mJgg9G7AN+EkFNoeFbyujmSAF9wy0Vfz/1u5wQ7Trg9NGNhDM hYp1QI2IznDXVWJ7knGmV9T8bMftx5tQIluB1ZDK+38S4uJxbFToEAfSbkKDToJjcoffXM8QR 4XNYoEaT7IJS7fnbLMo2f7rw9ocBDuzM5CUoPM0HXpuM0FoDko3NWAl8zODHdLRf236aeONER 1qazZ2BH9OAAPiorxdd1YoYSLj21/Fsd4Ph/D6q3754Alar4DF9mooNnFrTmM93au6f00I2XN CY8oTq/IgQBkb/nSgNwBaJgMKYZ+eG+R6K3NMfTofzHaOjtT/32TB9PIIZ6ggVhm7E0V0wZ0q hleiaqMQ3gGxdGd0cn7x5JAAhqoJ7cbbMNdNvTeajqgkA9leWrIHvXanT779qTUZYg5DJdkIm qKLrhT2ikUJYcmsCYfgcKqL2ijOGDDDUFOcW5AyLE1cA+jp1qEinLSb8+7jyIP/oIQA7v0RAm oyuxHL7mwLyjxdkDAgN6ScTC5b3iRSBIIxIu0bHGMMUcUodFwqY8PjTqZ70gsucLAyqqZlKIh 3XPPtrCHTDuh2vISJLDK30Jc6nZNR/OoM6LI1WTtV2dfB4FCV+m+dM3FjbVsZHIxt7h36VNm Received-SPF: pass client-ip=212.227.17.21; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:144981 Archived-At: On Sun, 27 Aug 2023 12:34:22 +0000 Heime wrot= e: > Sent with Proton Mail secure email. > > ------- Original Message ------- > On Sunday, August 27th, 2023 at 9:00 PM, Stephen Berman > wrote: > > >> On Sun, 27 Aug 2023 06:32:29 +0000 Heime heimeborgia@protonmail.com wro= te: >> >> > Have made a function called 'maces' that is intended to show a button >> > called 'Organis' to display a help page as defined in 'maces-organis'= . >> > Although I get the button 'Organis', when I press it, I get >> > >> > -------- >> > >> > (wrong-number-of-arguments ((t) nil "Prints information about Maces >> > Organis." (interactive) (help--window-setup (help-buffer) #'(lambda n= il >> > (insert-button "[F7]" 'action 'maces-action-organis 'follow-link t) >> > (insert " Maces Organis \n")))) 1) maces-organis(#> > in Help>) >> > >> > -------- >> > >> > (defun maces-organis () >> > "Prints information about Maces Organis." >> > (interactive) >> > >> > (with-help-window (help-buffer) >> > (insert-button "[F7]" 'action 'maces-action-organis 'follow-link t) >> > (insert " Maces Organis \n") )) >> > >> > (defun maces () >> > "Prints information about Maces." >> > (interactive) >> > >> > (with-help-window (help-buffer) >> > (insert-button "[Organis]" 'action 'maces-organis 'follow-link t) >> > (insert " Maces Organis \n") )) >> >> >> See https://lists.gnu.org/archive/html/help-gnu-emacs/2023-07/msg00321.= html >> >> Steve Berman > > Steve, does using a button always need a function taking a button argume= nt? I don't know any more about that than what I previously answered in https://lists.gnu.org/archive/html/help-gnu-emacs/2023-07/msg00323.html; see again also Yuri Khan's post https://lists.gnu.org/archive/html/help-gnu-emacs/2023-07/msg00335.html Steve Berman