From: Michael Heerdegen <michael_heerdegen@web.de>
To: Heime <heimeborgia@protonmail.com>
Cc: 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 21:30:17 +0200 [thread overview]
Message-ID: <87o74o4svq.fsf@web.de> (raw)
In-Reply-To: <So3BjmikTVLUGopGJxjkB88SUh1Qz1U94kuwHGhlamunmAC51WKBqIYR3QAMTeg_CbSwbjGfdW8SviJzuBk-CpvFh35BjpPoMr_Kz3M4DBE=@protonmail.com> (Heime's message of "Thu, 12 Sep 2024 21:36:43 +0000")
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.
So to say, you are mixing two unrelated things here.
Michael.
next prev parent reply other threads:[~2024-09-15 19:30 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 [this message]
2024-09-15 20:50 ` Heime
2024-09-15 22:22 ` Heime
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=87o74o4svq.fsf@web.de \
--to=michael_heerdegen@web.de \
--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.
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).