From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: inappropriate use of nroff-mode leads to grief
Date: 04 Sep 2002 13:41:03 -0400 [thread overview]
Message-ID: <5lheh5vej4.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: m1elca28sj.fsf@chezmarshall.freeserve.co.uk
>>>>> "Robert" == Robert Marshall <spam@capuchin.co.uk> writes:
> I use logrotate to compress /var/log files so these are saved as (e.g)
> syslog.1.gz
That's unfortunate. We should try to provide a fix for it.
> parse-partial-sexp(1 9649428)
Aaarrg!!
nroff-mode tries to avoid such large scans by setting
font-lock-beginning-of-defun to something more-or-less meaningful
(beginning-of-paragraph, IIRC) but in your case that doesn't help
because there's probably no empty line so it still ends up
scanning everything.
The development version of Emacs improves this by caching the result
of the scan, so it does large scans as well, but hopefully not too often.
(i.e. the first time you jump to the end of the file, it will scan the
whole file, but after wards it will only rescan smaller parts of it).
Stefan
next prev parent reply other threads:[~2002-09-04 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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> [this message]
2002-09-04 19:50 ` Robert Marshall
2002-09-06 18:25 ` Stefan Monnier <foo@acm.com>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5lheh5vej4.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).