User Tools


Function RENAME-PACKAGE

Syntax

  • rename-package package new-name &optional new-nicknamespackage-object

Arguments and Values

Description

Replaces the name and nicknames of package.

The old name and all of the old nicknames of package are eliminated and are replaced by new-name and new-nicknames.

The consequences are undefined if new-name or any new-nickname conflicts with any existing package names.

Examples

(make-package 'temporary :nicknames '("TEMP"))

#<PACKAGE "TEMPORARY">

(rename-package 'temp 'ephemeral)

#<PACKAGE "EPHEMERAL">

(package-nicknames (find-package 'ephemeral))

NIL

(find-package 'temporary)

NIL

(rename-package 'ephemeral 'temporary '(temp fleeting))

#<PACKAGE "TEMPORARY">

(package-nicknames (find-package 'temp))

("TEMP" "FLEETING")

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

None.

\issue{PACKAGE-FUNCTION-CONSISTENCY:MORE-PERMISSIVE} \issue{RETURN-VALUES-UNSPECIFIED:SPECIFY}