From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: Re: Org mode in combination with emacs follow-mode is terrible Date: Wed, 13 Jun 2018 12:00:00 +0200 Message-ID: <87602n57mn.fsf@fastmail.fm> References: <87bmch5vnp.fsf@tu-berlin.de> <87muw0lcen.fsf@gmail.com> <87h8m8cnh3.fsf@tu-berlin.de> <87fu1sjom8.fsf@gmail.com> <87602n5dhw.fsf@tu-berlin.de> <87in6nhv54.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT2ZV-0006UW-PS for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 06:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT2ZR-0001vQ-3J for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 06:00:09 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47343) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fT2ZQ-0001rb-UA for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 06:00:05 -0400 In-reply-to: <87in6nhv54.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga Cc: Gerald Wildgruber , emacs-orgmode@gnu.org 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. -- Joost Kremers Life has its moments