Changes between Version 3 and Version 4 of EmacsWikiEditScript


Ignore:
Timestamp:
Feb 14, 2011, 11:19:07 AM (4 years ago)
Author:
hippiehacker
Comment:

Changes to xml-rpc.el reflected in patch...

Legend:

Unmodified
Added
Removed
Modified
  • EmacsWikiEditScript

    v3 v4  
    5252(add-hook 'kill-emacs-query-functions (lambda () (trac-wiki-commit-all-modified-buffers) t))
    5353}}}
     54
     55== Patch to trac-wiki.el to reflect changes in xml-rpc.el ==
     56
     57At some point xml-rpc.el changed the way it handles datetime. trac-wiki.el needs the patch below applied to use this new format.
     58
     59{{{
     60#!diff
     61 diff -E -b -u trac-wiki.el.1 trac-wiki.el
     62--- trac-wiki.el.1      2007-11-15 03:50:18.000000000 +1300
     63+++ trac-wiki.el        2011-02-14 23:08:27.000000000 +1300
     64@@ -1921,24 +1921,8 @@
     65 
     66 (defun trac-wiki-convert-to-readable-time-string (str)
     67   "Parse STR as ISO format time and return encoded time value."
     68-  (if (not (string-match (concat "\\`"
     69-                                "\\([0-9][0-9][0-9][0-9]\\)"
     70-                                "\\([0-9][0-9]\\)"
     71-                                "\\([0-9][0-9]\\)"
     72-                                "T"
     73-                                "\\([0-9][0-9]?\\)"
     74-                                ":"
     75-                                "\\([0-9][0-9]?\\)"
     76-                                ":"
     77-                                "\\([0-9][0-9]?\\)"
     78-                                "\\([-+][0-9][0-9][0-9][0-9]\\)?"
     79-                                "\\'")
     80-                        str))
     81-      (error "Invalid time format: %s" str)
     82-    (apply 'format "%s-%s-%s %s:%s:%s%s"
     83-          (append (mapcar (lambda (n)
     84-                            (or (match-string n str) ""))
     85-                          '(1 2 3 4 5 6 7))))))
     86+  (xml-rpc-datetime-to-string str)
     87+)
     88}}}