Article View: news.software.readers
Article #255957Re: Some more slrn questions
From: 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
Technical Details
Message-ID:
<h1fdkaxe2j.ln2@news.ducksburg.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!et7no6386748wib.1!news-out.google.com!ed8ni2371wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <slrnl71qnl.g7k.mr@irc.sandman.net>Show Full Headers
Complete Article Headers
Message-ID: <h1fdkaxe2j.ln2@news.ducksburg.com> Subject: Re: Some more slrn questions Date: Fri, 01 Nov 2013 20:20:33 +0000 From: Adam Funk <a24061@ducksburg.com> References: <slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <slrnl71qnl.g7k.mr@irc.sandman.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!et7no6386748wib.1!news-out.google.com!ed8ni2371wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail X-Received: by 10.204.123.8 with SMTP id n8mr870136bkr.7.1383337804018; MIME-Version: 1.0 Newsgroups: news.software.readers Organization: $CABAL Lines: 63 X-Trace: individual.net JcjMiOHoW+GJjahzpdvN3A3BMBRdzyoiSLXvRpwcrLwSohhCYF X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:yfnTecMCcBJM5in1gqhRsHXrA0Q= sha1:AIYB4YZB3/SadNmGh810I1FC0vA= User-Agent: slrn/pre1.0.2-9 (Linux) X-Original-Bytes: 3051