From mboxrd@z Thu Jan 1 00:00:00 1970 From: ndame Subject: Re: Automatic formatting of the table as you type Date: Sun, 29 Mar 2020 07:09:33 +0000 (GMT) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_62294_1162721501.1585465773215" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54354) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIS5g-0008Fc-Cf for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 03:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIS5f-0006VC-4i for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 03:10:40 -0400 Received: from fmfe33.onbox.hu ([46.107.16.238]:38416 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIS5e-0006Jm-Tg for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 03:10:39 -0400 Received: from localhost (localhost [62.165.192.40]) by web-out.onbox.hu (Postfix) with SMTP id 48qmvS2S5Cz1CdH for ; Sun, 29 Mar 2020 09:10:28 +0200 (CEST) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" ------=_Part_62294_1162721501.1585465773215 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > I suggest being very careful with this. =C2=A0While it's a very nice feat= ure, > it's bound to be slow with large tables. =C2=A0And it is very frustrating= for > users when typing becomes laggy. The feature could be an optional minor mode first and then later made default if it proves to work well in every situation. With the techniques I suggested there should be no lag at all, because for smaller tables emacs can handle automatic formatting instantly and with bigger tables the code can introduce an automatic idle delay (sit-for), so the automatic reformat will happen only when the user is idle for a short while. The idle period length can depend on the size and complexity of the table. ------=_Part_62294_1162721501.1585465773215 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > I suggest being very careful with this.  While it's a very nice feature,
> it's bound to be slow with large tables.  And it is very frustrating for
> users when typing becomes laggy.

The feature could be an optional minor mode first and then later made
default if it proves to work well in every situation.

With the techniques I suggested there should be no lag at all, because
for smaller tables emacs can handle automatic formatting instantly and
with bigger tables the code can introduce an automatic idle delay
(sit-for), so the automatic reformat will happen only when the user is
idle for a short while. The idle period length can depend on the size
and complexity of the table. ------=_Part_62294_1162721501.1585465773215--