[lisppaste-requests] XML-RPC: setting colorization-mode

Rüdiger Sonderfeld sonderfeld at gmail.com
Sun May 18 20:31:03 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
first of all great work! paste.lisp.org is the best pasting site!

But I have a feature request for the XML-RPC-mode. It would be great  
if the colorization-mode could be selected when using the newpaste  
method.

btw. I modified the example Emacs Lisp code if you are interested:

;; Paste to paste.lisp.org
(require 'xml-rpc)

(defvar lisppaste-nick "ruediger")
(defun paste-region-to-lisp-org (region-begin region-end)
   (interactive "r")
   (let* ((content (buffer-substring region-begin region-end))
          (title (read-from-minibuffer "Title: " (buffer-name)))
          (ret (xml-rpc-method-call "http://common-lisp.net:8185/RPC2"
                                    'newpaste "None" lisppaste-nick  
title
                                    content))
          (url-beg (search "http://" ret))
          (url-end (search " " ret :start2 url-beg))
          (url (substring ret url-beg url-end)))
     (print ret)
     (browse-url url)
     url))

Best Regards,
Rüdiger Sonderfeld


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkgwkgkACgkQQaHusPTr7k28xwCfYGPHNYI1oJ5CQsr3D/neP8yw
864AoKSUG88yLWiOMuXxKG5fn+pVU6uE
=wu7F
-----END PGP SIGNATURE-----



More information about the lisppaste-requests mailing list