changeset 95372:ffc05d56ac32

(hack-local-variables): Don't signal an error if the local variable section is not properly terminated.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 28 May 2008 20:23:06 +0000
parents eba56dbc7193
children 4ab9c6d31251
files lisp/ChangeLog lisp/files.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed May 28 18:56:08 2008 +0000
+++ b/lisp/ChangeLog	Wed May 28 20:23:06 2008 +0000
@@ -1,5 +1,8 @@
 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* files.el (hack-local-variables): Don't signal an error if the local
+	variable section is not properly terminated.
+
 	* emacs-lisp/easymenu.el (easy-menu-convert-item)
 	(easy-menu-convert-item-1): Move the duplicate-generation outside of
 	the caching so it also works for identical entries.
--- a/lisp/files.el	Wed May 28 18:56:08 2008 +0000
+++ b/lisp/files.el	Wed May 28 20:23:06 2008 +0000
@@ -2860,7 +2860,10 @@
 			  (re-search-forward
 			   (concat prefix "[ \t]*End:[ \t]*" suffix)
 			   nil t))
-		  (error "Local variables list is not properly terminated"))
+                  ;; This used to be an error, but really all it means is
+                  ;; that this may simply not be a local-variables section,
+                  ;; so just ignore it.
+		  (message "Local variables list is not properly terminated"))
 		(beginning-of-line)
 		(setq endpos (point)))