From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Make new buffers into new frames Date: Mon, 30 Sep 2024 06:41:04 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UCq08sp6y2RfzMWn" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40876"; 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 Mon Sep 30 06:41:54 2024 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 1sv8EL-000AUB-U3 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Sep 2024 06:41:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sv8Dk-00016R-03; Mon, 30 Sep 2024 00:41:16 -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 1sv8Df-00016A-4N for help-gnu-emacs@gnu.org; Mon, 30 Sep 2024 00:41:11 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sv8Db-0004di-Kt for help-gnu-emacs@gnu.org; Mon, 30 Sep 2024 00:41:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GhMtI6Tj4C/xohVg64T6W0xDv8y0BIasw3qmcSurWbo=; b=NluAkSm/qL4FCFJkIVwU41AZ6F lQqRdmhtwcbgn6iDqAlF2BvpBYSQZIB/rzjytHTb8f7gOhsisB2KbicAgxOlQ7vox0n+XYvMPRWNn XYijEMmm1gmDQamk76dxnjhZCuaxJLHEr9Bz5YrFWfot1F43nj+q30UWn0szH/gBjZe36Ev5z8smC RBW75fVjD4sMPVV0uVLqzZt1cHXnSItTGfsz0z0Q0ITv50pJ+nrjadrUmodvIrftlUJ72O+whpCht vdWWff5h0dE3uOyVjqar4IFvooThgkCWwmz9O5j22atAXZuTQWDV7oqCS5HKyUpQlK0QwJi2KR4ln qFsPGKew==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1sv8DY-0003ha-Is; Mon, 30 Sep 2024 06:41:04 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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:148105 Archived-At: --UCq08sp6y2RfzMWn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 29, 2024 at 07:31:07PM +0000, Heime wrote: >=20 >=20 >=20 >=20 >=20 > Sent with Proton Mail secure email. >=20 > On Monday, September 30th, 2024 at 7:22 AM, tomas@tuxteam.de wrote: >=20 > > On Sun, Sep 29, 2024 at 07:16:22PM +0000, Heime wrote: > >=20 > > [...] > >=20 > > > > > > 'action (display-message my-message "Info Buffer") > >=20 > > > > And now explain to us what kind of thing the function "insert-butto= n" > > > > expects after the symbol 'action. > > >=20 > > > There is not much information in the manual about it. In the section > > > Button Properties, action states that it requires a function > >=20 > >=20 > > Aha! A function. Now stop ten seconds: a function makes sense? Yes, > > kind of. To me at least. > >=20 > > And now: what are you giving to it? >=20 > I am currently giving it the command to print the text in some new buffer. No. You are not. What does your lisp do when it "sees" the expression (+ 1 2) =2E..and what is the result? You put the expression (display-message my-message "Info Buffer") =2E..which gets evaluated on-the-spot, and returns... a window! (what you c= an confirm if you follow the code). So your insert-button invocation places a window in its 'action "place" and tries to call that window as if it were a function. This can't go well. Thus the error message. Once again. Try to wrap your head around the Lisp evaluation model. This wi= ll save you a lot of work long-term. Cheers --=20 t --UCq08sp6y2RfzMWn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZvor2AAKCRAFyCz1etHa RnqQAJ9vo42C+zWEvHzkoH50z2X+KZRW1wCff2UFJFsa/fbDYKj1wZd+zVK+P4M= =9EnH -----END PGP SIGNATURE----- --UCq08sp6y2RfzMWn--