From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: carlmarcos--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Placement of list within an interactive clause Date: Sun, 17 Jul 2022 05:02:48 +0200 (CEST) Message-ID: References: Reply-To: carlmarcos@tutanota.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 17 05:03:19 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCuYw-0009JF-RI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 05:03:19 +0200 Original-Received: from localhost ([::1]:51194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCuYv-000835-DW for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 23:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCuYW-00082r-31 for help-gnu-emacs@gnu.org; Sat, 16 Jul 2022 23:02:52 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:55648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCuYU-0000PL-ER for help-gnu-emacs@gnu.org; Sat, 16 Jul 2022 23:02:51 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id F23CBFBF688; Sun, 17 Jul 2022 03:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1658026968; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=wbwZaep7t7xDc6ztaPLyY/77lNW4bHyvVGX/ijRsjxs=; b=b/cXZSa29yHhqOoCujhsEGxsFEz3OwIWjNpJLSFdCa8NFlRIG2kHxhVyY95AzInB yg+/AsCe00D0eCLBxWP4I1PTkEBWZsw9bXxlo9U2MGWkfTVzuJ4upx5e/2tpTzfppsG NVc/7vTyjX3D/+cddf2FfO3zmragrdEWUy2mdZkrY5TQmsz+ulP4Hr1wAm0gmbPrOF0 uwKCFX11UOhcS5x9hbMB8Fj3br+GHwXHOvgzFV6Z3sIVGCUjlFG+CXphQRSdbxv/9jb yO9vD+eTX1//H2Mez+Aehw9XVSxm6Du4T7TdpGu5x5Au164RQl0cONe4p6al2ysJCRM SrkrTUWMDw== In-Reply-To: Received-SPF: pass client-ip=81.3.6.162; envelope-from=carlmarcos@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138513 Archived-At: Jul 17, 2022, 02:38 by monnier@iro.umontreal.ca: >> On the other hand if I want to have multiple function arguments, I shoul= d have >> >> (defun myfun (type other-arg) >> =C2=A0 (interactive >> =C2=A0=C2=A0 (let ( (rqmatch t) (initpk "mixed") (dflt "extended") >> =C2=A0 (cseq '("expression" "mixed")) ) >> =C2=A0=C2=A0=C2=A0=C2=A0 (message "This is a message") >> >> =C2=A0=C2=A0=C2=A0=C2=A0 (list >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (completing-read "Flare_type: " cseq nil >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rqmatch initpk nil dflt) >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (completing-read "Other_arg: " cseq nil >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rqmatch initpk nil dflt))))) >> > > For example, yes. > > There are many other ways to write such code and the shape if the code > has no importance to `interactive`. All that matters for `interactive` > is the *value* that is returned when the code is done running. > Thank you so very much for the examples.=C2=A0 I am now fully conversant on the details of working with interactive.