unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Jan Dj\x1fFFFFFFFFFFFFFFrv" <jan.h.d@swipnet.se>
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 11:03:02 -0400	[thread overview]
Message-ID: <jwvskxwxue2.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <47FB4E7D.3020504@swipnet.se> ("Jan Dj\x1fFFFFFFFFFFFFFFrv"'s message of "Tue, 08 Apr 2008 12:52:45 +0200")

> 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?


        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 ()





  reply	other threads:[~2008-04-08 15:03 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 [this message]
2008-04-08 16:32   ` Jan Djärv
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=jwvskxwxue2.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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).