Article View: gnu.emacs.bug
Article #88096font-lock.el no good for Big Files
From: tim werner
Date: Wed, 03 Aug 1994 19:26
Date: Wed, 03 Aug 1994 19:26
22 lines
1694 bytes
1694 bytes
Hi, As of emacs-19.25, font-lock still takes Way Too Long to fontify Really Big Files. I haven't been able to discover a way to work around this. If I type C-g after about 10 seconds, the file load gets aborted, instead of the fontification. Once I have turned on the font-lock hook, whenever I load a .c file, it must be fontified. Shouldn't there be a way to tell font-lock to not fontify files that are bigger than some user-settable size? Also, the function font-lock-fontify-region would be good if I could have the above-mentioned feature, but it would be better to have a function that would just re-fontify some user-settable area around the current point (say 40 lines above and below the current line, for instance). Any chance of getting this into font-lock? I can't use font-lock as an enticement to convert heathen into emacsen if they must wait 2 minutes each time they want to browse a huge file. thanks very much, tw
Technical Details
Message-ID:
<199408031216.IAA28838@sparcserver.mc.ab.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mc.ab.COM!wernerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,c9730dc254757d15,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-04 01:37:22 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mc.ab.COM!werner From: werner@mc.ab.COM (tim werner) Newsgroups: gnu.emacs.bug Subject: font-lock.el no good for Big Files Date: 3 Aug 1994 15:26:07 -0400 Organization: GNUs Not Usenet Lines: 23 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199408031216.IAA28838@sparcserver.mc.ab.com>