help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: introduction to lisp


From: Emanuel Berg
Subject: Re: introduction to lisp
Date: Sun, 18 Jun 2017 12:03:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Jude DaShiell wrote:

> This material might be useful for lisp and
> those writing buster.js code. It might also be
> somewhat incorrect too.
>
> http://cjohansen.no/

A very ambitious article/project!

Here is the direct link:

    http://cjohansen.no/an-introduction-to-elisp/

Try byte-compiling the code! It will tell you
some things to improve, I think. But I don't
know since I get an error on line 24:

    (void-variable open-paren-pairs-count) in cond

When the byte-compiler is silent and the
program works there is a fair chance the
program is good.

Code style - consider replacing 'if X' with
`when' and 'if not X' with `unless' when there
isn't a second branch. Then there is no need
for explicit `progn's.

Also I would write

    (global-set-key (kbd "C-c C-d") 'buster-disable-test)

like this:

    (global-set-key "\C-c\C-d" #'buster-disable-test)

Keep it up!

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]