bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58687: 29.0.50; Enabling pp-use-max-width dramatically slows down fo


From: Ihor Radchenko
Subject: bug#58687: 29.0.50; Enabling pp-use-max-width dramatically slows down formatting of large sexps like org-persist--index
Date: Fri, 13 Jan 2023 09:28:37 +0000

Michael Eliachevitch <m.eliachevitch@posteo.de> writes:

>> Personally, I always thought it would be best if the user facing
>> commands like pp-eval-sexp and friends alone respected the user option.
>
> Sounds like a good idea. I definetly didn't expect that me personally setting 
> this option for myself would affect how lisp objects are serialized to disk 
> in external packages. Not sure if I would only enable it for interactive 
> commands and the like, in the emacs-world we are all hackers and hard to say 
> what is user-facing. People might write their own functions using pp on small 
> s-exps, and wonder why this setting isn't doing anything. Not sure what's the 
> best approach there
>
> Maybe pp isn't meant to be used for doing anything that's not meant primarily 
> for human eyes, like serialization of lisp objects, maybe it's an error on 
> package maintainers that use it that way, but at least that could also 
> somehow be communicated more clearly to them.

In org-persist, `pp' is used because "index" file might be something
users may want to check manually. Following the notion that Elisp data
should be something consumable by humans, if possible.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]