emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 0/1] Add option to delay fontification of source blocks
@ 2021-03-25 17:19 Leo Okawa Ericson
  2021-03-25 17:19 ` [PATCH 1/1] org-src.el: " Leo Okawa Ericson
  2021-03-29  5:03 ` [PATCH 0/1] " Kyle Meyer
  0 siblings, 2 replies; 9+ messages in thread
From: Leo Okawa Ericson @ 2021-03-25 17:19 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Leo Okawa Ericson

Fontification of long code blocks can be very slow. The patch, which should be
in another other email, mitigates this by
adding an option to delay the fontification after the user has become idle by
using idle timers. This seems to be faster from my limited testing, but I'm not
sure if something will go horribly wrong because of the timers.

There is a trade-off in that there will be no syntax highlightinting when the
user is typing. I don't know how to keep existing fontification so it would be
great if somebody could share a solution to that.

I have signed the copyright papers so that shouldn't be a problem. This is my
first patch submission so any suggestions for improvement are welcome.

Leo Okawa Ericson (1):
  org-src.el: Add option to delay fontification of source blocks

 lisp/org-src.el | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/1] Add option to delay fontification of source blocks
@ 2021-03-25 17:43 Leo Okawa Ericson
  2021-04-25  3:48 ` Timothy
  0 siblings, 1 reply; 9+ messages in thread
From: Leo Okawa Ericson @ 2021-03-25 17:43 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Leo Okawa Ericson

From: Leo Okawa Ericson <leo@relevant-information.com>

I tried sending this patch once before, but I think it got caught as spam so I'm
trying this again.

Fontification of long code blocks can be very slow. The patch (in the reply to
this email) mitigates this by adding an option to delay the fontification after
the user has become idle by using idle timers. This seems to be faster from my
limited testing, but I'm not sure if something will go horribly wrong because of
the timers.

There is a trade-off in that there will be no syntax highlightinting when the
user is typing. I don't know how to keep existing fontification so it would be
great if somebody could share a solution to that.

I have signed the copyright papers so that shouldn't be a problem. This is my
first patch submission so any suggestions for improvement are welcome.

Leo Okawa Ericson (1):
  org-src.el: Add option to delay fontification of source blocks

 lisp/org-src.el | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/1] Add option to delay fontification of source blocks
@ 2021-03-25 18:25 leo
  2021-04-25  3:49 ` Timothy
  0 siblings, 1 reply; 9+ messages in thread
From: leo @ 2021-03-25 18:25 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Leo Okawa Ericson

From: Leo Okawa Ericson <leo@relevant-information.com>

I tried sending this patch once before, but I think it got caught as spam so I'm
trying this again.

Fontification of long code blocks can be very slow. The patch (in the reply to
this email) mitigates this by adding an option to delay the fontification after
the user has become idle by using idle timers. This seems to be faster from my
limited testing, but I'm not sure if something will go horribly wrong because of
the timers.

There is a trade-off in that there will be no syntax highlightinting when the
user is typing. I don't know how to keep existing fontification so it would be
great if somebody could share a solution to that.

I have signed the copyright papers so that shouldn't be a problem. This is my
first patch submission so any suggestions for improvement are welcome.

Leo Okawa Ericson (1):
  org-src.el: Add option to delay fontification of source blocks

 lisp/org-src.el | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-04-25  3:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 17:19 [PATCH 0/1] Add option to delay fontification of source blocks Leo Okawa Ericson
2021-03-25 17:19 ` [PATCH 1/1] org-src.el: " Leo Okawa Ericson
2021-03-29  5:03 ` [PATCH 0/1] " Kyle Meyer
2021-04-02 12:44   ` Leo Okawa Ericson
2021-04-25  3:48     ` Timothy
  -- strict thread matches above, loose matches on Subject: below --
2021-03-25 17:43 Leo Okawa Ericson
2021-04-25  3:48 ` Timothy
2021-03-25 18:25 leo
2021-04-25  3:49 ` Timothy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).