
(message "*filename*=%s" *filename*)

(require 'cl)

(assert (boundp '*filename*))
(assert *filename*)

;;(setq *filename* "~/hairy-lemon/output/50webs-com/activism.html")

(if (not (fboundp 'read-only-mode))
    (defun read-only-mode (&optional arg)
      "P"
      (toggle-read-only arg)))

(progn
  (find-file *filename*)
  (read-only-mode -1)
  (goto-char (point-min))
  (while (looking-at "[ \t\r\n]")
    (delete-char 1))
  (when (search-forward "-->" nil t)
    (forward-line 1)
    (beginning-of-line)
    (while (looking-at "[ \t\r\n]")
      (delete-char 1))
    (condition-case err
      (save-buffer 0)
      (error "error message: %s" err))
    (kill-buffer nil)
    ))
