...so that it can always be used to restore the original.
Fixes lp#678409.
Also add missing NEWS entry for last commit.
* enhancement: largefile support on Solaris.
* enhancement: SB-PROFILE:REPORT now supports :LIMIT and :PRINT-NO-CALL-LIST
arguments (lp#710017)
+ * enhancement: forward referenced functions no longer cause STYLE-WARNINGS
+ when running under --script. (lp#677779)
* optimization: ERROR and CERROR are approximately 5 times faster.
* optimization: optimized constructors are used for MAKE-INSTANCE of classes
with applicable non-standard (SETF SLOT-VALUE-USING-CLASS),
* bug fix: RUN-PROGRAM :PTY option was racy on OpenBSD. (lp#669485)
* bug fix: UNINTERN takes a symbol, not a symbol designator -- could previously
unintern the wrong symbol with the same name. (lp#693796)
+ * bug fix: COPY-PPRINT-DISPATCH always has access to a pristine table,
+ making it possible to restore the initial table if it has been messed up.
+ (lp#678409)
changes in sbcl-1.0.45 relative to sbcl-1.0.44:
* enhancement: ~/ and ~user/ are treated specially in pathnames.
(setf *standard-pprint-dispatch-table*
(copy-pprint-dispatch *initial-pprint-dispatch-table*))
- (setf *print-pprint-dispatch* *initial-pprint-dispatch-table*)
+ (setf *print-pprint-dispatch*
+ (copy-pprint-dispatch *initial-pprint-dispatch-table*))
(setf *print-pretty* t))
(pprint-newline :mandatory s)))
n)))))
+(with-test (:name :can-restore-orig-pprint-dispatch-table)
+ (let* ((orig (pprint-dispatch 'some-symbol))
+ (alt (lambda (&rest args) (apply orig args))))
+ (set-pprint-dispatch 'symbol alt)
+ (assert (eq alt (pprint-dispatch 'some-symbol)))
+ (setf *print-pprint-dispatch* (copy-pprint-dispatch nil))
+ (assert (eq orig (pprint-dispatch 'some-symbol)))
+ (assert (not (eq alt orig)))))
+
\f
;;; success
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.45.30"
+"1.0.45.31"