From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get skills in elisp ?
Date: Mon, 25 May 2009 12:04:56 +0200 [thread overview]
Message-ID: <87r5ydcxbr.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 39c42ea3-0dc4-4364-a3b5-751b28b176b2@y7g2000yqa.googlegroups.com
Francis Moreau <francis.moro@gmail.com> writes:
Hi Francis,
> But now I got the main picture of the language but I would need some
> practice since the reference manual lack of examples before I feel
> confortable enough to start writing my own elisp scripts.
>
> Could anybody give me some direction at that point ?
As always in learning (programming) languages. Pick some elisp lib that
you use and try to understand how it works by looking at its code. Then
try to extend it if a functionality you'd love to have is not included.
> Also I would like to know how people debug their scripts? Are there
> any tricks?
For debugging the edebug facility is what you're looking for.
,----[ (info "(elisp)Edebug") ]
| Edebug is a source-level debugger for Emacs Lisp programs with which
| you can:
|
| * Step through evaluation, stopping before and after each expression.
|
| * Set conditional or unconditional breakpoints.
| [...]
`----
> For now I just write some forms and evaluate them with 'C-j'.
That's one possibility. Another good way is using a REPL. Have a look
at IELM (M-x ielm RET).
Bye,
Tassilo
next prev parent reply other threads:[~2009-05-25 10:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 7:30 How to get skills in elisp ? Francis Moreau
2009-05-25 8:17 ` Drew Adams
[not found] ` <mailman.7753.1243239425.31690.help-gnu-emacs@gnu.org>
2009-05-25 9:15 ` Francis Moreau
2009-05-25 10:22 ` Pascal J. Bourguignon
2009-05-25 11:50 ` Andreas Röhler
2009-05-25 12:42 ` Richard Riley
2009-05-25 13:51 ` Pascal J. Bourguignon
2009-05-25 14:18 ` Richard Riley
2009-05-26 7:58 ` Francis Moreau
2009-05-25 17:11 ` Drew Adams
[not found] ` <mailman.7774.1243271469.31690.help-gnu-emacs@gnu.org>
2009-05-25 19:41 ` Francis Moreau
2009-05-25 20:52 ` Drew Adams
2009-05-25 10:04 ` Tassilo Horn [this message]
2009-05-25 11:01 ` Pascal J. Bourguignon
2009-05-25 12:03 ` Andreas Röhler
2009-05-27 13:05 ` Thien-Thi Nguyen
-- strict thread matches above, loose matches on Subject: below --
2009-05-28 7:09 Benjamin Badgley
2009-05-28 15:55 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5ydcxbr.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.