@end defmac
@include fun-sb-ext-package-local-nicknames.texinfo
-@include fun-sb-ext-package-locally-nicknamed-by.texinfo
+@include fun-sb-ext-package-locally-nicknamed-by-list.texinfo
@include fun-sb-ext-add-package-local-nickname.texinfo
@include fun-sb-ext-remove-package-local-nickname.texinfo
"ADD-PACKAGE-LOCAL-NICKNAME"
"REMOVE-PACKAGE-LOCAL-NICKNAME"
"PACKAGE-LOCAL-NICKNAMES"
- "PACKAGE-LOCALLY-NICKNAMED-BY"
+ "PACKAGE-LOCALLY-NICKNAMED-BY-LIST"
;; behaviour on DEFPACKAGE variance
"*ON-PACKAGE-VARIANCE*"
local nickname is used instead of the real name in order to preserve
print-read consistency.
-See also: ADD-PACKAGE-LOCAL-NICKNAME, PACKAGE-LOCALLY-NICKNAMED-BY,
+See also: ADD-PACKAGE-LOCAL-NICKNAME, PACKAGE-LOCALLY-NICKNAMED-BY-LIST,
REMOVE-PACKAGE-LOCAL-NICKNAME, and the DEFPACKAGE option :LOCAL-NICKNAMES.
Experimental: interface subject to change."
(package-%local-nicknames
(find-undeleted-package-or-lose package-designator))))
-(defun package-locally-nicknamed-by (package-designator)
+(defun package-locally-nicknamed-by-list (package-designator)
"Returns a list of packages which have a local nickname for the designated
package.
local nickname is used instead of the real name in order to preserve
print-read consistency.
-See also: PACKAGE-LOCAL-NICKNAMES, PACKAGE-LOCALLY-NICKNAMED-BY,
+See also: PACKAGE-LOCAL-NICKNAMES, PACKAGE-LOCALLY-NICKNAMED-BY-LIST,
REMOVE-PACKAGE-LOCAL-NICKNAME, and the DEFPACKAGE option :LOCAL-NICKNAMES.
Experimental: interface subject to change."
removed, and NIL otherwise.
See also: ADD-PACKAGE-LOCAL-NICKNAME, PACKAGE-LOCAL-NICKNAMES,
-PACKAGE-LOCALLY-NICKNAMED-BY, and the DEFPACKAGE option :LOCAL-NICKNAMES.
+PACKAGE-LOCALLY-NICKNAMED-BY-LIST, and the DEFPACKAGE option :LOCAL-NICKNAMES.
Experimental: interface subject to change."
(let* ((nick (string old-nickname))
(setf p1 (make-package "LOCALLY-NICKNAMES-OTHERS")
p2 (make-package "LOCALLY-NICKNAMED-BY-OTHERS"))
(add-package-local-nickname :foo p2 p1)
- (assert (package-locally-nicknamed-by p2))
+ (assert (equal (list p1) (package-locally-nicknamed-by-list p2)))
(delete-package p1)
- (assert (not (package-locally-nicknamed-by p2))))
+ (assert (not (package-locally-nicknamed-by-list p2))))
(when p1 (delete-package p1))
(when p2 (delete-package p2)))))