🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189439

please help this idiot

#189439
From: smouldering dog
Date: Tue, 19 Feb 1991 20:26
20 lines
1278 bytes
I am writing some lisp hacks in emacs lisp and I won't handle this
code: 
(defun make-length-list (coord)
 (when coord
   (cons (- (cadar coord) (caar coord)) 
         (make-length-list (cdr coord)))))

when cadar and car are not recoginzed by elisp.  make-length-list
reads a series of pairs ((100 200) (300 450) (500 700)) and is
supposed to return a cons-list of their difference (100 150 200).  I
like lisp but obviously I am not very clever.

	
--

	owen white		(owhite@nmsu.edu)

-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-*-=-=-*-=-
               got my head on a pole (for better reception)
-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-*-=-=-*-=-
Technical Details
Message-ID: <OWHITE.91Feb19132614@haywire.nmsu.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!owhite

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,2348d45880e1affd,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-20 09:17:10 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!owhite
From: owhite@nmsu.edu (smouldering dog)
Newsgroups: gnu.emacs.help
Subject: please help this idiot
Message-ID: <OWHITE.91Feb19132614@haywire.nmsu.edu>
Date: 19 Feb 91 20:26:14 GMT
Sender: news@NMSU.Edu
Distribution: gnu
Organization: Computing Research Lab
Lines: 20