[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#645: 23.0.60; rng-after-change-function error when validation not st
From: |
Lennart Borgman (gmail) |
Subject: |
bug#645: 23.0.60; rng-after-change-function error when validation not started |
Date: |
Sun, 03 Aug 2008 20:30:21 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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
- bug#645: 23.0.60; rng-after-change-function error when validation not started,
Lennart Borgman (gmail) <=