Thread View: news.software.readers
26 messages
26 total messages
Started by Sandman
Thu, 24 Oct 2013 18:06
Some more slrn questions
Author: Sandman
Date: Thu, 24 Oct 2013 18:06
Date: Thu, 24 Oct 2013 18:06
33 lines
2779 bytes
2779 bytes
1. Keyboard navigation I've seen that you can set up your own keyboard commands using the "call" (?) command in special script files. Is there a good reference for the commands youc an call and the construction of these script files? 2. Piping posts So, what I would love is for slrn, when I hit "f", to pipe the current post to a perl script, which massages it the way I want to and then opens it in the editor of my choice, and when saved, I go back to slrn. How would such a process work and look like, if possible? 3. Switch back to slrn from editor Is there a way to switch back to slrn from the editor, without affecting the editor? I mean, can I suspend pico, go back to slrn and rummage around in posts and then go back to the currently composing message in pico, save it and then send it? 4. Script command without script The slrn macros seem to have access to specific commands (or add commands), but slrn doesn't have a prompt, does it? All these commands are only accessible via keyboard shortcuts, or? Bringing up a prompt to execute, or list, commands would be neat. Especially when reading posts, where you may want to have scripts/macros that do other stuff to the post than just reply to it (save it to a DB, special formatting or whatever) and bringing up a prompt and type "save2db" for a command in those rare cases would be way more useful than having to attach it to a keyboard command. As earlier - more questions are bound to follow. Thanks for your patience. -- Sandman[.net]
Re: Some more slrn questions
Author: Mike Easter
Date: Thu, 24 Oct 2013 19:18
Date: Thu, 24 Oct 2013 19:18
21 lines
1747 bytes
1747 bytes
Sandman wrote: <snip qx> There used to be Andrew's Corner of the Web which was full of great slrn stuff. That andrew contributed to/ wrote/ this Ub doc page https://help.ubuntu.com/community/slrn This page has drawn heavily from information contained on the slrn website, from the now defunct slrn page on Andrew's Corner of the Web and also from guidance and advice obtained from the users of news.software.readers. I used the wayback machine but the only andrew pages I could find about slrn in the years that I looked at were for compiling slrn in Win7 & Win8 and associated Win-slrn activities. -- Mike Easter
Re: Some more slrn questions
Author: andrew
Date: Thu, 24 Oct 2013 23:56
Date: Thu, 24 Oct 2013 23:56
11 lines
1466 bytes
1466 bytes
On 2013-10-24, Mike Easter <MikeE@ster.invalid> wrote: > There used to be Andrew's Corner of the Web which was full of great > slrn stuff. Life has taken me on a few interesting journeys lately and one casualty was Andrew's Corner :( Andrew -- Do you think that's air you're breathing?
Re: Some more slrn questions
Author: Mike Dee
Date: Fri, 25 Oct 2013 00:40
Date: Fri, 25 Oct 2013 00:40
12 lines
1962 bytes
1962 bytes
Mike Easter wrote: > I used the wayback machine but the only andrew pages I could find > about slrn in the years that I looked at were for compiling slrn > in Win7 & Win8 and associated Win-slrn activities. The last example of Andrew's (non Win-7) slrn page I could see on the Wayback Machine was for August 2008. Grab it from here: <http://web.archive.org/web/20080820002622/http://www.andrews-corner.org/slrn.html> -- dee
Re: Some more slrn questions
Author: Mike Dee
Date: Fri, 25 Oct 2013 00:57
Date: Fri, 25 Oct 2013 00:57
13 lines
2065 bytes
2065 bytes
Mike Dee wrote: > The last example of Andrew's (non Win-7) slrn page I could see on > the Wayback Machine was for August 2008. Grab it from here: > <http://web.archive.org/web/20080820002622/http://www.andrews-corner.org/slrn.html> Which also led me to this really excellent slrn page on the Wayback Machine by Troy Piggins, who used to be a regular here (still about?). <http://web.archive.org/web/20080720022237/http://piggo.com/~troy/slrn> -- dee
--
Author: Jeff-Relf.Me
Date: Fri, 25 Oct 2013 03:20
Date: Fri, 25 Oct 2013 03:20
5 lines
1396 bytes
1396 bytes
<PRE Style='White-Space: PRE !important; Font-Size: 18px !important;Font-Family: DejaVu Sans Mono, monospace !important;'> > Life has taken me on a few interesting journeys lately, > and one casualty was Andrew's Corner :( Why ? What happened, pray tell.
Re: Andrews-Corner.ORG
Author: andrew
Date: Fri, 25 Oct 2013 23:21
Date: Fri, 25 Oct 2013 23:21
15 lines
1791 bytes
1791 bytes
On 2013-10-25, Jeff-Relf.Me <> wrote: >> Life has taken me on a few interesting journeys lately, >> and one casualty was Andrew's Corner :( > > Why ? What happened, pray tell. If we meet one day we could swap life stories over a long hot cup of herbal tea perhaps :). Although Andrews Corner is now defunct I still look after the slrn site, whch could do with a good spring clean now I have a closer look... Andrew -- Do you think that's air you're breathing?
--
Author: Jeff-Relf.Me
Date: Fri, 25 Oct 2013 23:43
Date: Fri, 25 Oct 2013 23:43
11 lines
1587 bytes
1587 bytes
@andrew, I can't imagine why the "Andrew's Corner" story would be so long that you couldn't relate it here. Are you in Seattle, or rich enough to fly here ? I'd love to meet you face⋅to⋅face. Personally, I hate cars/plains/etc.; I don't do travel. > I still look after the slrn site Which site ? You don't promote it, apparently.
Re: Andrews-Corner.ORG
Author: andrew
Date: Sat, 26 Oct 2013 00:32
Date: Sat, 26 Oct 2013 00:32
20 lines
1986 bytes
1986 bytes
On 2013-10-25, Jeff-Relf.Me <> wrote: > Are you in Seattle, or rich enough to fly here ? > > I'd love to meet you face⋅to⋅face. > Personally, I hate cars/plains/etc.; I don't do travel. Actually a fair way from Seattle, I live in Australia :) >> I still look after the slrn site > > Which site ? You don't promote it, apparently. Home of the slrn newsreader http://slrn.sourceforge.net/ Andrew -- Do you think that's air you're breathing?
--
Author: Jeff-Relf.Me
Date: Sat, 26 Oct 2013 02:30
Date: Sat, 26 Oct 2013 02:30
6 lines
1375 bytes
1375 bytes
You (@andrew) maintain: http://slrn.sourceforge.net/ How cool is that ? ! You're the man. John E. Davis isn't around much, I noticed. Do you know what year the jed editor first appeared ?
Re: Andrews-Corner.ORG
Author: andrew
Date: Sat, 26 Oct 2013 08:21
Date: Sat, 26 Oct 2013 08:21
22 lines
2299 bytes
2299 bytes
On 2013-10-26, Jeff-Relf.Me <> wrote: > You (@andrew) maintain: http://slrn.sourceforge.net/ > > How cool is that ? ! You're the man. Probably not all that cool :). I initially used a lot of the material from the previous website, changed the format to a flexible css driven standards-based layout and then added some new material. It does not need a huge amount of routine work although I can see a few rough edges at the moment. > John E. Davis isn't around much, I noticed. > Do you know what year the jed editor first appeared ? JED is a busy man and like a lot of Open Source developers jed, slrn and friends are worked on in his spare time. And I have to confess that I have never actually used jed so I am defnitely not the man to ask :(. Andrew -- Do you think that's air you're breathing?
Re: Some more slrn questions
Author: Adam Funk
Date: Wed, 30 Oct 2013 10:54
Date: Wed, 30 Oct 2013 10:54
59 lines
2884 bytes
2884 bytes
On 2013-10-24, Sandman wrote:
> 2. Piping posts
> So, what I would love is for slrn, when I hit "f", to pipe the current post
> to a perl script, which massages it the way I want to and then opens it in
> the editor of my choice, and when saved, I go back to slrn. How would such
> a process work and look like, if possible?
Sorry if this has already been answered in this thread, but I have
something just like this for custom-forwarding. Here's the line in my
~/.slrnrc file:
#v+
interpret ".slrn/forward-custom.sl"
#v-
That refers to the following forward-custom.sl file:
#v+
define custom_forward ()
{
variable filename, return_code, ext_cmd;
filename = strcat("/tmp/slrnfwd-", string(_time()), "-", string(getpid()), ".news");
return_code = save_current_article(filename);
if (return_code != 0) return(return_code);
ext_cmd = strcat("~/.slrn/forward-custom.perl ", filename);
return_code = system(ext_cmd);
if (return_code != 0) return(return_code);
return_code = remove(filename);
if (return_code != 0) return(return_code);
}
definekey ("custom_forward", "F", "article");
#v-
The forward-custom.perl script is a horrible mess that I now have
trouble reading, but it reads the temp file, fiddles with it,
overwrites it, then calls:
#v+
$status = system('emacs', '-nw', $edit_file, '-f', 'mail-mode');
#v-
The perl script waits there until emacs finishes, then ends & passes
control back to the slrn custom_forward, which in my case does nothing
else (I have to use the emacs mail-mode keys to send the mail message
after editing it).
HTH.
--
The internet is quite simply a glorious place. Where else can you find
bootlegged music and films, questionable women, deep seated xenophobia
and amusing cats all together in the same place? [Tom Belshaw]
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 11:12
Date: Wed, 30 Oct 2013 11:12
52 lines
2688 bytes
2688 bytes
In article <0557kaxdl.ln2@news.ducksburg.com>, Adam Funk wrote: > > Sandman: > > 2. Piping posts So, what I would love is for slrn, when I hit "f", > > to pipe the current post to a perl script, which massages it the > > way I want to and then opens it in the editor of my choice, and > > when saved, I go back to slrn. How would such a process work and > > look like, if possible? > Sorry if this has already been answered in this thread, but I have > something just like this for custom-forwarding. Here's the line in > my ~/.slrnrc file: <snip> I've snipped out your code, because I am curently working with this function, and it "massaged" your code a bit too much :) My version of this just look like this: set editor_command "~/bin/quote.php; pico +8,1 -r 75 -Y followup" Which runs ~/bin/quote.php before editing ~/.followup. Now, the problem I'm having is that i can't choose when/if I want to run this command. Your approach seems to deal with this, since you have set "F" to run your script. But - your script seems to save the current article to the /tmp dir and then the perl script edits that. But I want to edit the ~/.followup file that slrn creates when I hit "f" and then resume normal operations. So basically, the normal chain is as such: 1. hit "f" in slrn 2. slrn creates ~/.followup 3. slrn invokes editor_command I want to be able, like you, create an alternate chain here, and not insert in my "hook" in the editor_command, so this is the chain I'd like: 1. hit "F" in slrn 2. slrn creates ~/.followup 3. script runs ~/bin/quote.php 4. slrn invokes editor_command Any idea? Thanks for your input either way! -- Sandman[.net]
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 13:47
Date: Wed, 30 Oct 2013 13:47
40 lines
2230 bytes
2230 bytes
In article <0557kaxdl.ln2@news.ducksburg.com>, Adam Funk <a24061@ducksburg.com> wrote:
> > 2. Piping posts
> > So, what I would love is for slrn, when I hit "f", to pipe the current post
> > to a perl script, which massages it the way I want to and then opens it in
> > the editor of my choice, and when saved, I go back to slrn. How would such
> > a process work and look like, if possible?
>
> Sorry if this has already been answered in this thread, but I have
> something just like this for custom-forwarding. Here's the line in my
> ~/.slrnrc file:
I have now solved this! Partly with your help.
My .slrnc:
interpret "/home/sandman/bin/slrn/sandman.sl"
sandman.sl:
define quote_post ()
{
set_string_variable ("editor_command", "~/bin/quote.php; pico +8,1
-r 75 -Y followup");
call ("followup");
set_string_variable ("editor_command", "pico +8,1 -r 75 -Y
followup");
}
definekey ("quote_post", "r", "article");
(sorry about the wrapping)
So, hitting "f" creates a normal followup, but hitting "r" changes the
editor_command, follows up, then changes it back.
So now I can decide whether or not I want to run the preprocessor
--
Sandman[.net]
Re: Some more slrn questions
Author: Lewis
Date: Wed, 30 Oct 2013 14:11
Date: Wed, 30 Oct 2013 14:11
55 lines
3286 bytes
3286 bytes
In message <slrnl723r5.gkl.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> In article <0557kaxdl.ln2@news.ducksburg.com>, Adam Funk <a24061@ducksburg.com> wrote:
>> > 2. Piping posts
>> > So, what I would love is for slrn, when I hit "f", to pipe the current post
>> > to a perl script, which massages it the way I want to and then opens it in
>> > the editor of my choice, and when saved, I go back to slrn. How would such
>> > a process work and look like, if possible?
>>
>> Sorry if this has already been answered in this thread, but I have
>> something just like this for custom-forwarding. Here's the line in my
>> ~/.slrnrc file:
> I have now solved this! Partly with your help.
> My .slrnc:
> interpret "/home/sandman/bin/slrn/sandman.sl"
> sandman.sl:
#v+
define quote_post ()
{
set_string_variable ("editor_command", "~/bin/quote.php; pico +8,1 -r 75 -Y followup");
call ("followup");
set_string_variable ("editor_command", "pico +8,1 -r 75 -Y followup");
}
definekey ("quote_post", "r", "article");
#v-
(tthis is the sort of thing #v+ and #v- were invented for)
> So, hitting "f" creates a normal followup, but hitting "r" changes the
> editor_command, follows up, then changes it back.
Where are you setting r the first time? and WHy aren't you using
post_editor_command
mail_editor_command
instead?
set mail_editor_command "~/bin/quote.php; pico....
set post_editor_command "pico ....
there is nothing sauing that mail_editor has to be for mailing. Since
I never send emails to USENET poster, I used to double the commands
myself to do slightly different things if I hit r or f.
--
"Queen Isabella and King Ferdinand kicked 200,000 Jews out of Spain, one
of the first acts of the Spanish Inquisition, which no one ever expects
" -- John Carroll's 21st Annual Xmas Quiz answers
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 15:08
Date: Wed, 30 Oct 2013 15:08
56 lines
2839 bytes
2839 bytes
In article <slrnl724rp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> > I have now solved this! Partly with your help.
>
> > My .slrnc:
>
> > interpret "/home/sandman/bin/slrn/sandman.sl"
>
> > sandman.sl:
>
> #v+
> define quote_post ()
> {
> set_string_variable ("editor_command", "~/bin/quote.php; pico +8,1 -r 75 -Y followup");
> call ("followup");
> set_string_variable ("editor_command", "pico +8,1 -r 75 -Y followup");
> }
> definekey ("quote_post", "r", "article");
> #v-
>
> (tthis is the sort of thing #v+ and #v- were invented for)
Why? I've seen that before, but the script works without it, so why is it
there?
> > So, hitting "f" creates a normal followup, but hitting "r" changes the
> > editor_command, follows up, then changes it back.
>
> Where are you setting r the first time? and WHy aren't you using
First time? It is set in the S Lang file.
> post_editor_command
> mail_editor_command
>
> instead?
>
> set mail_editor_command "~/bin/quote.php; pico....
> set post_editor_command "pico ....
How would that help me? The mail_editor_command is default invoked by "r"
and creates a mail file (with "to:" headers instead of "newsgroups:"
headers) which wouldn't help me here.
> there is nothing sauing that mail_editor has to be for mailing. Since
> I never send emails to USENET poster, I used to double the commands
> myself to do slightly different things if I hit r or f.
Right, but I am editing the slrn-created post file, and when hitting "r"
which invokes the mail editor, the file created is not a usenet post.
Right?
--
Sandman[.net]
Re: Some more slrn questions
Author: Lewis
Date: Wed, 30 Oct 2013 15:19
Date: Wed, 30 Oct 2013 15:19
63 lines
3545 bytes
3545 bytes
In message <slrnl728ja.gr8.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> In article <slrnl724rp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> > I have now solved this! Partly with your help.
>>
>> > My .slrnc:
>>
>> > interpret "/home/sandman/bin/slrn/sandman.sl"
>>
>> > sandman.sl:
>>
>> #v+
>> define quote_post ()
>> {
>> set_string_variable ("editor_command", "~/bin/quote.php; pico +8,1 -r 75 -Y followup");
>> call ("followup");
>> set_string_variable ("editor_command", "pico +8,1 -r 75 -Y followup");
>> }
>> definekey ("quote_post", "r", "article");
>> #v-
>>
>> (tthis is the sort of thing #v+ and #v- were invented for)
> Why? I've seen that before, but the script works without it, so why is it
> there?
It has nothing to do with the SCRIPT, it has to do with the POST. Look
at your post, look at mine. See how they are different?
>> > So, hitting "f" creates a normal followup, but hitting "r" changes the
>> > editor_command, follows up, then changes it back.
>>
>> Where are you setting r the first time? and WHy aren't you using
> First time? It is set in the S Lang file.
Well, *normally* f is for followup and r is for reply-by-mail, right?
>> post_editor_command
>> mail_editor_command
>>
>> instead?
>>
>> set mail_editor_command "~/bin/quote.php; pico....
>> set post_editor_command "pico ....
> How would that help me? The mail_editor_command is default invoked by "r"
> and creates a mail file (with "to:" headers instead of "newsgroups:"
> headers) which wouldn't help me here.
>> there is nothing sauing that mail_editor has to be for mailing. Since
>> I never send emails to USENET poster, I used to double the commands
>> myself to do slightly different things if I hit r or f.
> Right, but I am editing the slrn-created post file, and when hitting "r"
> which invokes the mail editor, the file created is not a usenet post.
> Right?
Not necessarily.
--
Lisa Bonet ate no Basil
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 15:24
Date: Wed, 30 Oct 2013 15:24
52 lines
2952 bytes
2952 bytes
In article <slrnl728sp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > > Why? I've seen that before, but the script works without it, so why is it > > there? > > It has nothing to do with the SCRIPT, it has to do with the POST. Look > at your post, look at mine. See how they are different? No, I don't. You have to help me here. > >> > So, hitting "f" creates a normal followup, but hitting "r" changes the > >> > editor_command, follows up, then changes it back. > >> > >> Where are you setting r the first time? and WHy aren't you using > > > First time? It is set in the S Lang file. > > Well, *normally* f is for followup and r is for reply-by-mail, right? Yeah, and it's over-ridden in the S Lang file. > >> post_editor_command > >> mail_editor_command > >> > >> instead? > >> > >> set mail_editor_command "~/bin/quote.php; pico.... > >> set post_editor_command "pico .... > > > How would that help me? The mail_editor_command is default invoked by "r" > > and creates a mail file (with "to:" headers instead of "newsgroups:" > > headers) which wouldn't help me here. Well? > >> there is nothing sauing that mail_editor has to be for mailing. Since > >> I never send emails to USENET poster, I used to double the commands > >> myself to do slightly different things if I hit r or f. > > > Right, but I am editing the slrn-created post file, and when hitting "r" > > which invokes the mail editor, the file created is not a usenet post. > > Right? > > Not necessarily. Not necessarily...what? Slrn won't necessarily invoke the mail editor when hitting "r"? You're being very cryptic here. -- Sandman[.net]
Re: Some more slrn questions
Author: Adam Funk
Date: Wed, 30 Oct 2013 16:41
Date: Wed, 30 Oct 2013 16:41
20 lines
1845 bytes
1845 bytes
On 2013-10-30, Sandman wrote: > In article <slrnl728sp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > >> > Why? I've seen that before, but the script works without it, so why is it >> > there? >> >> It has nothing to do with the SCRIPT, it has to do with the POST. Look >> at your post, look at mine. See how they are different? > > No, I don't. You have to help me here. The "#v+" & "#v-" marks (on lines of their own, I think) are standard ways of marking stuff like source code, config file snippets, &c., to be copied & pasted verbatim (like the LaTeX verbatim environment). -- Unix is a user-friendly operating system. It's just very choosy about its friends.
--
Author: Jeff-Relf.Me
Date: Wed, 30 Oct 2013 17:38
Date: Wed, 30 Oct 2013 17:38
16 lines
1506 bytes
1506 bytes
@Sandman, You wrote/posted an S-Lang script !
Well done.
Here it is again, sandman.sl, unwrapped:
define quote_post () {
set_string_variable (
"editor_command", "~/bin/quote.php; pico +8,1-r 75 -Y followup");
call ("followup");
set_string_variable (
"editor_command", "pico +8,1 -r 75 -Y followup"); }
definekey ("quote_post", "r", "article");
Re: Some more slrn questions
Author: Lewis
Date: Wed, 30 Oct 2013 18:01
Date: Wed, 30 Oct 2013 18:01
97 lines
4557 bytes
4557 bytes
In message <slrnl729h5.gr8.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> In article <slrnl728sp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> > Why? I've seen that before, but the script works without it, so why is it
>> > there?
>>
>> It has nothing to do with the SCRIPT, it has to do with the POST. Look
>> at your post, look at mine. See how they are different?
> No, I don't. You have to help me here.
You don't see any difference between
#!/bin/bash
SIGHOME="$HOME/.signature"
$HOME/bin/fortune $HOME/mysigs > $SIGHOME
MAIL=`ps -U"$USER" -co command | grep "\bMail\b"`
if [ "$MAIL" ]; then
cat $SIGHOME | sed -e 's/"/\\"/g' > $HOME/.mail_signature
MYSIG="$(<$HOME/.mail_signature)"
osascript <<EOF
tell application "Mail" to set content of signature "Fortune" to "-- " & return & "$MYSIG"
EOF
fi
and
#v+
#!/bin/bash
SIGHOME="$HOME/.signature"
$HOME/bin/fortune $HOME/mysigs > $SIGHOME
MAIL=`ps -U"$USER" -co command | grep "\bMail\b"`
if [ "$MAIL" ]; then
cat $SIGHOME | sed -e 's/"/\\"/g' > $HOME/.mail_signature
MYSIG="$(<$HOME/.mail_signature)"
osascript <<EOF
tell application "Mail" to set content of signature "Fortune" to "-- " & return & "$MYSIG"
EOF
fi
#v-
??? They look quite different on my screen.
>> >> > So, hitting "f" creates a normal followup, but hitting "r" changes the
>> >> > editor_command, follows up, then changes it back.
>> >>
>> >> Where are you setting r the first time? and WHy aren't you using
>>
>> > First time? It is set in the S Lang file.
>>
>> Well, *normally* f is for followup and r is for reply-by-mail, right?
> Yeah, and it's over-ridden in the S Lang file.
>> >> post_editor_command
>> >> mail_editor_command
>> >>
>> >> instead?
>> >>
>> >> set mail_editor_command "~/bin/quote.php; pico....
>> >> set post_editor_command "pico ....
>>
>> > How would that help me? The mail_editor_command is default invoked by "r"
>> > and creates a mail file (with "to:" headers instead of "newsgroups:"
>> > headers) which wouldn't help me here.
> Well?
>
>> >> there is nothing sauing that mail_editor has to be for mailing. Since
>> >> I never send emails to USENET poster, I used to double the commands
>> >> myself to do slightly different things if I hit r or f.
>>
>> > Right, but I am editing the slrn-created post file, and when hitting "r"
>> > which invokes the mail editor, the file created is not a usenet post.
>> > Right?
>>
>> Not necessarily.
> Not necessarily...what? Slrn won't necessarily invoke the mail editor when
> hitting "r"? You're being very cryptic here.
It will, but that doesn't mean it has to be used to send mail.
I no longer have the setup, but I did have r and f both do the same
thing, only r invoked a slightly different editor command. They both
posted to USENET.
I did that by editing the *_editor_command settings in .slrnrc
--
The most perfidious way of harming a cause consists of defending it
deliberately with faulty arguments.
Re: Some more slrn questions
Author: Adam Funk
Date: Wed, 30 Oct 2013 19:38
Date: Wed, 30 Oct 2013 19:38
26 lines
2202 bytes
2202 bytes
On 2013-10-30, Lewis wrote: > In message <slrnl729h5.gr8.mr@irc.sandman.net> > Sandman <mr@sandman.net> wrote: >> In article <slrnl728sp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > >>> > Why? I've seen that before, but the script works without it, so why is it >>> > there? >>> >>> It has nothing to do with the SCRIPT, it has to do with the POST. Look >>> at your post, look at mine. See how they are different? > >> No, I don't. You have to help me here. > > You don't see any difference between ... > ??? They look quite different on my screen. They're in different colors on mine --- otherwise the same. Sandman might be using a monochrome terminal. -- I look back with the greatest pleasure to the kindness and hospitality I met with in Yorkshire, where I spent some of the happiest years of my life. --- Sabine Baring-Gould
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 20:41
Date: Wed, 30 Oct 2013 20:41
28 lines
2197 bytes
2197 bytes
In article <qep7kaxmbb.ln2@news.ducksburg.com>, Adam Funk wrote: > > > > Sandman: > > > > Why? I've seen that before, but the script works without it, > > > > so why is it there? > > > Lewis: > > > It has nothing to do with the SCRIPT, it has to do with the > > > POST. Look at your post, look at mine. See how they are > > > different? > > Sandman: > > No, I don't. You have to help me here. > The "#v+" & "#v-" marks (on lines of their own, I think) are > standard ways of marking stuff like source code, config file > snippets, &c., to be copied & pasted verbatim (like the LaTeX > verbatim environment). -- Unix is a user-friendly operating system. > It's just very choosy about its friends. Ok, but I don't have them in my script file and the file, as far as I can make out - works just fine. Lewis seemed to claim that adding them would change something... in my posts... And alluded to some difference between his and my posts.. I'm note sure what, though. -- Sandman[.net]
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 20:46
Date: Wed, 30 Oct 2013 20:46
49 lines
2794 bytes
2794 bytes
In article <slrnl72ic1.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > > No, I don't. You have to help me here. > > You don't see any difference between > > (...) > > and > > #v+ > (...) > #v- > > ??? They look quite different on my screen. Wait, if I understand your correctly, what you're saying that the marks have nothing to do with the script, but how *your* newsclient displays the code? If so, then ok. Yeah, #v+ text was green and the other white. I just didn't understand that this was what you were in reference to, I thiought you made a comment about the content/function of the script, not how it was displayed on your screen. > >> > Right, but I am editing the slrn-created post file, and when hitting "r" > >> > which invokes the mail editor, the file created is not a usenet post. > >> > Right? > >> > >> Not necessarily. > > > Not necessarily...what? Slrn won't necessarily invoke the mail editor when > > hitting "r"? You're being very cryptic here. > > It will, but that doesn't mean it has to be used to send mail. But if I hit "r", slrn will create a file on the harddrive with a "To:" header set to the author of the article I had displayed. > I no longer have the setup, but I did have r and f both do the same > thing, only r invoked a slightly different editor command. They both > posted to USENET. > > I did that by editing the *_editor_command settings in .slrnrc Yeah, well, without it it's hard to know exactly what it did... Thanks for the clarification though. -- Sandman[.net]
Re: Some more slrn questions
Author: Sandman
Date: Wed, 30 Oct 2013 20:48
Date: Wed, 30 Oct 2013 20:48
33 lines
2168 bytes
2168 bytes
In article <pp38kax7rf.ln2@news.ducksburg.com>, Adam Funk wrote: > On 2013-10-30, Lewis wrote: > > > > > Sandman: > > > > > Why? I've seen that before, but the script works without it, > > > > > so why is it there? > > > > Lewis: > > > > It has nothing to do with the SCRIPT, it has to do with the > > > > POST. Look at your post, look at mine. See how they are > > > > different? > > > Sandman: > > > No, I don't. You have to help me here. > > Lewis: > > You don't see any difference between > > Lewis: > > ??? They look quite different on my screen. > They're in different colors on mine --- otherwise the same. Sandman > might be using a monochrome terminal. I'm not, it just never occured to me that his inclusion of my entire script and just the added markup was only about how it was displayed on his screen, I thought he made a comment about the script :) -- Sandman[.net]
Re: Some more slrn questions
Author: Adam Funk
Date: Fri, 01 Nov 2013 20:20
Date: Fri, 01 Nov 2013 20:20
63 lines
3349 bytes
3349 bytes
On 2013-10-30, Sandman wrote:
> I've snipped out your code, because I am curently working with this
> function, and it "massaged" your code a bit too much :)
>
> My version of this just look like this:
>
> set editor_command "~/bin/quote.php; pico +8,1 -r 75 -Y followup"
>
> Which runs ~/bin/quote.php before editing ~/.followup.
>
> Now, the problem I'm having is that i can't choose when/if I want to run
> this command. Your approach seems to deal with this, since you have set "F"
> to run your script.
>
> But - your script seems to save the current article to the /tmp dir and
> then the perl script edits that.
That's right. I don't know why I did it that way, but I did.
> But I want to edit the ~/.followup file
> that slrn creates when I hit "f" and then resume normal operations.
>
> So basically, the normal chain is as such:
>
> 1. hit "f" in slrn
> 2. slrn creates ~/.followup
> 3. slrn invokes editor_command
>
> I want to be able, like you, create an alternate chain here, and not insert
> in my "hook" in the editor_command, so this is the chain I'd like:
>
> 1. hit "F" in slrn
> 2. slrn creates ~/.followup
> 3. script runs ~/bin/quote.php
> 4. slrn invokes editor_command
>
> Any idea? Thanks for your input either way!
I think (but I'm not sure) that could you could bind the "F" key to a
function F0 that does the following:
* adds another function F1 to the followup_hook
http://slrn.sourceforge.net/docs/slrnfuns-8.html
* calls the standard followup function (which now includes the
hook)
* removes F1 from the followup_hook (so it isn't there next time
you use "f" to do a normal follow-up)
Function F1 would itself run ~/bin/quote.php on the ~/.followup file.
Please let me know if this makes any sense, if you can get it to work,
& (if so) how. I might want to use something like this later. ;-)
--
Most Americans are too civilized to hang skulls from baskets, having
been headhunters, of course, only as recently as Vietnam.
--- Kinky Friedman
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads