Hi,
If I send a function that generates a warning to the inferior lisp process, slime gives this error message:
error in process filter: Wrong number of arguments: (lambda (f startval l) "reduce the list l by the binary function f. Use start value startval (cf MacLennnan p. 396)" (cond ((null l) startval) (t (apply f (list (car l) (reduce f startval (cdr l))))))), 4
For example, if the function is
(defun foo (bar) nil)
and I press C-c C-c, I get the error message (because of the cmucl warning that bar is not used). Am I doing something wrong? I am a Lisp newbie.
Versions:
ii cmucl 19d-20061116-1 The CMUCL lisp compiler and development syst ii emacs21 21.4a+1-5 The GNU Emacs editor ii slime 20061201-2 Superior LISP Interaction Mode for Emacs
Thanks,
Tamas
Tamas K Papp tpapp@Princeton.EDU writes:
Hi,
If I send a function that generates a warning to the inferior lisp process, slime gives this error message:
error in process filter: Wrong number of arguments: (lambda (f startval l) "reduce the list l by the binary function f. Use start value startval (cf MacLennnan p. 396)" (cond ((null l) startval) (t (apply f (list (car l) (reduce f startval (cdr l))))))), 4
For example, if the function is
(defun foo (bar) nil)
and I press C-c C-c, I get the error message (because of the cmucl warning that bar is not used). Am I doing something wrong? I am a Lisp newbie.
i can't repeat this (emacs 21.4 and latest slime). can you try upgrading to slime cvs first? if the problem persists can you send the copy of the emacs backtrace and the contents of *slime-events*?
On Sun, Apr 08, 2007 at 04:10:53PM +0200, Marco Baringer wrote:
Hi Marco,
Sorry for the late reply.
Tamas K Papp tpapp@Princeton.EDU writes:
Hi,
If I send a function that generates a warning to the inferior lisp process, slime gives this error message:
error in process filter: Wrong number of arguments: (lambda (f startval l) "reduce the list l by the binary function f. Use start value startval (cf MacLennnan p. 396)" (cond ((null l) startval) (t (apply f (list (car l) (reduce f startval (cdr l))))))), 4
For example, if the function is
(defun foo (bar) nil)
and I press C-c C-c, I get the error message (because of the cmucl warning that bar is not used). Am I doing something wrong? I am a Lisp newbie.
i can't repeat this (emacs 21.4 and latest slime). can you try upgrading to slime cvs first? if the problem persists can you send the copy of the emacs backtrace and the contents of *slime-events*?
I have tried the June 20th slime tarball and the error is still here, I attached the backtrace and *slime-events*.
Tamas
* Tamas K Papp [2007-07-05 16:11+0200] writes:
I have tried the June 20th slime tarball and the error is still here, I attached the backtrace and *slime-events*.
Tamas
Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (f startval l) "reduce the list l by the binary function f. Use start value startval (cf MacLennnan p. 396)" (cond ((null l) startval) (t (apply f (list (car l) (reduce f startval (cdr l))))))) 4) reduce(slime-most-severe ((:message "--> PROGN EVAL-WHEN \n==>\n
Apparently you have redefined the function reduce (in Emacs). Give your version a different name, like my-reduce, to avoid the name clash. You can type C-h f reduce RET and Emacs will probably show (among other things) the filename where it is defined.
Helmut.
On Fri, Jul 06, 2007 at 01:06:34PM +0200, Helmut Eller wrote:
- Tamas K Papp [2007-07-05 16:11+0200] writes:
I have tried the June 20th slime tarball and the error is still here, I attached the backtrace and *slime-events*.
Tamas
Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (f startval l) "reduce the list l by the binary function f. Use start value startval (cf MacLennnan p. 396)" (cond ((null l) startval) (t (apply f (list (car l) (reduce f startval (cdr l))))))) 4) reduce(slime-most-severe ((:message "--> PROGN EVAL-WHEN \n==>\n
Apparently you have redefined the function reduce (in Emacs). Give your version a different name, like my-reduce, to avoid the name clash. You can type C-h f reduce RET and Emacs will probably show (among other things) the filename where it is defined.
Hi Helmut,
I found that reduce was redefined in LAML (Scheme-based HTML generating tool), commenting it out solved the problem.
Thanks,
Tamas