From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Define interactive function with arguments Date: Fri, 9 Oct 2020 10:57:25 +0200 Message-ID: References: <87v9fkth3m.fsf@ebih.ebihd> <87blhb7tqa.fsf@fastmail.fm> 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="5180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 09 10:59:31 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 1kQoFO-0001Fk-Hu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 10:59:30 +0200 Original-Received: from localhost ([::1]:56132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQoFN-0002mf-Db for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 04:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQoDV-0002mW-Ue for help-gnu-emacs@gnu.org; Fri, 09 Oct 2020 04:57:34 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:41183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQoDT-00083y-LW for help-gnu-emacs@gnu.org; Fri, 09 Oct 2020 04:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602233845; bh=bF35f7ximxk1EV5QGWHpyBzLG9Ys6O0e4B+0Z8yqvOM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hDLPwDTXsi+0is+3Ev4Oik5sPN2tPpsJ0ynUQ5v0C2h3qPa/Dn8WUI/owxZF6z3ha XRJmiNTJz6N2r8QCkazndBNNTJeiX4qL4Hcb4n48sS9c3HdKcGFM3JfHDZlBvbTSdE EM05ZBM3BcVL+E/FjfCR52ZKgJbcdMcfZkBP5p10= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Fri, 9 Oct 2020 10:57:25 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87blhb7tqa.fsf@fastmail.fm> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ARERc85DJxj/IrgkFRFrJGXglemjZYXVP6/v/yn2O8im5rnTmSo9ttuNIzs+4SW7oI7Rl lzcoFpbo0luuX2fR77cTqkNPLZsWA1CgClFqAGm/SgLdm3mfUoO2LyhkT/Q1F04ycyigMVzh0nCt dtpozDHCajTlZyxOdWz39g1r6V1+RwJs60TMZjEr35Sqeq82vdpkjr/tqK+hQyllBtAKLRQVbcSn peeDj2uhiiDUJS9bGDKxIkQFdbR/pf5zmmpp3dMpLNSpDdKws8DxJNd+uGloyebM2NQy6zJ89lPm n4= X-UI-Out-Filterresults: notjunk:1;V03:K0:mRCLRqEnfck=:j4r+u4hCViQksvhH7T5zN9 EpR9o7n+1d8vHfJJIkJnVxJOHKCJIP27zzXERok/jXQcjhC90TvlwbU6rvkuMz3Tz31yv+eTC nAY12arJhvnPUo4GM6gXRjyOuQNvH76LFIyl0fZSR2S2dXGODsB7X1/Kdb80aZjM9K7qf6JP/ ra54PmJmsWJLYf7oiyTYR/bO+Fa8Jg0GRytnLQpb3hereGVFMKx21tQ5Jyc9/zDb+evbQSSXT XQp4rDnPt2Q9OJN1Zhb3eblqnfbx/lDe0vRytzjkSTdjYDT25bEfn9vy772aObZyKrHsbGiYq FMCbpHlVbZPu42TXLQg5fnDD4lDl9sujdukQFKE4OaQcoaa0DvaxDH/ce2rdJ1CmEXIkWLy1q ETIGYH9O3GyixTgd8vkBEfLV44XMhlunUdst+pZ7jGGUTLv5aASLHwnsA10fPZkudbtUjCK3c U3yOJ1E3Bmw5vjwXyNsDmK48k9F9GjLv/9MT8x0Km19F+yKhpdS9TXdeX8e2p5mu3llcKHP/r p8WduA+M9yeMfux1XWQmdewq2wvK581fyB/RtSTz0XBbFl4KksbGc5XJM+aHWvTSlvo7xHkCm iqPQVhSBR345Ff0oFw4gtZc+WiH4VwtuAeV7QeXRHh0yM9qF0KBsZnMGqW2eljHRV8Q9WrUO2 BhS5/nwd2AyKhNmSROxh64gVyVbmEKsIIRVZEZxuakGECmQ== Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/09 04:57:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:124393 Archived-At: 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. Regards Christopher =2D------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy > Sent: Friday, October 09, 2020 at 9:18 AM > From: "Joost Kremers" > To: "Christopher Dimech" > Cc: moasenwood@zoho.eu, help-gnu-emacs@gnu.org > Subject: Re: Define interactive function with arguments > > > On Fri, Oct 09 2020, Christopher Dimech wrote: > > Is the following code the way to write user defined functions > > with arguments? > > > > ( defun Transpose-Paragraphs-Arg (arg) > > "Transfer paragraph backward" > > (interactive) > > (transpose-paragraphs arg) > > ) > > With all due respect, you should really read the Emacs Lisp Intro, it an= swers > this and all (or at least most) other questions you've posted. > > In Emacs, press `C-h i m Emacs Lisp Intro RET` and start reading. Or, if= you > prefer online: > > https://www.gnu.org/software/emacs/manual/html_node/eintr/index.html > > Once you've mastered the introduction, you'll find more info in the Elis= p > manual: > > C-h i m Elisp RET > > or > > https://www.gnu.org/software/emacs/manual/html_node/elisp/ > > HTH > > -- > Joost Kremers > Life has its moments >