Group: news.software.readers
From: Ohmster
Date: Friday, September 07, 2007 12:00 AM
Subject: Re: Ping OHMSTER

Ohmster wrote in news:Xns99A4485B663EMyBigKitty@
:

> So how can I incorporate this info into your macro to make it useful in
> newspost?

Blinky,

I modified the line to work with newspost as such:

au BufNewFile,BufRead ~/.article,
~/.followup,/tmp/ohmster_newspost/newspost-* :nmap gg/^$V/^--
${gq^

Now this _does_ work, however, it does not work on the first paragraph in
the article. I just don't get it. I tried it with several different
posts, long ones, several paragraphs, long paragraphs, short ones, many,
and few. No matter what, the F5 macro does work but ignors the first
paragraph. What gives, how come this ignores the first paragraph?

This shows how newspost creates temp files:

[ohmster@ohmster ohmster_newspost]$ pwd
/tmp/ohmster_newspost
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:19 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:19 newspost-mEldwU
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:20 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:20 newspost-HN4MMs
[ohmster@ohmster ohmster_newspost]$

The filename is always "newspost-" with 6 random characters after it so I
made the line look like this:

/tmp/ohmster_newspost/newspost-*

That should cover it and it does because the macro now finds the temp
file and goes to work on it, just that it always ignores the first
paragraph. This is a cool macro and I really need it for this, how can I
fix it to make it work on ALL paragraphs and not ignore the first
paragraph?

Thanks.

--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.