From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Passing a list to an interactive function Date: Fri, 18 Dec 2020 12:49:52 +0100 Message-ID: <875z4zjpsk.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25747"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 27.1.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 12:52:13 2020 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 1kqEIu-0006aP-TL for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 12:52:12 +0100 Original-Received: from localhost ([::1]:50456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqEIt-0000ZV-UG for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 06:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqEHz-0000YY-M2 for help-gnu-emacs@gnu.org; Fri, 18 Dec 2020 06:51:15 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:54889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqEHx-0002oq-Jf for help-gnu-emacs@gnu.org; Fri, 18 Dec 2020 06:51:15 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 853865C00A0 for ; Fri, 18 Dec 2020 06:51:11 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 18 Dec 2020 06:51:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=FJvO5l4Cu2cEL9oZyJ2lIqoRB1 Z7qzQ7flRuWynSVcM=; b=Z49qMPYTh4AZU8ywOZynH0DwH0QX35prNzd2tvO1ot Z9q4tM52mYy7BWIKHmZkeAXRyClTrrnUA7TpWhCqpS4g/hhJ4se1X8TGGNr04pPe 3gTYoOFTLl67O6tUikjWly1cMxRx1YamUj8aiU17SFc/7XQ4bhKCx30VNdOlBsAY Aq3wUuS0YTU7t+jN8Gx1v8fJQFAvzBkNVoAhXCNdrrqpQVAatt4ry6DJUwOZ7TcR eie7bwamV8XFn6VkeVMUUNzoOS/GcqtP5ImdpywXPWztZ6QKF3e+HKnIe/39iSBL 9/ufUVoybJ/aICF8k1mpP1LJtttIx3rlTkK7ASRgjfDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=FJvO5l 4Cu2cEL9oZyJ2lIqoRB1Z7qzQ7flRuWynSVcM=; b=F6wC3RFF1i6v2jiiSIYz7N 4XnUWQoLTW1lmXukkYLTfXvkBbWcAEuFrPk5svxIsZo0sekaPwGig1Hzz2agl3Se gmrCxzId39Sivev8chTsLLNls/+uqI5mpYqtZ4axI2BEjzb6+b2fCiVtro/BmtSL 6VqrhqwYVj2pkmadAFiYi0gzRRf2oB1aPnMeTR0fqr4a149NEdjexQH129earleB nc/ApLMcPQORU7ldmVulbKPHoPcbVvHJxRayI31cJMdhoK9hmjaDo03Sfzu6Jn0W 5b3Ki95diodJK0KZzC60GUFUoIbfdZZRnE3IfG0LjM8DT3xW/yA0tdpnJW5zHsRw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeliedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepvdeihfetueevke duteehudeihedvlefgieejhedvteefgeelleehhfejudeijeevnecukfhppeelhedrledt rddvvdegrddvgeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0f6.dynamic.kabel-deutschland.de [95.90.224.246]) by mail.messagingengine.com (Postfix) with ESMTPA id DF5001080064 for ; Fri, 18 Dec 2020 06:51:10 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:126500 Archived-At: On Fri, Dec 18 2020, pietru@caramail.com wrote: > I mean, how do I define an interactive function that takes a list as argument? Check out the interactive codes in the Elisp manual, if you haven't found those already: (info "(elisp) Interactive Codes") The only codes that would allow you to do what you want are "x" and "X", which both read a Lisp object, the difference being that "X" also evaluates it. -- Joost Kremers Life has its moments