Re: Typing latency

2021-02-15 Thread Sébastien Miquel
Timothy writes: #+begin_src diff org-priority-regexp - (defvar org-priority-regexp ".*?\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)" + (defvar org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)" #+end_src Since this thread seems to suggest it's (1) faster (2) more correct. If anyone's considering

Re: Typing latency

2021-02-15 Thread Eric S Fraga
On Sunday, 14 Feb 2021 at 20:45, Timothy wrote: > By patch "patch" I really mean just someone with commit access doing > something like: Hi Timothy, Sure but the best way is if you prepare a patch with a commit message that describes the change and post it here. Instructions on Worg on how to

Re: Typing latency

2021-02-14 Thread Timothy
Eric S Fraga writes: > On Sunday, 14 Feb 2021 at 12:39, Timothy wrote: >> Did this end up being patched into Org? > > I don't think anybody has proposed a patch... By patch "patch" I really mean just someone with commit access doing something like: #+begin_src diff org-priority-regexp -

Re: Typing latency

2021-02-14 Thread Eric S Fraga
On Sunday, 14 Feb 2021 at 12:39, Timothy wrote: > Did this end up being patched into Org? I don't think anybody has proposed a patch... -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f

Re: Typing latency

2021-02-13 Thread Timothy
Eric S Fraga writes: > On Tuesday, 9 Feb 2021 at 23:33, Ihor Radchenko wrote: >> I have the following in my config to speed things up: >> >> (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") > > Should this not be the default setting? Reading the documentation, > priority

Re: Typing latency

2021-02-13 Thread Maxim Nikulin
On 11/02/2021 23:59, Ihor Radchenko wrote: Maxim Nikulin writes: It is not namely typing latency, but I have noticed lags while moving over collapsed headings with "up" key (with "down" it is not so apparent) e.g. in overview view. It has happened after linux upgrade, emacs version changed

Re: Typing latency

2021-02-11 Thread Ihor Radchenko
Maxim Nikulin writes: > It is not namely typing latency, but I have noticed lags while moving > over collapsed headings with "up" key (with "down" it is not so > apparent) e.g. in overview view. It has happened after linux upgrade, > emacs version changed from 25.2 to 25.3, system package

Re: Typing latency

2021-02-11 Thread Maxim Nikulin
On 09/02/2021 01:24, Sébastien Miquel wrote: I often get some unpleasant latency when editing org-mode  1. Is anyone experiencing something similar ? It is not namely typing latency, but I have noticed lags while moving over collapsed headings with "up" key (with "down" it is not so

Re: Typing latency

2021-02-11 Thread Eric S Fraga
On Tuesday, 9 Feb 2021 at 15:23, Christian Thäter wrote: > Apropos, try out the native-comp Emacs branch. Thank you. I've been watching the development of this branch with interest! I'm too busy at the moment with work to play around with it but I will soon. Emacs, so long as I remember to

Re: Typing latency

2021-02-11 Thread Christian Thäter
On 2021-02-09 09:38, Eric S Fraga wrote: >On Monday, 8 Feb 2021 at 19:24, Sébastien Miquel wrote: >>  1. Is anyone experiencing something similar ? > >Yes, particularly since I moved to using exwm as my window manager, so >not necessarily org related. For instance, I find that having doc-view

Re: Typing latency

2021-02-10 Thread Samuel Wales
i have a note that in org 8.0+ they have to be after the todo kw. however, i /always/ interpret this to mean after the todo kw position i.e. after where the todo kw would go if it is not there. thus "* #[A] take out garbage" is legit. "* #[A] NEXT take out garbage" is wrong. "* NEXT take out

Re: Typing latency

2021-02-10 Thread Eric S Fraga
On Tuesday, 9 Feb 2021 at 23:33, Ihor Radchenko wrote: > I have the following in my config to speed things up: > > (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") Should this not be the default setting? Reading the documentation, priority cookies must be in a headline with a

Re: Typing latency

2021-02-09 Thread Ihor Radchenko
Timothy writes: >> (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") > > If this doesn't produce regressions, is this worth patching into Org? I believe so, but I am not sure about regressions. Current master allow placing priority cookies anywhere, while my version only limits

Re: Typing latency

2021-02-09 Thread Timothy
Ihor Radchenko writes: > I also had issues with priority faces. It is related to sub-optimal > regexp used to detect priority cookies. > > I have the following in my config to speed things up: > > (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") If this doesn't produce

Re: Typing latency

2021-02-09 Thread Ihor Radchenko
Sébastien Miquel writes: > the delay, which must be caused by the already fontified parts. > I guess the issue must be wih emacs' internals. I had some issues with performance when displaying unicode symbols in the past for certain (large) fonts. That time, the following helped to improve Emacs

Re: Typing latency

2021-02-09 Thread Sébastien Miquel
Ihor Radchenko writes: I have the following in my config to speed things up: (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") For the latex fontification, I never had issues, but you might play with org-highlight-latex-and-related. Hope it helps. Thanks, I've set it so

Re: Typing latency

2021-02-09 Thread Ihor Radchenko
Sébastien Miquel writes: > It reports that most of the time is spent in org-do-latex-and-related, > and some 20% in something related to the priority faces (despite the > lack of priority cookies). I also had issues with priority faces. It is related to sub-optimal regexp used to detect

Re: Typing latency

2021-02-09 Thread Sébastien Miquel
Ihor Radchenko writes: You can try font-lock-profiler package (https://github.com/Lindydancer/font-lock-profiler) This is useful, thank you. It reports that most of the time is spent in org-do-latex-and-related, and some 20% in something related to the priority faces (despite the lack of

Re: Typing latency

2021-02-09 Thread Sébastien Miquel
Russell Adams writes: My only suggestion is have you looked at disabling flyspell? Yes, thank you. Flyspell can cause some delay on its own aswell, but in this situation/configuration it doesn't change the results. -- Sébastien Miquel

Re: Typing latency

2021-02-09 Thread Sébastien Miquel
Eric S Fraga writes: What Emacs version are you using? This is using the latest ative-comp git branch. -- Sébastien Miquel

Re: Typing latency

2021-02-09 Thread Eric S Fraga
On Monday, 8 Feb 2021 at 19:24, Sébastien Miquel wrote: >  1. Is anyone experiencing something similar ? Yes, particularly since I moved to using exwm as my window manager, so not necessarily org related. For instance, I find that having doc-view buffers active, my whole Emacs shows latency.

Re: Typing latency

2021-02-08 Thread Ihor Radchenko
Sébastien Miquel writes: > AFAIU, the elisp profiler is useless in this case (fontification being > slow). At least my runs don't seem to report anything relevant. You can try font-lock-profiler package (https://github.com/Lindydancer/font-lock-profiler) Best, Ihor

Re: Typing latency

2021-02-08 Thread Russell Adams
On Mon, Feb 08, 2021 at 07:24:21PM +0100, Sébastien Miquel wrote: > I often get some unpleasant latency when editing org-mode > buffers. My use case combines a lot of special blocks and LaTeX > fragments, and the fontification seems to slow things down. My only suggestion is have you looked at