GNU bug report logs - #645
23.0.60; rng-after-change-function error when validation not started

Previous Next

Package: emacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Sun, 3 Aug 2008 18:40:04 UTC

Severity: normal

Tags: moreinfo

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#645: closed (23.0.60; rng-after-change-function error when
 validation not started)
Date: Sun, 10 Jul 2011 00:22:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 09 Jul 2011 20:21:23 -0400
with message-id <cjzkkngf3w.fsf <at> fencepost.gnu.org>
and subject line Re: bug#645: 23.0.60; rng-after-change-function error when validation not started
has caused the GNU bug report #645,
regarding 23.0.60; rng-after-change-function error when validation not started
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
645: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=645
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; rng-after-change-function error when validation not started
Date: Sun, 03 Aug 2008 20:30:21 +0200
The function rng-after-change-function might be called before validation 
has started. This results in an error. The patch below corrects this 
problem.

Index: rng-valid.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/nxml/rng-valid.el,v
retrieving revision 1.8
diff -u -b -r1.8 rng-valid.el
--- rng-valid.el	3 Jul 2008 12:25:22 -0000	1.8
+++ rng-valid.el	3 Aug 2008 18:27:21 -0000
@@ -304,6 +304,7 @@
   (or rng-validate-mode (rng-validate-mode)))

 (defun rng-after-change-function (start end pre-change-len)
+  (when rng-validate-up-to-date-end
   ;; Work around bug in insert-file-contents.
   (when (> end (1+ (buffer-size)))
     (setq start 1)
@@ -343,7 +344,7 @@
   ;; Arrange to revalidate
   (rng-activate-timers)
   ;; Need to do this after activating the timer
-  (force-mode-line-update))
+    (force-mode-line-update)))

 (defun rng-compute-mode-line-string ()
   (cond (rng-validate-timer



In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-08-01


[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 645-done <at> debbugs.gnu.org
Subject: Re: bug#645: 23.0.60;
	rng-after-change-function error when validation not started
Date: Sat, 09 Jul 2011 20:21:23 -0400
Never followed up; closing.

"Lennart Borgman (gmail)" wrote:

> Hm. Please do not apply this now. I can't see why it can happen that
> rng-validate-up-to-date-end is nil. I will investigate it.


This bug report was last modified 14 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.