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: Define interactive function with arguments Date: Fri, 09 Oct 2020 11:22:30 +0200 Message-ID: <87d01r92jt.fsf@fastmail.fm> References: <87v9fkth3m.fsf@ebih.ebihd> <87blhb7tqa.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.5; emacs 27.1.50 Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 09 11:22:57 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 1kQoc5-0006LK-RI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 11:22:57 +0200 Original-Received: from localhost ([::1]:39820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQoc4-0001mE-Pr for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 05:22:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQobj-0001m6-TG for help-gnu-emacs@gnu.org; Fri, 09 Oct 2020 05:22:35 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQobh-0002r7-Rz for help-gnu-emacs@gnu.org; Fri, 09 Oct 2020 05:22:35 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5121A5C0108; Fri, 9 Oct 2020 05:22:33 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 09 Oct 2020 05:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=Z42sav/By8QO8LNUyAQC676UBP jpkxG2vusAw003t9c=; b=RARLt0lZRBio7coKoVX4dhFMz2+p64ej3IZ4MXWUXP pi0S5aXHUR+1SMVKiJFd9CRnK+C/gdVutAch10GzlH4LYO9e7lMqWTbiOIBOpnHy jgW/pNaxVVYPThtFcS18f6fSd3dHYjXcoxsRgiEqVwuLgodCfSwOg6wxY6HNLGlI MPXMjfusWxH8fPAAdH1n6PqgUBSTZRcAxTnTyUmMVDQgN64F9zL1x3CtAYXnwJlU wuyqAlW0aMGOzVt0wITljGtrl22/AmRtW4KermY5HX60wSN571ltiaOPzvbDEVGk w8o2XkPbap5O1UJNWdLJCA3wyf/Pi3AEE08UYUlz72Bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=Z42sav /By8QO8LNUyAQC676UBPjpkxG2vusAw003t9c=; b=UMmDnw/QHB2JKfIjX4aAKl Osxw1HDvmqUH817dPMfLGajggs2jgFJ+O+dELOQgiiZGFj1dMN8pY/GYzJS5x1ll Z7+WplsqDezPAdLIVjUj0TkjmScTp3Y109Ej/oQgol59tZ9RP6UU5SREj3iTMtZl RHQ8+esv5eMblzeDz0MclDj6yODvlrBW4jv+YKdElACwnDn8k7qrRi928kYViznp 42infEuxIVqTiS0YHjbTX71VaoSisDNUIrLg/kfcj4lmhwmurh5mHQa7ZDyzSTx6 GJygPbk8u948EA8t+4tQEUZn6gvJYzluzFuZh5z/58RjOB4V7LWIkpyVIZtzhRgg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrhedugdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomheplfhoohhsthcu mfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmheqne cuggftrfgrthhtvghrnheptedvvedvgfeftefftdduuefgtdevjeeujeethfdtfeekteff leeuhfeltedvfeegnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeelhedrledtrd dvvdegrddvudegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip5f5ae0d6.dynamic.kabel-deutschland.de [95.90.224.214]) by mail.messagingengine.com (Postfix) with ESMTPA id 4D41D3064686; Fri, 9 Oct 2020 05:22:32 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=66.111.4.26; envelope-from=joostkremers@fastmail.fm; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/09 05:22:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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:124394 Archived-At: On Fri, Oct 09 2020, Christopher Dimech wrote: > Your comment simply means, look at the manual and look at the > code > and don't bother me. Nobody forced you to reply, and if people > do > not want to advise, they can simply disregard me. Have heard > such > talk all the time, especially in industry. I'm truly sorry if it came across wrong, but I didn't mean my comment that way. It was meant in a "help someone help themself" kind of way. The Emacs Lisp Intro is a very helpful resource (I think) and I didn't see anyone point it out yet. (Though I may of course have missed it, in which case I apologise.) In the spirit of helpfulness, these two sections of the Elisp Intro answer your specific question: https://www.gnu.org/software/emacs/manual/html_node/eintr/Interactive.html#Interactive and: https://www.gnu.org/software/emacs/manual/html_node/eintr/Interactive-Options.html#Interactive-Options -- Joost Kremers Life has its moments