all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* inappropriate use of nroff-mode leads to grief
@ 2002-09-03 19:05 Robert Marshall
  2002-09-03 21:44 ` Kai Großjohann
  2002-09-04 17:41 ` Stefan Monnier <foo@acm.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Marshall @ 2002-09-03 19:05 UTC (permalink / raw)


I use logrotate to compress /var/log files so these are saved as (e.g)
syslog.1.gz

When I edit them, I have global-font-lock mode set but
font-lock-maximum-size is set to (the default) 256000 and the current
buffer is 9000000 but font-lock-mode still appears to be on and
whenever I try to scroll around the log file it's trying to parse it
as nroff - not a great success.

Takes forever to page up:

  parse-partial-sexp(1 9649428)
  font-lock-fontify-syntactically-region(9649428 9650100 nil)
  font-lock-default-fontify-region(9649428 9650019 nil)
  font-lock-fontify-region(9649428 9650019)
  run-hook-with-args(font-lock-fontify-region 9649428 9650019)
  jit-lock-fontify-now(9649428 9649928)
  jit-lock-function(9649428)
  scroll-down(nil)

Don't like the look of that parse-partial-sexp ! I realise the real fix is
something like

(add-to-list 'auto-mode-alist '("^/var/log" . fundamental-mode))

 but should anything be parsing 9meg of text for just-in-time hilighting?

R
-- 
Science is to computer science as hydrodynamics is to
plumbing.			-- Stan Kelly-Bootle

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

end of thread, other threads:[~2002-09-06 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-03 19:05 inappropriate use of nroff-mode leads to grief Robert Marshall
2002-09-03 21:44 ` Kai Großjohann
2002-09-04 17:41 ` Stefan Monnier <foo@acm.com>
2002-09-04 19:50   ` Robert Marshall
2002-09-06 18:25     ` Stefan Monnier <foo@acm.com>

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.