mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-24 05:21:20 -08:00
find-package: look first for local package nicknames
This commit is contained in:
parent
9c2aef5599
commit
57d588116a
1 changed files with 7 additions and 0 deletions
|
|
@ -312,6 +312,13 @@ ecl_find_package_nolock(cl_object name)
|
|||
if (ECL_PACKAGEP(name))
|
||||
return name;
|
||||
name = cl_string(name);
|
||||
|
||||
p = ecl_symbol_value(@'*package*');
|
||||
if (ECL_PACKAGEP(p)) {
|
||||
p = ecl_assoc(name, p->pack.local_nicknames);
|
||||
if (!Null(p)) return p;
|
||||
}
|
||||
|
||||
l = cl_core.packages;
|
||||
loop_for_on_unsafe(l) {
|
||||
p = ECL_CONS_CAR(l);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue