From: Drew Adams <drew.adams@oracle.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: RE: [External] : Interactive option for command application
Date: Tue, 25 Jun 2024 00:22:13 +0000 [thread overview]
Message-ID: <SJ0PR10MB5488299B1FEF494F18015AF4F3D52@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <QMLPUX0WsjYm2iMot-CjFMgJKkZEF0bd41QoeH2Y-kj_BBK2uuJarBYZUi_OWCxJizgB0DllpY_f2Y4MbH5fSRDBtPENKyvedUzrZVVFQtg=@protonmail.com>
> > > > Have a prefix arg use the frame. No prefix arg means use the buffer.
> > >
> > > How would I handle the prefix arg to do as you suggest ?
> >
> >
> > Consult the manual - look for `interactive'. Look for` current-prefix-
> arg' if you use a Lisp sexp as arg to `interactive'.
>
> Would I have to figure out whether I have '(4) or not, or just an if upon
> current-prefix-arg ?
_Consult the doc_. There are even examples there, IIRC.
`interactive' just passes some args to the body of your command code. It's the logic of that body code that decides what to do with those args.
next prev parent reply other threads:[~2024-06-25 0:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 20:52 Interactive option for command application Heime
2024-06-24 21:36 ` [External] : " Drew Adams
2024-06-24 21:51 ` Heime
2024-06-24 23:53 ` Drew Adams
2024-06-25 0:11 ` Heime
2024-06-25 0:22 ` Drew Adams [this message]
2024-06-25 10:11 ` 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=SJ0PR10MB5488299B1FEF494F18015AF4F3D52@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--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.