Commit 5cddb7a2 by Robert Goldman

Merge branch 'preserve-readtable' into 'master'

Preserve syntax tables in perform define-op

See merge request !85
parents 9a4203dc 4e75d4d0
......@@ -89,14 +89,16 @@
(assert (equal (coerce-name s) (primary-system-name s)))
(if-let ((pathname (first (input-files o s)))))
(let ((readtable *readtable*) ;; save outer syntax tables. TODO: proper syntax-control
(print-pprint-dispatch *print-pprint-dispatch*)))
(let ((*print-readably* nil)
;; Note that our backward-compatible *readtable* is
;; a global readtable that gets globally side-effected. Ouch.
;; Same for the *print-pprint-dispatch* table.
;; We should do something about that for ASDF3 if possible, or else ASDF4.
(*readtable* *readtable*)
(*print-pprint-dispatch* *print-pprint-dispatch*)
(*readtable* readtable) ;; restore inside syntax table
(*print-pprint-dispatch* print-pprint-dispatch)
(*package* (find-package :asdf-user))
;; resolve logical-pathnames so they won't wreak havoc in parsing namestrings.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment