Search found 148 matches

by Paul Donnelly
Sun Jan 31, 2010 2:01 pm
Forum: Common Lisp
Topic: Are ALL S-Expressions really ordered pairs?
Replies: 7
Views: 7027

Re: Are ALL S-Expressions really ordered pairs?

yougene wrote:I still don't know what a lisp form actually is, but I think I get the big picture.
It's any object meant to be evalutated. Lists, symbols, strings, whatever. You can think of it as any object making up valid Lisp code.
by Paul Donnelly
Sat Jan 30, 2010 6:40 pm
Forum: Common Lisp
Topic: Why have the let function when you already have setf?
Replies: 16
Views: 17368

Re: Why have the let function when you already have setf?

Could you expand on this? Why is let stateless and setf isn't? Why have a variable at all if you're not going to modify it? Perhaps you've completed a long computation and need to use the result multiple times. You don't want to recompute each time you need its value. Or perhaps you've called a fun...
by Paul Donnelly
Wed Jan 20, 2010 10:59 pm
Forum: Common Lisp
Topic: I dont get Macros
Replies: 31
Views: 40904

Re: I dont get Macros

1) Macros dont eval their arguments 2) Macros return List-Code which is immeaditly evaluated I dont see any possibilities for the first point to have a effect No, this is great. You can transform your input however you like to automate writing basically any code you can dream up. If the arguments w...
by Paul Donnelly
Wed Jan 13, 2010 10:23 am
Forum: Emacs
Topic: How to start programming in LISP
Replies: 6
Views: 20569

Re: How to start programming in LISP

I am trying the file opening in emacs LISP with below mentioned code: (let ((in (open "/home/administrator/test.el"))) (format t "~a~%" (read-line in)) (close in)) This isn't Emacs Lisp, this is Common Lisp. Where did you type this? Have you got SLIME set up properly? If you hav...
by Paul Donnelly
Fri Jan 01, 2010 6:25 pm
Forum: Emacs Lisp
Topic: name of local mode's keymap
Replies: 6
Views: 16519

Re: name of local mode's keymap

Paul, As it suggests in the manual, most local modes have named keymaps: http://www.gnu.org/software/emacs/manual/html_node/emacs/Local-Keymaps.html Keymap objects are what I said are nameless. A “named keymap” is, as far as I can tell, just a variable storing a keymap object. You might grep th...
by Paul Donnelly
Thu Dec 31, 2009 7:28 pm
Forum: Emacs Lisp
Topic: name of local mode's keymap
Replies: 6
Views: 16519

Re: name of local mode's keymap

@gugamilare. I don't want to set a global key. I only want my functions to be part of the local mode map for mew (my mailing program). As I just shared above I found out how to do it. However, I am still clueless where to find the name of a given mode's keymap :?: Looking at LOCAL-SET-KEY's source,...
by Paul Donnelly
Sun Dec 20, 2009 1:17 pm
Forum: Common Lisp
Topic: Some direction help for a newcomer
Replies: 7
Views: 8121

Re: Some direction help for a newcomer

Hallo! I am not a programmer but a writer. I am looking for a language with which I can develop some applications to "massage" texts which I write. I will use the applications for marking text with syantax coloring, segmenting sentences into clauses and thence into phrases. Good luck, tha...
by Paul Donnelly
Sun Dec 20, 2009 12:42 pm
Forum: Common Lisp
Topic: Distribution of LISP applications …
Replies: 12
Views: 13065

Re: Distribution of LISP applications …

Thank you, Ramarren . But to be honest, I didn't understand a word you've said. It seams LISP doesn't offer proper tools to secure a LISP project. Right? Trying to secure your program from user tampering is pretty hopeless. There was a discussion on c.l.l not long ago after someone cracked the tria...
by Paul Donnelly
Thu Nov 26, 2009 11:36 am
Forum: Emacs Lisp
Topic: buffer name as variable
Replies: 4
Views: 11031

Re: buffer name as variable

rubing wrote:Yes, those are some needed changes, but the function still does not work. If for example I type:

(buf-exists *scratch*)

and try to evaluate, I get the error (void-variable *scratch*)
That's because *scratch* doesn't exist. Put it in quotes.
by Paul Donnelly
Wed Nov 25, 2009 2:06 pm
Forum: Emacs Lisp
Topic: HOW TO RUN A LISP PRORGRAM IN EMACS?
Replies: 1
Views: 6156

Re: HOW TO RUN A LISP PRORGRAM IN EMACS?

It's Emacs Lisp program? Probably you want to start by loading the file then running some command or function in it. SHOUTING IS PROBABLY NOT NECESSARY. Ask your outside source if you have no documentation.