[slime-devel] emacs complains about 'package' variable

Helmut Eller e9626484 at stud3.tuwien.ac.at
Sun Jan 18 21:52:24 UTC 2004


Janis Dzerins <jdz at dir.lv> writes:

> ---8<---cut-here---8<---
> ;;; -*- mode: LISP; package: FOO -*-

I just fixed this interesting bug.  The code in question looks like
this:

 (defun slime-eval-with-transcript (form package &optional fn)
   (with-current-buffer (slime-output-buffer)
      (slime-eval-async form package  ...

PACKAGE is unbound inside the with-current-buffer form, because
package is a buffer local variable and the local binding is not in
effect in the other buffer.  Isn't this funny?  I wonder how many
people write code like the above and what would happen with a file
specification like:

  ;;; -*- mode: LISP; string: FOO; buffer: FOO; list FOO ....


Helmut.






More information about the slime-devel mailing list