From: Heime <heimeborgia@protonmail.com>
To: tomas@tuxteam.de
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Make new buffers into new frames
Date: Sun, 29 Sep 2024 19:16:22 +0000 [thread overview]
Message-ID: <C0fNaY_7SzErB996iQC_LeYpbuuQKC7TBqd1rEzlg5Krhb7zwESAnaUdD3gujrliaZJHrYOtu8rOpHULoMtZ8yZEC9Ao9eQqMkufwTl3_mI=@protonmail.com> (raw)
In-Reply-To: <ZvmLHeGr/NzMWaiO@tuxteam.de>
Sent with Proton Mail secure email.
On Monday, September 30th, 2024 at 5:15 AM, tomas@tuxteam.de <tomas@tuxteam.de> wrote:
> On Sun, Sep 29, 2024 at 12:44:04PM +0000, Heime wrote:
>
> > On Sunday, September 29th, 2024 at 7:40 PM, Heime heimeborgia@protonmail.com wrote:
>
> > > I want to display the user named buffer when calling buffer-into-frame into
> > > a new frame. The buffer will have a button, which when pressed another buffer
> > > will be made to display my-message, which is some text.
>
>
> 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.
>
> > > I also want my-message to be displayed in a buffer and in the same new frame.
>
>
> When someone says "I want a programming language in which I need only
> say what I wish done," give him a lollipop. [1]
>
> [snip]
>
> > > ;; Insert a button that shows the info when pressed
> > > (insert-button " - "
> > > 'action (display-message my-message "Info Buffer")
> > > 'follow-link t)
>
>
> [snap]
>
> 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
Button Properties, action states that it requires a function to call
when the user invokes the button, which is passed the single argument
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
variable in its argument list.
> Cheers
> --
> t
next prev parent reply other threads:[~2024-09-29 19:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-29 7:40 Make new buffers into new frames Heime
2024-09-29 12:44 ` Heime
2024-09-29 17:15 ` tomas
2024-09-29 19:16 ` Heime [this message]
2024-09-29 19:22 ` tomas
2024-09-29 19:31 ` Heime
2024-09-30 4:41 ` tomas
2024-09-30 6:40 ` Heime
2024-09-30 9:13 ` Stephen Berman
2024-09-30 9:15 ` tomas
2024-09-30 9:29 ` Rudolf Schlatte
2024-09-30 19:32 ` Heime
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='C0fNaY_7SzErB996iQC_LeYpbuuQKC7TBqd1rEzlg5Krhb7zwESAnaUdD3gujrliaZJHrYOtu8rOpHULoMtZ8yZEC9Ao9eQqMkufwTl3_mI=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.