From d9476016c368d94b0dc9c58f30f05dd1dba1c065 Mon Sep 17 00:00:00 2001 From: Sam Graham Date: Sun, 28 Oct 2012 23:41:15 +0000 Subject: [PATCH] Fix xmlstarlet switches. (Contributed by @marcinant) --- Changes | 5 +++++ flymake.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 4ebc439..61dea9b 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ +* flymake.el 0.4.13 (2012-10-28-23:19) + * Use -e option to xmlstarlet XML validation so that line errors are captured and + exit code doesn't disable flymake. + (Contributed by @marcinant.) + * flymake.el 0.4.12 (2012-07-23-09:29) * Use file-truename in flymake-create-temp-inplace to ensure tempfile names are in normal form. (Contributed by @arnested.) diff --git a/flymake.el b/flymake.el index fd171cf..02bdf9d 100644 --- a/flymake.el +++ b/flymake.el @@ -4,7 +4,7 @@ ;; Author: Pavel Kobyakov ;; Maintainer: Sam Graham -;; Version: 0.4.12 +;; Version: 0.4.13 ;; Keywords: c languages tools ;; This file is part of GNU Emacs. @@ -2163,7 +2163,7 @@ wish to have supplied to Perl -I." ;;;; xml-specific init-cleanup routines (defun flymake-xml-init () - (list "xmlstarlet" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-copy)))) + (list "xmlstarlet" (list "val" "-e" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-copy)))) (provide 'flymake)