From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Using conditional in interactive
Date: Sun, 15 Sep 2024 22:22:30 +0000 [thread overview]
Message-ID: <_xNUYtOpBXEf1wLflhP345KZrcoNEnJvtk0-zpRm25Riea3-M-kH9cSKm4UorkXc1uv_HcHE_vm6zeKx6i7lzYC4OQ-aj6w65Bsl2waczcw=@protonmail.com> (raw)
In-Reply-To: <uwhxsnT_JVn48AOgb2_79d7iUToHSX2yjuB0qNhTKtQbK7DK8ta7jwXL16hSaEC7UEw8acDyEB4W5mEOmEYHzlDeK8y9Ue1wuc_MiVq1eqM=@protonmail.com>
On Monday, September 16th, 2024 at 8:50 AM, Heime <heimeborgia@protonmail.com> wrote:
> On Monday, September 16th, 2024 at 7:30 AM, Michael Heerdegen michael_heerdegen@web.de wrote:
>
> > Heime heimeborgia@protonmail.com writes:
> >
> > > (interactive
> > >
> > > (cond
> > > ((eq (nth 0 xiakos-context) 'list)
> > >
> > > (list
> > > (read-string " Search Text: ")
> > > (read-number " Number of Context Lines: ")
> > > (read-string " Buffer Name: ")))
> > >
> > > (t
> > > "s Search Text: \n\
> > > n Number of Context Lines: \n\
> > > s Buffer Name: ") ))
> >
> > I already mentioned why you don't want something like this: in
> >
> > (interactive EXPR)
> >
> > the return value of the EXPR is used as argument list, not as an
> > interactive spec. The EXPR already is the interactive spec.
>
>
> I am not following your argumunt. Would cond not pass the string and
> interactive sees it ? If the first condition is satisfied, the interactive
> part work correctly, even though there is a cond expression. Yet, the cond
> with a string outputs interprets things completely differently.
>
> > So to say, you are mixing two unrelated things here. - Michael.
From you have described it, the cond should occur before the interactive
clause, ending up with two interactive clause. The one executed would
depend on which condition succeeds.
next prev parent reply other threads:[~2024-09-15 22:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 21:36 Using conditional in interactive Heime
2024-09-15 19:30 ` Michael Heerdegen
2024-09-15 20:50 ` Heime
2024-09-15 22:22 ` Heime [this message]
2024-09-16 5:23 ` Yuri Khan
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='_xNUYtOpBXEf1wLflhP345KZrcoNEnJvtk0-zpRm25Riea3-M-kH9cSKm4UorkXc1uv_HcHE_vm6zeKx6i7lzYC4OQ-aj6w65Bsl2waczcw=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).