From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/15705 Path: main.gmane.org!not-for-mail From: Jan Vroonhof Newsgroups: gmane.emacs.gnus.general Subject: XEmacs bug? [was Re: gnus bug when editing?] Date: 22 Jul 1998 10:46:13 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035154690 23545 80.91.224.250 (20 Oct 2002 22:58:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:58:10 +0000 (UTC) Cc: xemacs-patches@xemacs.org Return-Path: Original-Received: from gwyn.tux.org (gwyn.tux.org [207.96.122.8]) by altair.xemacs.org (8.9.1/8.9.1) with ESMTP id BAA17691 for ; Wed, 22 Jul 1998 01:51:13 -0700 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by gwyn.tux.org (8.8.8/8.8.8) with ESMTP id EAA02588 for ; Wed, 22 Jul 1998 04:47:33 -0400 Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id DAS08312; Wed, 22 Jul 1998 03:18:32 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 22 Jul 1998 03:46:31 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id DAA20004 for ; Wed, 22 Jul 1998 03:46:23 -0500 (CDT) Original-Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id EAA19926 for ; Wed, 22 Jul 1998 04:46:23 -0400 (EDT) Original-Received: from bolzano (vroonhof@bolzano [129.132.146.140]) by frege.math.ethz.ch (8.8.8/Main-STAT-mailer) with ESMTP id KAA03989; Wed, 22 Jul 1998 10:46:14 +0200 (MET DST) Original-Received: (vroonhof@localhost) by bolzano (SMI-8.6/D-MATH-client) id KAA18190; Wed, 22 Jul 1998 10:46:14 +0200 Original-To: ding@gnus.org In-Reply-To: Stefan Waldherr's message of "Tue, 21 Jul 1998 18:30:55 GMT" Original-Lines: 44 X-Mailer: Gnus v5.6.23/XEmacs 21.0 - "Zhong Wei" Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:15705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:15705 Stefan Waldherr writes: > I recently observed the following bug: select an article, hit `e' to edit, > edit something, then `C c' to finish. Selecting another article yields > > (85) (warning/warning) Error caught in `font-lock-pre-idle-hook' I cannot reproduce this with 21.x, but I think I can see what the problem is. > Signaling: (wrong-type-argument extent-live-p #) > extent-start-position(#) > font-lock-after-change-function(1 1 2111) It is a bug in the XEmacs font-lock-pre-idle-hook, does this "obviously correct" patch help: 1998-07-22 Jan Vroonhof * font-lock.el (font-lock-fontify-glumped-region): Add guard aginst destroyed extents Index: font-lock.el =================================================================== RCS file: /usr/CVSroot/XEmacs/xemacs-20/lisp/font-lock.el,v retrieving revision 1.7 diff -u -u -r1.7 font-lock.el --- font-lock.el 1998/06/20 00:58:20 1.7 +++ font-lock.el 1998/07/22 16:29:22 @@ -1073,8 +1073,9 @@ ;; region as fontified; otherwise, the same error might get signaled ;; after every command. (unwind-protect - ;; buffer may be deleted. - (if (buffer-live-p (extent-object font-lock-old-extent)) + ;; buffer/extent may be deleted. + (if (and (extent-live-p font-lock-old-extent) + (buffer-live-p (extent-object font-lock-old-extent))) (save-excursion (set-buffer (extent-object font-lock-old-extent)) (font-lock-after-change-function-1