From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; M-x compile gives args out of range 0, 0
Date: Tue, 08 Apr 2008 18:32:02 +0200 [thread overview]
Message-ID: <47FB9E02.3050903@swipnet.se> (raw)
In-Reply-To: <jwvskxwxue2.fsf-monnier+emacsbugreports@gnu.org>
Stefan Monnier skrev:
>> When doing M-x compile I get:
>> font-lock-extend-region-multiline: Args out of range: 0, 0
>
> Does the patch below make it disappear, by any chance?
>
>
Aha, it is cc-mode. No wonder it looked random, I don't always load a c-file
before M-x compile.
The patch does indeed fix the problem.
Jan D.
> Stefan
>
>
> === modified file 'lisp/progmodes/cc-mode.el'
> --- lisp/progmodes/cc-mode.el 2008-04-07 16:37:22 +0000
> +++ lisp/progmodes/cc-mode.el 2008-04-08 15:01:47 +0000
> @@ -601,7 +601,7 @@
> (add-hook 'before-change-functions 'c-before-change nil t)
> (make-local-hook 'after-change-functions)
> (add-hook 'after-change-functions 'c-after-change nil t)
> - (setq font-lock-extend-after-change-region-function
> + (set (make-local-variable 'font-lock-extend-after-change-region-function)
> 'c-extend-after-change-region)) ; Currently (2008-04), only used by AWK.
>
> (defun c-setup-doc-comment-style ()
>
>
>
next prev parent reply other threads:[~2008-04-08 16:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 10:52 23.0.60; M-x compile gives args out of range 0, 0 Jan Djärv
2008-04-08 15:03 ` Stefan Monnier
2008-04-08 16:32 ` Jan Djärv [this message]
2008-04-08 17:22 ` Alan Mackenzie
2008-04-08 18:05 ` Stefan Monnier
2008-04-08 19:21 ` Alan Mackenzie
2008-04-08 20:22 ` Stefan Monnier
2008-04-09 9:24 ` Alan Mackenzie
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=47FB9E02.3050903@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).