GNU bug report logs -
#33784
27.0.50; some case c-backward-token-2 takes cpu more and emacs hang
Previous Next
Reported by: xh yang <linux.xhyang <at> gmail.com>
Date: Tue, 18 Dec 2018 04:44:01 UTC
Severity: normal
Found in version 27.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello, Glenn.
On Tue, Dec 18, 2018 at 17:05:22 -0500, Glenn Morris wrote:
> > Maybe the solution would be not to start with-temp-buffer names with
> > a space.
> This sounds totally wrong to me.
> > Maybe the documentation for with-temp-buffer should be amended to
> > recommend Lisp programmers not to use it for buffers holding user
> > text.
> This also sounds wrong to me.
> I confess I have no idea what problem you are trying to solve here.
I have lost the clear overview I had of the problem yesterday, I'm
afraid.
There is an assemblage of confusing features around this bug which seem
to be contributing to the reported bug:
(i) A temporary buffer is created and made a C++ Mode buffer.
(ii) Font Lock Mode isn't enabled.
(iii) Although font lock isn't enabled, font-lock-ensure is called.
This hangs.
(iv) An attempt to enable Font Lock Mode on this buffer fails silently,
because the buffer name begins with a space.
(v) It is unclear whether font-lock-ensure is intended to work when Font
Lock Mode is disabled.
(vi) The spiking of Font Lock Mode to fail on "space buffers" is not
documented, and 23 years later, the reason for it is obscure.
Hope that helps, if only a little.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 6 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.