[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inappropriate use of nroff-mode leads to grief

From: Robert Marshall
Subject: inappropriate use of nroff-mode leads to grief
Date: Tue, 03 Sep 2002 20:05:32 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu)

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

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)

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?

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]