GNU bug report logs - #11286
24.1.50; xml-parse-region returns "Invalid character" if last line is a comment

Previous Next

Package: emacs;

Reported by: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>

Date: Fri, 20 Apr 2012 07:57:01 UTC

Severity: important

Found in version 24.1.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> gnu.org>
To: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>
Cc: 11286 <at> debbugs.gnu.org
Subject: bug#11286: 24.1.50; xml-parse-region returns "Invalid character" if last line is a comment
Date: Sat, 21 Apr 2012 17:55:00 +0800
Thamer Mahmoud <thamer.mahmoud <at> gmail.com> writes:

> (with-temp-buffer
>   (insert "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
> 	  "<rss version=\"2.0\">\n"
> 	  "</rss>\n"
> 	  "<!-- this line causes an error -->\n")
>   (xml-parse-region (point-min) (point-max)))

Thanks for the bug report and the clear testcase.  This regression was
caused by the fix to Bug#10405.  I've committed a fix to the emacs-24
branch.




This bug report was last modified 13 years and 92 days ago.

Previous Next


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