<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,22 +37,25 @@
 (defun halp-update-python ()
   (interactive)
   (halp-find-helpers-directory)
-  (halp-update/diff (concat halp-helpers-directory 
-			    (pick-by-os &quot;pyhalp.py&quot; &quot;pyhalp.bat&quot;)) 
-                    (list (buffer-name (current-buffer)))))
+  (halp-py-update/diff (concat halp-helpers-directory &quot;pyhalp.py&quot;) 
+		       (list (buffer-name (current-buffer)))))
 
 (defun halp-update-javascript ()
   (interactive)
   (halp-find-helpers-directory)
-  (halp-update/diff (concat halp-helpers-directory &quot;v8halp.py&quot;) '()))
+  (halp-py-update/diff (concat halp-helpers-directory &quot;v8halp.py&quot;) '()))
 
 (defun halp-update-haskell ()
   (interactive)
-  (halp-update-relative (pick-by-os &quot;ghcihalp.py&quot; &quot;ghcihalp.bat&quot;) '(&quot;.hs&quot;)))
+  (halp-py-update-relative &quot;ghcihalp.py&quot; '(&quot;.hs&quot;)))
 
 (defun halp-update-literate-haskell ()
   (interactive)
-  (halp-update-relative (pick-by-os &quot;ghcihalp.py&quot; &quot;ghcihalp.bat&quot;) '(&quot;.lhs&quot;)))
+  (halp-py-update-relative &quot;ghcihalp.py&quot; '(&quot;.lhs&quot;)))
+
+(defun halp-py-update-relative (command args)
+  (halp-find-helpers-directory)
+  (halp-update &quot;python&quot; (cons (concat halp-helpers-directory command) args)))
 
 (defun halp-update-relative (command args)
   (halp-find-helpers-directory)
@@ -86,6 +89,9 @@ loaded from, if it's not yet initialized.&quot;
              (message &quot;Halp starting... helper process failed&quot;))
             (t (message rc))))))
 
+(defun halp-py-update/diff (command args)
+  (halp-update/diff &quot;python&quot; (cons command args)))
+
 (defun halp-update/diff (command args)
   &quot;Update the current buffer using an external helper program
 that outputs a diff.&quot;
@@ -177,11 +183,6 @@ that outputs a diff.&quot;
 (defun halp-from (start)
   (buffer-substring start (point)))
 
-(defun pick-by-os (default-file windows-file)
-  (if (eq system-type 'windows-nt)
-      windows-file
-    default-file))
-
 ;; Wrap-up
 
 (halp-add-all-hooks)</diff>
      <filename>halp.el</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>ghcihalp.bat</filename>
    </removed>
    <removed>
      <filename>pyhalp.bat</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>f6a0efd2b02ebbfcd00d85ef71a4e04214cf9a3d</id>
    </parent>
  </parents>
  <author>
    <name>Nada Amin</name>
    <email>namin@alum.mit.edu</email>
  </author>
  <url>http://github.com/darius/halp/commit/d16fa326428e352ec795935bcaf745706450c9f3</url>
  <id>d16fa326428e352ec795935bcaf745706450c9f3</id>
  <committed-date>2008-12-20T22:45:26-08:00</committed-date>
  <authored-date>2008-12-20T14:09:20-08:00</authored-date>
  <message>avoid .bat files by changing halp.el to invoke subprocesses explicitly with python

Signed-off-by: Darius Bacon &lt;darius_bacon@yahoo.com&gt;</message>
  <tree>620f767fa79e95ab32b3a51b9cba9b6f7789bb1a</tree>
  <committer>
    <name>Darius Bacon</name>
    <email>darius_bacon@yahoo.com</email>
  </committer>
</commit>
