make-news-html-file: Don’t assume NEWS has local variables

* admin/admin.el (make-news-html-file): Don't error if no "Local
variables" section is found.

Copyright-paperwork-exempt: yes
This commit is contained in:
Peter Oliver 2026-08-25 13:25:12 +01:00 committed by Sean Whitton
parent 5c5362a3e8
commit 99f8ed8d46

View file

@ -955,7 +955,7 @@ $Date: %s $
;; Delete buffer local variables. ;; Delete buffer local variables.
(goto-char (point-max)) (goto-char (point-max))
(when (re-search-backward "Local variables:") (when (re-search-backward "Local variables:" nil t)
(forward-line -1) (forward-line -1)
(delete-region (point) (point-max))) (delete-region (point) (point-max)))