[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29854: 25.3; Eshell buffer editing gets slower as colored output gro
bug#29854: 25.3; Eshell buffer editing gets slower as colored output grows
Tue, 02 Jan 2018 08:50:51 -0500
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
Pierre Neidhardt <address@hidden> writes:
> The patch does not seem to do it. Unless load order matters?
Load order should not matter.
> The redifinition of `ansi-color-apply-face-function` works however,
> plus it comes at the bonus of making Eshell an order of magnitude
> I haven't tested estensively yet, but it seems to be a much better
Aha, maybe it's not a question of markers, but rather another case of
Bug#26051 "overlays may make emacs very slow".
(anyway, ansi-color-apply-to-region doesn't set markers per colour
boundary; it's just 1 or 2 markers per call (eshell calls it once per
The question is then whether there is some case where using overlays is
necessary, or is it just a pessimization? For reference, I took the
text property using definition from man.el (so it at least works for
(defun Man-fontify-manpage ()
(lambda (beg end face)
(put-text-property beg end 'face face))))