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: Make new buffers into new frames Date: Sun, 29 Sep 2024 19:16:22 +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="6146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 21:17:14 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 1suzPt-0001Tr-CR for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 21:17:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suzPE-00014d-EN; Sun, 29 Sep 2024 15:16:32 -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 1suzPC-00014N-OT for help-gnu-emacs@gnu.org; Sun, 29 Sep 2024 15:16:31 -0400 Original-Received: from mail-43167.protonmail.ch ([185.70.43.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suzPA-0006tW-Ji for help-gnu-emacs@gnu.org; Sun, 29 Sep 2024 15:16:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1727637386; x=1727896586; bh=F8HatenlcgxQDwATJpITeAh/I1sZub89JBoH1LOrh9Q=; 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=r/sKKZSJFEtXCcddttmmws9Nz2v4A3zWdGCmeESA6ycNOQb1C0/upit1ZUkM7WWgK 7nsZ4wSRePrul91bRgOY9q9snthxx9Amd8OEz8krh9Edw6pvo/fFHFm+QK4JPsEJxG kxyg7zFwFWGYxLwRw9svHhHarazzPOB8ox8yn0OyKzup80THlScI0EZo5daJHgkpHj jhmTk+bdo7fKbZZ7RLZYFx7Av/EfPSG1PL0DD7atcEvZ2o+QvwskNhFZG9KHURoW1/ zKVZRfd2gU7zaK+hecZSw5nl00Kbn/uUJyRDuwupnSEV+oH+ilk8SGgArN7+OJus2D EFqGXci5/wp6g== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 2eff8af21c2278774593e192edb97b117faa7258 Received-SPF: pass client-ip=185.70.43.167; envelope-from=heimeborgia@protonmail.com; helo=mail-43167.protonmail.ch 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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:148101 Archived-At: Sent with Proton Mail secure email. On Monday, September 30th, 2024 at 5:15 AM, tomas@tuxteam.de wrote: > On Sun, Sep 29, 2024 at 12:44:04PM +0000, Heime wrote: >=20 > > On Sunday, September 29th, 2024 at 7:40 PM, Heime heimeborgia@protonmai= l.com wrote: >=20 > > > I want to display the user named buffer when calling buffer-into-fram= e into > > > a new frame. The buffer will have a button, which when pressed anothe= r buffer > > > will be made to display my-message, which is some text. >=20 >=20 > You should really, really try to understand how Lisp "works". > People keep saying that, and you seem to ignore it. Once your > programs get one level more complex, you might be unable to > debug them. >=20 > > > I also want my-message to be displayed in a buffer and in the same ne= w frame. >=20 >=20 > When someone says "I want a programming language in which I need only > say what I wish done," give him a lollipop. [1] >=20 > [snip] >=20 > > > ;; Insert a button that shows the info when pressed > > > (insert-button " - " > > > 'action (display-message my-message "Info Buffer") > > > 'follow-link t) >=20 >=20 > [snap] >=20 > And now explain to us what kind of thing the function "insert-button" > expects after the symbol 'action. There is not much information in the manual about it. In the section=20 Button Properties, action states that it requires a function to call=20 when the user invokes the button, which is passed the single argument=20 button. By default this is ignore, which does nothing. Thus I would need a button type argument even though I would not use it. I just have a function that displays some text variable in some new buffer. As a general function, I do not want trm-display-info to include a button= =20 variable in its argument list. =20 > Cheers > -- > t