Changeset 15303
- Timestamp:
- Apr 8, 2012, 2:04:47 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/source/level-1/l1-error-system.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-1/l1-error-system.lisp
r15302 r15303 662 662 associated with that condition (or with no condition) will be 663 663 returned." 664 (dolist (cluster %restarts%) 665 (dolist (restart cluster) 666 (when (and (or (eq restart name) (eq (restart-name restart) name)) 667 (applicable-restart-p restart condition)) 668 (return-from find-restart restart))))) 664 (if (typep name 'restart) 665 (dolist (cluster %restarts%) 666 (dolist (restart cluster) 667 (if (eq restart name) 668 (return-from find-restart restart)))) 669 (dolist (cluster %restarts%) 670 (dolist (restart cluster) 671 (when (and (eq (restart-name restart) name) 672 (applicable-restart-p restart condition)) 673 (return-from find-restart restart)))))) 669 674 670 675 (defun %active-restart (name) … … 672 677 (dolist (restart cluster) 673 678 (when (or (eq restart name) 674 (let* ((rname (%restart-name restart)) 675 (rtest (%restart-test restart))) 679 (let* ((rname (%restart-name restart))) 676 680 (and (eq rname name) 677 ( or (null rtest) (funcall rtest nil)))))681 (applicable-restart-p restart nil)))) 678 682 (return-from %active-restart (values restart cluster))))) 679 683 (error 'inactive-restart :restart-name name)) … … 704 708 necessary arguments. If the argument restart is not a restart or a 705 709 currently active non-NIL restart name, then a CONTROL-ERROR is signalled." 706 (let* ((restart ( find-restart restart)))710 (let* ((restart (%active-restart restart))) 707 711 (format *error-output* "~&Invoking restart: ~a~&" restart) 708 712 (let* ((argfn (%restart-interactive restart))
Note:
See TracChangeset
for help on using the changeset viewer.
