all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Heime <heimeborgia@protonmail.com>
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: Mon, 30 Sep 2024 11:13:33 +0200	[thread overview]
Message-ID: <87msjpld1e.fsf@gmx.net> (raw)
In-Reply-To: <xsQeL3nIoibFIvwMu7PZfRfTQjhhqrexu76afYEYPcL7lodjNrynQ9EbH7hHLqe5Es4vl8Iyc1tdCV4fAU0JI28rS7vcpWQHkX95I5WUvHs=@protonmail.com> (Heime's message of "Mon, 30 Sep 2024 06:40:42 +0000")

On Mon, 30 Sep 2024 06:40:42 +0000 Heime <heimeborgia@protonmail.com> wrote:

[...]
> Then the correct way is 
>
> 'action (lambda (button)
>           (display-message my-message "Info Buffer"))
>
> Does one perform any operation with the button argument in the 
> declared function or lambda ?

See (info "(elisp) Manipulating Buttons"), in particular:

 -- Function: button-activate button &optional use-mouse-action
     Call BUTTON's ‘action’ property (i.e., invoke the function that is
     the value of that property, passing it the single argument BUTTON).
   [...]

However, since in your case the argument `button' is not used in the
body of the function, if you enable lexical binding in the file
containing it and byte-compile the file, you'll get a warning: "Unused
lexical argument ‘button’".  To avoid that warning, you can use
e.g. `_button' (or just `_') as the argument (cf. (info "(elisp)
Converting to Lexical Binding")).

Steve Berman



  reply	other threads:[~2024-09-30  9:13 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
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 [this message]
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=87msjpld1e.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.