Wednesday, October 27, 2010

Emacs 22.1 uses xml instead of xmlstarlet

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447378

The diff is pretty much:

diff -Naur emacs-22.1/lisp/progmodes/flymake.el emacs-22.1-flymake-xmlstarlet/lisp/progmodes/flymake.el
--- emacs-22.1/lisp/progmodes/flymake.el 2007-03-31 17:10:12.000000000 +0300
+++ emacs-22.1-flymake-xmlstarlet/lisp/progmodes/flymake.el 2007-10-20 17:20:04.794349104 +0300
@@ -1756,7 +1756,7 @@
 
 ;;;; xml-specific init-cleanup routines
 (defun flymake-xml-init ()
-  (list "xml" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace))))
+  (list "xmlstarlet" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace))))
 
 (provide 'flymake)
 

One alternative instead of directly patching the flymake.el file is:

sudo apt-get install xmlstarlet
sudo ln -s /usr/bin/xmlstarlet /usr/bin/xml

1 comment: