diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-05-28 20:23:06 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-05-28 20:23:06 +0000 |
commit | 5ee66afc6dd6db4a2c238dad54e9c4321dbb38c9 (patch) | |
tree | 302d00047fba28a71988c4529532a6898537a823 /lisp/files.el | |
parent | d338d019e40a9b7c334b04a017d3d6e485403be4 (diff) | |
download | emacs-5ee66afc6dd6db4a2c238dad54e9c4321dbb38c9.tar.gz |
(hack-local-variables): Don't signal an error if the local
variable section is not properly terminated.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 0fcbcb2a397..0dc8ba20b2d 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2860,7 +2860,10 @@ is specified, returning t if it is specified." (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))) |