# HG changeset patch # User yuuji@gentei.org # Date 1326178535 -32400 # Node ID 76fe4e01931d595047d09d1f465cb070d7806a9c # Parent 768ff443ef84b335b6848652ff1ded2d89c352d4 Avoid infinte loop on corrupt CSS file. diff -r 768ff443ef84 -r 76fe4e01931d yahtml.el --- a/yahtml.el Tue Jan 10 15:24:37 2012 +0900 +++ b/yahtml.el Tue Jan 10 15:55:35 2012 +0900 @@ -1,6 +1,6 @@ ;;; -*- Emacs-Lisp -*- ;;; (c) 1994-2012 by HIROSE Yuuji [yuuji(@)yatex.org] -;;; Last modified Mon Jan 9 20:13:20 2012 on firestorm +;;; Last modified Tue Jan 10 15:54:39 2012 on firestorm ;;; $Id$ (defconst yahtml-revision-number "1.74.2" @@ -2959,7 +2959,7 @@ (setcdr a (cons (list class) (cdr a)))) (setq alist (cons (list element (list class)) alist)))) (goto-char (1- e)) - (search-forward "}" nil t) + (search-forward "}" nil 1) ;1=move to limit when not found. (setq b (point)))) alist))))