slh
12 years agoNew signature feature and self-promotion.
Steve Youngs [Sat, 25 Jun 2011 06:23:59 +0000 (16:23 +1000)]
New signature feature and self-promotion.

This patchset brings some shameless self-promotion by adding a byline to
the bottom of a post: "Posted via: SXEmacs/LJ (version string)".  It is in
a fairly small font and out of the way so should be reasonably
inconspicuous, but you can turn it off if you want to with...

  (setq lj-self-promote nil)

There's a new user variable, `lj-signature', the value of which is
inserted at the bottom of the post buffer if it is non-nil.  It is
inserted verbatim, so making it pretty (HTML formatting) is up to the
user.

     * lj.el (lj-byline): New.  Nothing wrong with a bit of
self-advertising, I reckon. ;-)

     * lj.el (lj-self-promote): New.  When non-nil tell the world that
     you use sexy software.

     * lj.el (lj-post): Optionally add the byline.

     * lj.el (lj-preview): Include byline in preview.

     * lj.el (lj-validate): Ditto.

     * lj.el (lj-signature): New.  Lets you include a sig at the bottom
     of a post.

     * lj.el (lj-generate-new-buffer): Insert the signature if it is set.

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

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoUpdate Writer's Block code to pre-fill Subject header.
Steve Youngs [Fri, 24 Jun 2011 06:28:19 +0000 (16:28 +1000)]
Update Writer's Block code to pre-fill Subject header.

* lj.el (lj-parse-qotd-archive): Fix regexp.

* lj.el (lj-qotd-subject): New.  Pre-fills the Subject header with
the title of the Writer's Block question.

* lj.el (lj-narrow-to-qotd): Use it.

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

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoTweak the validation code a bit. Make it check for more problems
Steve Youngs [Fri, 24 Jun 2011 01:02:46 +0000 (11:02 +1000)]
Tweak the validation code a bit.  Make it check for more problems

* lj.el (lj-validate-footer): Massage the validation command to
check for and warn about more things.

* lj.el: Add blurb about validating in commentary section.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoFix an infinite loop, and disable twitter updates
Steve Youngs [Thu, 23 Jun 2011 07:36:48 +0000 (17:36 +1000)]
Fix an infinite loop, and disable twitter updates

* lj.el (lj-get-cookies): Fix infinite loop when flavour is auto.

* lj.el (lj-post): Don't attempt to update Twitter.  It's broke.
Erm, I mean that SXEmacs/LJ twitter updating is broken, not that
Twitter itself is broken... at least not all the time. :-P

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

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoQuick doc fix
Steve Youngs [Tue, 21 Jun 2011 04:38:13 +0000 (14:38 +1000)]
Quick doc fix

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoAdd xz and lzma support to dired-tar.el
Steve Youngs [Tue, 21 Jun 2011 04:07:57 +0000 (14:07 +1000)]
Add xz and lzma support to dired-tar.el

* dired-tar.el (dired-tar-compress-with): Add lzma and xz
  (dired-tar-lzma-extension): New.
  (dired-tar-xz-extension): New.
  (dired-tar-lzma-command): New.
  (dired-tar-xz-command): New.
  (dired-tar-unlzma-command): New.
  (dired-tar-unxz-command): New.
  (dired-tar-pack): Handle xz and lzma as well.
  (dired-tar-lzma-tarfile-regexp): New.
  (dired-tar-xz-tarfile-regexp): New.
  (dired-tar-unpack): Handle xz and lzma as well.
  (dired-tar-pack-unpack): Update doc string to
  mention xz and lzma.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoInitial import from tla sources v1.0
Steve Youngs [Tue, 21 Jun 2011 03:17:42 +0000 (13:17 +1000)]
Initial import from tla sources

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