GNU bug report logs - #63861
[PATCH] pp.el: New "pretty printing" code

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 2 Jun 2023 22:52:02 UTC

Severity: normal

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: 63861 <at> debbugs.gnu.org
Cc: eliz <at> gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#63861: [PATCH] pp.el: New "pretty printing" code
Date: Mon, 05 Jun 2023 19:12:49 +0300
> FWIW, the change affects other functionality that uses `pp`, such as
> `C-h v`.  While working on (previous versions of) this code, I've had
> performance problems show up during the generation of `emoji-labels.el`.

When tried on emoji-labels.el, at the end it failed with

  (scan-error "Containing expression ends prematurely" 255866 255867)

>> Also, I think this warrants a NEWS entry and should be documented in
>> the ELisp manual.
>
> Definitely for NEWS, yes.  For the ELisp manual, currently we don't
> document `pp-buffer`, the closest I see is `indent-pp-sexp` (in
> `programs.texi`).

For indent-pp-sexp with a prefix arg used on defuns, the new version
is much better - it makes code more readable.  It has only one snag:
it inserts an empty line between the defun line and the docstring.




This bug report was last modified 2 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.