mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(hack-local-variables): Don't signal an error if the local
variable section is not properly terminated.
This commit is contained in:
parent
d338d019e4
commit
5ee66afc6d
2 changed files with 7 additions and 1 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue