From 9bb48a97ace19bb5511d35094e1b75b949277f4c Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Sun, 26 Dec 2010 14:03:48 +0000 Subject: [PATCH] Unintern removes the wrong symbol. See https://bugs.launchpad.net/sbcl/+bug/693796. --- code/package.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/package.lisp b/code/package.lisp index e46b11c68..2d6f862b4 100644 --- a/code/package.lisp +++ b/code/package.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/package.lisp,v 1.80 2010/04/20 17:57:45 rtoy Rel $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/package.lisp,v 1.81 2010/12/26 14:03:48 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1444,8 +1444,8 @@ (remove symbol shadowing-symbols))) (multiple-value-bind (s w) (find-symbol name package) - (declare (ignore s)) - (cond ((or (eq w :internal) (eq w :external)) + (cond ((not (eq symbol s)) nil) + ((or (eq w :internal) (eq w :external)) (nuke-symbol (if (eq w :internal) (package-internal-symbols package) (package-external-symbols package)) -- GitLab