unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eric M. Ludlam" <eric@siege-engine.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re[2]: font-lock patch for automated edits
Date: Sun, 31 Aug 2008 23:07:50 -0400	[thread overview]
Message-ID: <200809010307.m8137o8x017968@projectile.siege-engine.com> (raw)
In-Reply-To: <jwvod393e50.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 31 Aug 2008 02:15:31 -0400)

>>> Stefan Monnier <monnier@iro.umontreal.ca> seems to think that:
>>   I have some tests for the CEDET/Semantic incremental parsing engine.
>> This test calls 'erase-buffer', and performs edits very quickly, and
>> was causing font-lock to throw errors in my tests.
>
>Do you have backtraces for those bugs?

Hi,

  After fixing the first bug, I'd bump into the next.  I undid my
changes to font-lock, and attached my first stack trace.

  Also see attached a very short version of what I was running.  I
need to run it twice to get the error.  It's actually as easy as just
typing:

M-x erase-buffer RET

  in a buffer with font-locked stuff in it.

It If you want to try out the entire setup I was running, you could
get CEDET from the source-forge CVS, do a build, and then run
semantic-utest-main.

Eric

------------------------
Debugger entered--Lisp error: (args-out-of-range 88 88)
  get-text-property(88 font-lock-multiline)
  font-lock-extend-region-multiline()
  font-lock-default-fontify-region(1 88 nil)
  font-lock-fontify-region(1 88)
  font-lock-after-change-function(1 1 87)
  erase-buffer()
  (let ((buff ...)) (switch-to-buffer buff) (setq buffer-offer-save nil) (erase-buffer) (insert "/* Test file for C language for Unit Tests */\n\n#include <stdio.h>\n#include \"sutest.h\"\n\n") (set-buffer-modified-p nil))
  crash-font-lock()
  call-interactively(crash-font-lock t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

------------------------

;; Enable global-font-lock mode before using this
(defun crash-font-lock ()
  "Crash font lock by fast-editing a buffer."
  (interactive)
  (let ((buff (find-file-noselect "/tmp/CFL.cpp")))
    (switch-to-buffer buff)
    (setq buffer-offer-save nil)
    (erase-buffer)
    (insert "/* Test file for C language for Unit Tests */

#include <stdio.h>
#include \"sutest.h\"

"
	    )
    (set-buffer-modified-p nil)
    ))
  




  reply	other threads:[~2008-09-01  3:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 14:56 font-lock patch for automated edits Eric M. Ludlam
2008-08-31  6:15 ` Stefan Monnier
2008-09-01  3:07   ` Eric M. Ludlam [this message]
2008-12-28 13:12   ` Re[2]: " Eric M. Ludlam
2009-04-15 21:16     ` Stefan Monnier
2009-04-15 22:57       ` Re[2]: " Eric M. Ludlam

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=200809010307.m8137o8x017968@projectile.siege-engine.com \
    --to=eric@siege-engine.com \
    --cc=emacs-devel@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).