[cl-typesetting-devel] patch for double comment bug in pprint.lisp

Peter Seibel peter at javamonkey.com
Sun Sep 12 20:31:59 UTC 2004


Peter Seibel <peter at javamonkey.com> writes:

> This patch fixes a bug in pprint.lisp that causes it to duplicate
> end-of-line comments.

Ah. Never mind that patch. It fixes the bug but adds a new one. Maybe
someone who understands what cleaned-line is for can fix it the right
way. A quick and dirty fix was to change (subseq line start) to
(subseq line start (position #\; line)) but that's sort of kludgy.

-Peter

>
> -Peter
>
> Index: pprint.lisp
> ===================================================================
> --- pprint.lisp	(revision 59)
> +++ pprint.lisp	(working copy)
> @@ -76,7 +76,7 @@
>              (setf start end-tok))
>        (with-text-compilation 
>          (when (< start length)
> -          (verbatim (subseq line start)))
> +          (verbatim (subseq cleaned-line start)))
>          (with-style (:font (first *pp-comment-decoration*)
>                             :font-size *pp-font-size*
>                             :color (second *pp-comment-decoration*))
>
> -- 
> Peter Seibel                                      peter at javamonkey.com
>
>          Lisp is the red pill. -- John Fraser, comp.lang.lisp
>
> _______________________________________________
> cl-typesetting-devel site list
> cl-typesetting-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-typesetting-devel
>

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp




More information about the cl-typesetting-devel mailing list