From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oC1TGzbZX2CXBwAAgWs5BA (envelope-from ) for ; Sun, 28 Mar 2021 03:17:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uA8oFTbZX2CbNgAAB5/wlQ (envelope-from ) for ; Sun, 28 Mar 2021 01:17:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E423810239 for ; Sun, 28 Mar 2021 03:17:41 +0200 (CEST) Received: from localhost ([::1]:44518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQK3f-0002Lv-LW for larch@yhetil.org; Sat, 27 Mar 2021 21:17:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPTex-0008Pb-KI for emacs-orgmode@gnu.org; Thu, 25 Mar 2021 13:20:39 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050::465:103]:37490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lPTel-0005bT-3F for emacs-orgmode@gnu.org; Thu, 25 Mar 2021 13:20:38 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4F5sLW4T4PzQjmc; Thu, 25 Mar 2021 18:20:19 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 29IEFmFEO_si; Thu, 25 Mar 2021 18:20:16 +0100 (CET) From: Leo Okawa Ericson To: emacs-orgmode@gnu.org Subject: [PATCH 0/1] Add option to delay fontification of source blocks Date: Thu, 25 Mar 2021 18:19:40 +0100 Message-Id: <20210325171941.101077-1-git@relevant-information.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: ** X-Rspamd-Score: 1.54 / 15.00 / 15.00 X-Rspamd-Queue-Id: 7DDBD31 X-Rspamd-UID: f49f82 Received-SPF: pass client-ip=2001:67c:2050::465:103; envelope-from=git@relevant-information.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 27 Mar 2021 21:16:27 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Okawa Ericson Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616894262; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=taCDWXSQ+KAnCjqc9sEtB2tL+RAkM6PPQDUTIBUUDRc=; b=Q4yjbhoyY9rIV9pt03hQQnX4KwgjLeB8UXglovD12msgyOwouR0yUEC/Ru+7GqY29rk9se pee6ym3D48e2NOpmoJKXPbvqzuzkqY1bs6eRIMWN/nz18uAg1qK0Y5YUL7a3pj5cDTD3N8 6K5lJeMl+seIgmYj2DtjVeq7R1DuVeB2v7FZnLKVHYQDEQxkLgSz0teFktk39weI9TCgDX iORH8MknbIolIheVfvPHsZBgBeGUw9B5IYU0TV9+CGLUWzKM0Ml2mEqd/ypgi0ZGYPel6/ FV4L+LYSu9OrtN3negsJPYMkQf731AKMaCwVpSL8Zj/n29wzhYiRlaKq0zSAcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616894262; a=rsa-sha256; cv=none; b=hgmpW1WUqoYFA2VEfYiXBMDsiQxhPxfe1luv6WEs1qrjH3LbmPuT+SWzpdTZc7Oik+McUI vg4gLoprgTPUwapusXVyxp2ndt6tIYq+Cb4mJyH0bsg527/PiTQTVysdLbW3gwi+ElYFZw +1hi3EycX2BnY4pvux0+qzAV/g3w5+PF7e/+K16q4Pos/ttboCbuFFCQPlXislPDpCzOEf s6NDv5S4n2VfY2SQxID0oeKrwMikqZoVFNQXenvgkcDe3AtBt45Ft8sVUtLwKmQhxkHc8X d3YED19C8VeEfAw0c8Pvlml8kMy4cc/DX3bfCLnV9QcxfgKoGg27BsJ+fp6S7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 3.58 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E423810239 X-Spam-Score: 3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: z00oQztkpkcV 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