From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jai-bholeki Newsgroups: gmane.emacs.help Subject: Re: Passing arguments to Elisp function Date: Sun, 01 Nov 2020 21:03:38 +0000 Message-ID: <_eojGVgEi14YxoWCAMJFjHD_36LVdDYk8XAfmIZ5mAPWPTiFIQSh-NeAGVlYg0hvaarODsrqiJyqueWF2stMAurDMY1xRfBm6_Is62jDhg8=@protonmail.com> References: <27Zc4XTcUp9g5idYMWflVrx5nikWyVhX9Pk1_S-j1W8cGnNTLSRoYfXjVXKqT1YCycdLN8Lihx85Dheiy7sCf_yJZ_Wxf6EME-JDiFQhjUM=@protonmail.com> <20201101205951.GA6001@tuxteam.de> Reply-To: jai-bholeki 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="21621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: "tomas@tuxteam.de" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 01 22:21:42 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 1kZKnF-0005VM-VN for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 22:21:41 +0100 Original-Received: from localhost ([::1]:33112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZKnE-0001no-V1 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 16:21:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZKW2-0000sa-6w for help-gnu-emacs@gnu.org; Sun, 01 Nov 2020 16:03:54 -0500 Original-Received: from mail-40141.protonmail.ch ([185.70.40.141]:61480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZKVz-0005d2-C2 for help-gnu-emacs@gnu.org; Sun, 01 Nov 2020 16:03:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1604264627; bh=cPh3FADEtRs681mCLk+pZ39XE9KwqPma0sz9ktHWmqY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=o8SYaCPWg4JINqMTkt+C9pH29PSidHghOM03CaHqgn32dUgVHObBBTva0SOnaEYER UqGxFK7EOcJceTmFZAaaioOIbjwy6ZjcJv/oXMctkIYixW/rykmYx+A0qnAoNr9/qq 5iq5wtN7HCYsIBOqBzrhbuKmTMyVQcaRs+wPPmQE= In-Reply-To: <20201101205951.GA6001@tuxteam.de> Received-SPF: pass client-ip=185.70.40.141; envelope-from=jai-bholeki@protonmail.com; helo=mail-40141.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/01 16:03:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-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:124913 Archived-At: Correct. Got it Cheers. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Sunday, 1 November 2020 21:59, wrote: > On Sun, Nov 01, 2020 at 04:54:55PM +0000, jai-bholeki via Users list for = the GNU Emacs text editor wrote: > > > I have a function gets the beginning and end of a region. > > Is is possible to pass another argument to the function that is a chara= cter 'ch'? > > (defun pengo (beg end) > > (interactive "r") ; Specifies Mark and Point, smallest first > > (goto-char beg) > > ) > > You mean something like this? > > (defun foo (beg end ch) > (interactive "rRegion:\ncChar:") > (message "Region: (%d, %d) Char: %c" beg end ch)) > > (i.e. separate consecutive args in the interactive specification with > a new line, `\n'). > > Cheers > > - t