diff options
| author | Glenn Morris | 2013-05-13 22:42:17 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-05-13 22:42:17 -0400 |
| commit | 61aaeb01ce01f380c8e7033a6a0fc4849eaed3f8 (patch) | |
| tree | 80a8a8ef6d52aa352883108402c9b149ec0d742b | |
| parent | 29efd4698b7393c3df7c7419b3c250f29ef7497c (diff) | |
| download | emacs-61aaeb01ce01f380c8e7033a6a0fc4849eaed3f8.tar.gz emacs-61aaeb01ce01f380c8e7033a6a0fc4849eaed3f8.zip | |
* lisp/progmodes/flymake.el (flymake-xml-program): New option.
(flymake-xml-init): Use it.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 29231c7d8ec..75002528d21 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-05-14 Glenn Morris <rgm@gnu.org> | 1 | 2013-05-14 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/flymake.el (flymake-xml-program): New option. | ||
| 4 | (flymake-xml-init): Use it. | ||
| 5 | |||
| 3 | * term/xterm.el: Provide a feature. | 6 | * term/xterm.el: Provide a feature. |
| 4 | 7 | ||
| 5 | * term/sup-mouse.el: Move to obsolete/. Provide a feature. | 8 | * term/sup-mouse.el: Move to obsolete/. Provide a feature. |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 0eb59bd06c3..79bccd138ee 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -257,6 +257,13 @@ are the string substitutions (see `format')." | |||
| 257 | :version "23.1" | 257 | :version "23.1" |
| 258 | :group 'tools) | 258 | :group 'tools) |
| 259 | 259 | ||
| 260 | (defcustom flymake-xml-program | ||
| 261 | (if (executable-find "xmlstarlet") "xmlstarlet" "xml") | ||
| 262 | "Program to use for XML validation." | ||
| 263 | :type 'file | ||
| 264 | :group 'flymake | ||
| 265 | :version "24.4") | ||
| 266 | |||
| 260 | (defcustom flymake-allowed-file-name-masks | 267 | (defcustom flymake-allowed-file-name-masks |
| 261 | '(("\\.\\(?:c\\(?:pp\\|xx\\|\\+\\+\\)?\\|CC\\)\\'" flymake-simple-make-init) | 268 | '(("\\.\\(?:c\\(?:pp\\|xx\\|\\+\\+\\)?\\|CC\\)\\'" flymake-simple-make-init) |
| 262 | ("\\.xml\\'" flymake-xml-init) | 269 | ("\\.xml\\'" flymake-xml-init) |
| @@ -1852,7 +1859,9 @@ Use CREATE-TEMP-F for creating temp copy." | |||
| 1852 | 1859 | ||
| 1853 | ;;;; xml-specific init-cleanup routines | 1860 | ;;;; xml-specific init-cleanup routines |
| 1854 | (defun flymake-xml-init () | 1861 | (defun flymake-xml-init () |
| 1855 | (list "xml" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)))) | 1862 | (list flymake-xml-program |
| 1863 | (list "val" (flymake-init-create-temp-buffer-copy | ||
| 1864 | 'flymake-create-temp-inplace)))) | ||
| 1856 | 1865 | ||
| 1857 | (provide 'flymake) | 1866 | (provide 'flymake) |
| 1858 | 1867 | ||