Questions tagged [common-lisp]

Editing Common Lisp code and working with inferior Common Lisp read-eval-print loops. Note that Emacs's Lisp dialect is not Common Lisp; for Emacs Lisp, use the tag [elisp].

Common Lisp is a dialect of Lisp that was standardized by ANSI. Note that Emacs's extension language, Emacs Lisp, is not a dialect of Common Lisp; for questions about the Emacs Lisp dialect, use the tag . Emacs has limited support for some Common Lisp features in the cl-lib library since Emacs 24.3, and in the cl library in earlier versions.

ANSI Common Lisp, the programmable programming language.

We have a Wikipedia page on Common Lisp, an online version of the ANSI Common Lisp standard and a list of recommended Common Lisp implementations. Many Lisp specific mailing lists are archived at Gmane.

Popular Common Lisp implementations

See also

42 questions
10
votes
2 answers

cl-destructuring-bind on partial plist?

This causes an error (cl-destructuring-bind (&key a b) '(:a "foo" :b 13 :c "bar") (list a b)) because the :c key/value is not handled in the pattern match. Often I find myself wanting to extract some subset of keys/values from a…
fommil
  • 1,780
  • 11
  • 25
3
votes
1 answer

How to use cl-labels?

I am trying to use cl-labels, but i have run into errors i do not understand. Here is elisp code i am using: (defun nthelt (N ARRAY) "Behaves like nth but for arrays" (if (and (>= N 0) (< N (length ARRAY))) (elt ARRAY N) …
Srv19
  • 489
  • 4
  • 15
1
vote
1 answer

What's the purpose of `cl-lib` in emacs?

Why does emacs need the cl-lib Common Lisp compatibility? What is it used for?
Kolt Penny
  • 11
  • 1
1
vote
0 answers

Is there a locate-library equivalent for Common Lisp files?

When editing Common Lisp code, is there an Emacs command that behaves like locate-library that would take a name and attempt to find the location for a Common Lisp file with that name? Looking at Slime and SLY manuals I did not find that feature. …
PRouleau
  • 796
  • 3
  • 10
1
vote
1 answer

Error while trying to set a slot of a cl-struct

Using Emacs 25.1.50.1 To set the slot of a structure, I believe the elisp manual says to use setq along with the accessor function for the slot. Though I am having trouble. The following code results in an error on the fourth line. (require…
lookyhooky
  • 959
  • 7
  • 18
0
votes
1 answer

Direx not working, cl-call-next-method only inside primary and around methods

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. Direx, using the latest version of Direx from MELPA Windows 7 x64 bit. Situation: I would like to try the package Direx, but the documentation…
ReneFroger
  • 3,850
  • 23
  • 66