[Top][All Lists]

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

Re: [O] Org mode in combination with emacs follow-mode is terrible

From: Gerald Wildgruber
Subject: Re: [O] Org mode in combination with emacs follow-mode is terrible
Date: Fri, 15 Jun 2018 17:34:52 +0200
User-agent: mu4e 1.1.0; emacs 27.0.50

Thanks Joost,

that's interesting! I never used the profiler but I will try and see how
far I get with it and then come back here.


On Mi, Jun 13 2018, Joost Kremers <address@hidden> wrote:

> On Wed, Jun 13 2018, Eric S Fraga wrote:
>> On Wednesday, 13 Jun 2018 at 09:53, Gerald Wildgruber wrote:
>>> Switching to text-mode, with 5 windows and follow-mode still being
>>> active reduces lag significantly.
>>> So there must be an issue specifically with the combination of org-mode
>>> and follow-mode!
>> I don't think there's an issue per se in the sense of bugs.  Org does
>> much more processing of the text than does text mode so if you have 60k
>> worth of text to process each time you type something, it's probably not
>> surprising that there is a lag.
> Actually, I would suspect it's more of a problem for follow-mode than
> org-mode, because follow-mode needs to keep the different windows in sync.
> For this, it adds a function to `post-command-hook', which means it's run
> after every key press.
> It's not inconceivable that `follow-mode' does something that is extra
> time-consuming in an Org buffer. To find out what that might be, you could
> try the Elisp profiler that comes with Emacs. See the section "Profiling"
> in the Elisp manual for details.
> Once you've found out which function(s) consume so much time, it might be
> possible to ask in here or on emacs-devel what exactly is causing the
> problem and whether there's a way around it.

Dr. Gerald Wildgruber
Institut für Philosophie, Literatur-, Wissenschafts- und Technikgeschichte
Literaturwissenschaft mit Schwerpunkt Literatur und Wissenschaft
Technische Universität Berlin
Straße des 17. Juni 135
D-10623 Berlin
T. +49 (0)30 314 25924
F. +49 (0)30 314 23107
Sent with mu4e

reply via email to

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