[slime-devel] Re: slime-apropos-package doesn't work with readtable-case = :invert

Harald Hanche-Olsen hanche at math.ntnu.no
Sun Feb 4 09:27:33 UTC 2007


In response to my suggestion, Helmut added the function unparse-name
and applied it in list-all-package-names.

Turns out it needs to be applied in swank:set-package too, or else a
push-directory followed by pop-directory won't work due to the wrong
case being used.

Patch:

--- swank.lisp	25 Jan 2007 00:36:00 +0100	1.458
+++ swank.lisp	04 Feb 2007 10:13:30 +0100	
@@ -2669,7 +2669,7 @@
 Return its name and the string to use in the prompt."
   (let ((p (parse-package package)))
     (setq *package* p)
-    (list (package-name p) (package-string-for-prompt p))))
+    (list (unparse-name (package-name p)) (package-string-for-prompt p))))
 
 (defun send-repl-results-to-emacs (values)
   (flet ((send (value)

But woe unto the person who does a push-package, changes his
readtable-case and then tries a pop-package.  8-)

- Harald



More information about the slime-devel mailing list