Skip to content

Emacs package 0.1.2

Choose a tag to compare

@nivaca nivaca released this 17 Nov 19:40
· 2 commits to main since this release

A file that is not trusted is now hard to miss, and can be trusted on request. py-xmlvalidate.py is unchanged (1.15).

Flymake checks only the files in trusted-content, and this package keeps that rule: the schema a document names is run by Saxon, whose XPath can read files and fetch URLs. Until now the package said so only in a passing message, so a document opened from, say, ~/Downloads was never checked as you typed, and only py-xmlvalidate-report showed its Schematron errors.

  • Opening an untrusted file shows a warning in the *Warnings* buffer, once per file, with the line to add to your init file.
  • M-x py-xmlvalidate-trust-file asks whether to trust the file alone or its folder, adds it to trusted-content for the session, starts checking, and puts the line that keeps it in the kill ring.
  • py-xmlvalidate-check and py-xmlvalidate-refresh-schema explain why they cannot run on an untrusted file, and py-xmlvalidate-report ends with the same note.

Trust single files rather than folders like ~/Downloads/, where files from elsewhere arrive.

With Straight, M-x straight-pull-package RET py-xmlvalidate, then restart Emacs (or reload the package).

File: py-xmlvalidate-emacs-v0.1.2.zip, the scripts, the Emacs package and the documentation.