X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpprint.lisp;h=32df69b532c19a799dbc94484a7df4c2f435c80c;hb=84271f268f29364b57bfeb1b37642311eb8ab910;hp=d17ccfcafa4488e031c1814a1b5ee5a7a86e5283;hpb=2768ed83de59354b21ea61de3dea358c53d1ae05;p=sbcl.git diff --git a/src/code/pprint.lisp b/src/code/pprint.lisp index d17ccfc..32df69b 100644 --- a/src/code/pprint.lisp +++ b/src/code/pprint.lisp @@ -1020,6 +1020,15 @@ (defun pprint-lambda-list (stream lambda-list &rest noise) (declare (ignore noise)) + (when (and (consp lambda-list) + (member (car lambda-list) *backq-tokens*)) + ;; if this thing looks like a backquoty thing, then we don't want + ;; to destructure it, we want to output it straight away. [ this + ;; is the exception to the normal processing: if we did this + ;; generally we would find lambda lists such as (FUNCTION FOO) + ;; being printed as #'FOO ] -- CSR, 2003-12-07 + (output-object lambda-list stream) + (return-from pprint-lambda-list nil)) (pprint-logical-block (stream lambda-list :prefix "(" :suffix ")") (let ((state :required) (first t))