Leo,

It looks like I've lost the admin password for mailman, so I couldn't
approve your email to the list.  Once I have the password changed, I'll
authorize your email address to post to the list.  Your original email
is below.

The following patch fixes lisppaste to work with the new xml-rpc.el.
I've emailed the author of that package and put the modification on
emacswiki.

--- lisppaste.el~       2009-09-13 21:54:13.235164438 -0400
+++ lisppaste.el        2009-09-13 21:56:33.031180619 -0400
@@ -180,11 +180,14 @@
   "Clean an iso8601 TIME string to return YYYY-MM-DD.
 
 Not very robust."
+  (if (listp time)                      ; new style xml-rpc
+      (format-time-string "%Y-%m-%d" (cadr time))
+
   (if (string-match "^\\(....\\)\\(..\\)\\(..\\)T..:..:..$" time)
       (format "%s-%s-%s" (match-string 1 time)
                          (match-string 2 time)
                          (match-string 3 time))
-    (error "Invalid time format `%s'" time)))
+    (error "Invalid time format `%s'" time))))
 
 (defvar lisppaste-creation-help
   (concat ";; Enter your paste below, and press C-c C-c to send.\n"

Diff finished.  Sun Sep 13 21:56:59 2009

HTH,

Mark.


Leo <sdl....@gmail.com> writes:

> On 2009-09-13 07:57 +0100, Mark A. Hershberger wrote:
>> Thank you all for your great bug reports.  I installed a MT weblog as
>> If you were experiencing problems in the past, please get the following
>> versions and notify me of any new problems:
>>
>>     xml-rpc.el   - 1.6.6 - http://www.emacswiki.org/emacs/xml-rpc.el
>>     weblogger.el - 1.4.3 - http://www.emacswiki.org/emacs/weblogger.el
>
> It seems lisppaste.el is not working with 1.6.6.
>
> To reproduce the error:
>
> 1   M-x lisppaste
> 2   l p 5 RET
>
> Backtrace:
>
> Debugger entered--Lisp error: (error "Invalid date: 20090913T11:46:05")
>   signal(error ("Invalid date: 20090913T11:46:05"))
>   error("Invalid date: %s" "20090913T11:46:05")
>   date-to-time("20090913T11:46:05")
>   xml-rpc-xml-list-to-value(((value nil (dateTime\.iso8601 nil
>   "20090913T11:46:05"))))
[…]
>   call-interactively(lisppaste-list-recent-pastes nil nil)

-- 
http://hexmode.com/

Every day, mindful practice.  When the mind is disciplined, then the
Way can work for us.  Otherwise, all we do is talk of the Way; everything
is just words; and the world will know us as its one great fool.


_______________________________________________
Emacsweblogs mailing list
Emacsweblogs@nongnu.org
http://lists.nongnu.org/mailman/listinfo/emacsweblogs

Reply via email to