Questions tagged [lisp]

Lisp is a (family of) general purpose programming language(s), based on the lambda calculus, and with the ability to manipulate source code as a data structure.

Introduction

The name LISP derives from "LISt Processing". It was originally created as a practical mathematical notation for computer programs. See wikipedia for more information.

Hello World Program in Lisp

;;; Hello World in Common Lisp

(defun helloworld ()
  (print "Hello World!"))

Popular dialects

Free Lisp Programming Books

15 questions
12
votes
2 answers

Is there a way to print the definition of an existing function in Emacs?

I want to see the definition of an existing function in Emacs. Is this possible? I've tried C-h d function-name RET, but it only returns the documentation string for the function, not the actual function itself. I'm thinking something similar to…
4
votes
2 answers

How to toggle between .cpp and .hpp that are not in the same directory?

Is there an Emacs function that toggles between .cpp and .hpp files that are not in the same directories? I know there is toggle-source.el, but it apparently does not handle the case where .cpp and .hpp are in different directories. But my…
dehmann
  • 2,333
3
votes
5 answers

How to launch emacs GUI on OS X

Does anyone know any tricks for launching emacs with GUI on OS X with the standard command emacs? I'm a ten year Linux user and thought I would buy a Mac for a while to stay diverse. I can open files via emacs now with open file.txt, but that wont…
2
votes
1 answer

Trouble with emacs .el file (Searching for program; permission denied) error

I have emacs version 24.3.1 (i386-mingw-nt6.2.9200) installed on a Windows 8.1 machine. I am trying to use the ledger.el distributed with John Weigley's ledger (version 2.6.1). While the lisp file loads into emacs and seems to function (I have the…
2
votes
1 answer

Go to definition in different file in vim

I'm using slimv to create a small common lisp project. I would like a way to jump to the definition of a function I defined in another file. Is there a way to do that?'
Held
  • 35
2
votes
2 answers

Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'") when using cl- functions

I recently moved computers and upgraded to Emacs 24.3 (from 24.2) yesterday. Since then, I have been receiving what is essentially a stack-overflow error: Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'") …
Sean Allred
  • 1,372
2
votes
1 answer

configuring slime in emacs

I am in the process of configuring slime for emacs. So far I have read about basic functionality for common lisp such as C-c C-q which invokes the command slime-close-parens-at-point which places the proper number of parens where your mouse is.…
2
votes
1 answer

how to bind a key to more than one operation in emacs

I've been using emacs for years, but I'm relatively new to customizing lisp (beyond plugging in lines from other emacs scripts / package installation instructions). I programmed scheme before, so I'm somewhat familiar, but that was also a long time…
daj
  • 21
2
votes
1 answer

Autocad startup LISP code broken after network reset

I have a network with a few different drives on it with AutoCAD installed on my local. I have a startup LISP routine for AutoCAD that loads a variety of other .lsp files, which are called by custom commands in AutoCAD, located in various drives…
John
  • 21
1
vote
2 answers

clojure repl emacs and slime

I have slime configured for emacs and I can run many different implementations of common lisp. What about running a language like clojure? I tested this out by modifying my .emacs file: (add-to-list 'load-path "~/slime/") ; your SLIME directory …
1
vote
1 answer

How to get a prompt in SLIME?

I just installed SLIME in Emacs, but sometimes when I type at the text, I get an error, and the debugger comes up, and I quit out of it, but when I get back to the REPL I can't evaluate anything. I can't get the prompt back, either. I would like…
Kyle L
  • 2,379
1
vote
1 answer

Eclipse Lisp Plug-in does not evaluate on mac

HiI am using the Dandelion Eclipse Lisp Plug-in (http://sourceforge.net/projects/dandelion-ecl/) on Mac OSX. I have a windows PC and this plug-in is running ok on it. But when I am using it to evaluate my code on my mac, it prompted me: "Starting…
Allan Jiang
  • 173
  • 1
  • 1
  • 6
0
votes
1 answer

MIT/GNU Scheme Won't Start

I built MIT Scheme from source using GCC on Ubuntu 14.04, but attempting to run it gives me an error mit-scheme: can't find a readable default for option --band. searched for file all.com in these directories: /home/tay/Downloads How do I…
0
votes
1 answer

SBCL Delete Key on Mac Giving ^?

I am using SBCL Lisp on a Mac Pro Mavericks. When I run the sbcl command and drop into the interpreter the delete key prints ^? instead of deleting the last character. Does anyone have a remedy for this issue?
ZenBalance
  • 2,079
0
votes
2 answers

A simple server written in sbcl with uscoket library does not work on AWS instance

The title is explicit. Reproductible steps * Launch an Ubuntu instance on AWS with HTTP rule on port 80 * Install sbcl sudo apt install sbcl -y * Install usocket library for root See next step to understand why I am doing this as root curl -O…