Edit or delete old posts.
authorSteve Youngs <steve@sxemacs.org>
Thu, 30 Jun 2011 04:25:29 +0000 (14:25 +1000)
committerSteve Youngs <steve@sxemacs.org>
Thu, 30 Jun 2011 04:25:29 +0000 (14:25 +1000)
commit83984dc00ddbdfb05d68d6881ee5c38cfab04548
tree204673a81f8899f1b7f4173c44ed293d5c32805b
parent5a714f07e2720266a67d218f90b0c17877a804b2
Edit or delete old posts.

This patchset adds the ability to edit (including delete) Livejournal
entries that have already been posted to Livejournal.

There are three caveats to this:

  1) For it to work, `lj-archive-posts' must be t (now the default).

  2) You can't edit/delete a post that wasn't originally posted from
     SXEmacs/LJ (that has the editing/deletion features)

  3) Post date/time cannot be altered.  You either get it right when
     you post the entry the first time, or you edit the date from the
     Livejournal site.

Yes, I know that is a little sucky, but hopefully that won't be the
case for long.  I am working on ways to eliminate at least the 2nd
caveat.

* lj.el (lj-post-proc-parser): Save the itemid as well.

* lj.el (lj-item-id): New.  Stores the itemid from the just posted
journal entry.

* lj.el (lj-archive-post): Put the itemid and permalink at the top
of the achived post.

* lj.el (lj-stringify-id): New.  Turns an itemid into a string.

* lj.el (lj-delete-post-internal): New.

* lj.el (lj-delete-post-proc-parser): New.

* lj.el (lj-header-regexp): Add X-LJ-URL, X-LJ-ItemID

* lj.el (lj-header-itemid): New face.

* lj.el (lj-header-url): New face.

* lj.el (lj-font-lock-keywords): Add X-LJ-URL and X-LJ-ItemID
headers.

* lj.el (lj-goto-x-lj-url): New.

* lj.el (lj-goto-x-lj-itemid): New.

* lj.el (lj-edit-old-post): New.

* lj.el (lj-construct-url): Update to allow for editing old posts.

* lj.el (lj-archive-post): Handle editing old posts.

* lj.el (lj-generate-new-buffer): Lose some whitespace being
injected into the created buffer.

* lj.el (lj-delete-old-post): New.

* lj.el (lj-archive-posts): Change default to t.

* lj.el (lj-version): Bump.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
lj.el