Labels in gblogger

2 views
Skip to first unread message

Joseph Fahey

unread,
Jul 25, 2007, 10:32:43 AM7/25/07
to emacs-g-client
Hi all,

I realized that the Blogger API allows labels, so I've coded up an
gblogger-add-label function, since it seemed like a useful thing. Here
it is:


(defun gblogger-add-label () "Adds labels to gblogger entry."
(interactive)
(let ((label (read-from-minibuffer "Tag? ")))
(save-excursion
(goto-char (point-min))
(search-forward "</title>")
(insert
"\n"
"<category scheme=\"http://www.blogger.com/atom/ns#\" term=\""
label
"\"/>"))))

I also added "atom:category" to the list of tags in blogger-edit-
post.xsl:

<xsl:template match="atom:category|atom:id|atom:issued|atom:modified|
atom:created|atom:published|atom:updated"/>

And it works! (for me anyway)

-- Joe

ramanraman

unread,
Jul 30, 2007, 12:54:00 PM7/30/07
to emacs-g-client
I've checked in a slightly modified version of this function.
Reply all
Reply to author
Forward
0 new messages