Raymond Toy pushed to branch issue-499-defmacro-restart-for-locked-packages at cmucl / cmucl Commits: 77ffdd85 by Raymond Toy at 2026-05-01T14:25:07-07:00 Don't signal error if *enable-package-locked-errors* is nil We were signaling errors (when building cmucl) about redefining macros in a locked package even though *enable-package-locked-errors* was NIL. Need to check for that, carefully, because it might not be bound when building cmucl. - - - - - 1 changed file: - src/code/macros.lisp Changes: ===================================== src/code/macros.lisp ===================================== @@ -140,7 +140,10 @@ (defun c::%%defmacro (name definition doc) (let ((package (symbol-package name))) (when package - (when (ext:package-definition-lock package) + (when (and (ext:package-definition-lock package) + ;; Bootstrap. This might not be bound yet. + (boundp 'lisp::*enable-package-locked-errors) + lisp::*enable-package-locked-errors) (restart-case (error 'lisp::package-locked-error :package package View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/77ffdd85f60e2f3055f567db... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/77ffdd85f60e2f3055f567db... You're receiving this email because of your account on gitlab.common-lisp.net. Manage all notifications: https://gitlab.common-lisp.net/-/profile/notifications | Help: https://gitlab.common-lisp.net/help