unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* pretty printing lisp forms
@ 2004-02-05  1:28 Joe Corneli
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Corneli @ 2004-02-05  1:28 UTC (permalink / raw)


I found the function cl-prettyprint, but it doesn't seem to be
as actively inserting new lines and tabs as I'd like.  Contrast

;; cl-prettyprint

(((classes AI (PL assignment-one read-papers) KRR)
  (projects logic FEM HDM (hacking-emacs todl-mode tex-mode) Inform)
  (appointments thursday-at-5:45 friday-at-7)))

;; my version

(((classes AI
           (PL assignment-one
               read-papers)
           KRR)
  (projects logic
            FEM
            HDM
            (hacking-emacs todl-mode
                           tex-mode)
            Inform)
  (appointments thursday-at-5:45
                friday-at-7)))

Are there any more flexible routines out there for pretty printing?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pretty printing lisp forms
       [not found] <mailman.1930.1075944559.928.help-gnu-emacs@gnu.org>
@ 2004-02-05 17:32 ` Johan Bockgård
  2004-02-05 19:59 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Bockgård @ 2004-02-05 17:32 UTC (permalink / raw)


Joe Corneli <jcorneli@math.utexas.edu> writes:

> ;; cl-prettyprint
>
> (((classes AI (PL assignment-one read-papers) KRR)
>   (projects logic FEM HDM (hacking-emacs todl-mode tex-mode) Inform)
>   (appointments thursday-at-5:45 friday-at-7)))
>
> ;; my version
>
> (((classes AI
>            (PL assignment-one
>                read-papers)
>            KRR)
>   (projects logic
>             FEM
>             HDM
>             (hacking-emacs todl-mode
>                            tex-mode)
>             Inform)
>   (appointments thursday-at-5:45
>                 friday-at-7)))

;; pp

(((classes AI
	   (PL assignment-one read-papers)
	   KRR)
  (projects logic FEM HDM
	    (hacking-emacs todl-mode tex-mode)
	    Inform)
  (appointments thursday-at-5:45 friday-at-7)))

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pretty printing lisp forms
       [not found] <mailman.1930.1075944559.928.help-gnu-emacs@gnu.org>
  2004-02-05 17:32 ` pretty printing lisp forms Johan Bockgård
@ 2004-02-05 19:59 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2004-02-05 19:59 UTC (permalink / raw)


Joe Corneli wrote:

> I found the function cl-prettyprint, but it doesn't seem to be
> as actively inserting new lines and tabs as I'd like.  Contrast
> 
> ;; cl-prettyprint
> 
> (((classes AI (PL assignment-one read-papers) KRR)
>   (projects logic FEM HDM (hacking-emacs todl-mode tex-mode) Inform)
>   (appointments thursday-at-5:45 friday-at-7)))
> 
> ;; my version
> 
> (((classes AI
>            (PL assignment-one
>                read-papers)
>            KRR)
>   (projects logic
>             FEM
>             HDM
>             (hacking-emacs todl-mode
>                            tex-mode)
>             Inform)
>   (appointments thursday-at-5:45
>                 friday-at-7)))
> 
> Are there any more flexible routines out there for pretty printing?

pp seems to do what you want.


-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-05 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1930.1075944559.928.help-gnu-emacs@gnu.org>
2004-02-05 17:32 ` pretty printing lisp forms Johan Bockgård
2004-02-05 19:59 ` Kevin Rodgers
2004-02-05  1:28 Joe Corneli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).