unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu
Subject: Re: Define interactive function with arguments
Date: Fri, 9 Oct 2020 10:57:25 +0200	[thread overview]
Message-ID: <trinity-984e2b18-a840-4ce1-8b9d-de0fc3ab0098-1602233844970@3c-app-mailcom-bs09> (raw)
In-Reply-To: <87blhb7tqa.fsf@fastmail.fm>

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

--------------------
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" <joostkremers@fastmail.fm>
> To: "Christopher Dimech" <dimech@gmx.com>
> 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 answers
> 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 Elisp
> 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
>



  reply	other threads:[~2020-10-09  8:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-08 23:15 Define interactive function with arguments Christopher Dimech
2020-10-08 23:41 ` Stefan Monnier
2020-10-08 23:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-09  6:38   ` Christopher Dimech
2020-10-09  7:18     ` Joost Kremers
2020-10-09  8:57       ` Christopher Dimech [this message]
2020-10-09  9:22         ` Joost Kremers
2020-10-09  9:52           ` Christopher Dimech
2020-10-09 14:03             ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-09 14:01         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-09 14:24           ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-984e2b18-a840-4ce1-8b9d-de0fc3ab0098-1602233844970@3c-app-mailcom-bs09 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joostkremers@fastmail.fm \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).