Article View: news.software.readers
Article #142131Re: help with slrn
From: Crashdamage
Date: Sun, 25 Jan 2004 14:41
Date: Sun, 25 Jan 2004 14:41
48 lines
3070 bytes
3070 bytes
On 25 Jan 2004 12:51:07 GMT, Paul Boekholt <p.boekholt@hetnet.nl> wrote:
> On Sun, 25 Jan 2004 10:20:46 GMT, Crashdamage <03z1krd7@nospam.invalid> said:
>> Not to nitpick, but it occurred to me that this would be even better if
>> it worked more like the default slrn setup, where after selecting a
>> group, it openes in index mode until an article is selected.
> Looking closer, it seems Tommy Moore was confused:
> "How can I tell slrn to do this by default so that I don't have to
> press z each time I open an article?"
> You don't have to press z on every article, only on the first article.
> Anyway, this zoom.sl does the trick:
> #v+
> variable zoomed = 0;
> define read_article_hook()
> {
> !if (zoomed)
> call ("zoom_article_window");
> zoomed = 1;
> }
> #v-
> I've also tried to use register_hook to register a zoom() function that
> then unregisters itself, but that gives a segmentation fault?
Hmmm....as far as I can tell, this seems to work exactly like the 1st
version you posted, the added lines don't make a difference. I tried
about the same thing myself and didn't see a difference and couldn't
figure what it needed to work exactly right. Anyway, it still works.
I should've mentioned in my last reply that slrn only auto-opens the 1st
article when selecting the 1st group, after that selecting a group
brings up the index, as it should, instead of opening the 1st article in
a group. So this is a minor thing, very similar to having to press 'z'
only once.
I still like slrn a little better with this macro than without it as it
makes slrn default to the style I want when veiwing articles. This
effectively makes my 'i' key toggle index mode (one of several
keybinding changes I made to slrn so it uses the same keys as Mutt) just
the way I want, without going through 'z' 1st. A minor but nice
enhancement to slrn. Thanks!
--
Registered Linux user #266531
Technical Details
Message-ID:
<c2c7e265969ef4abc32fac212ba5072d@news.teranews.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!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!router1.news.adelphia.net!router2.news.adelphia.net!nntpserver.com.MISMATCH!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mailReferences:
<1ubbe1-j91.ln1@athena.test.com> <buvvr0$qi1$2@reader11.wxs.nl> <641a1ac9053d40d9fc23ad3948bab2d3@news.teranews.com> <bv0e3r$ddn$2@reader08.wxs.nl>Show Full Headers
Complete Article Headers
Message-ID: <c2c7e265969ef4abc32fac212ba5072d@news.teranews.com> Subject: Re: help with slrn Date: Sun, 25 Jan 2004 14:41:42 GMT From: Crashdamage <03z1krd7@nospam.invalid> References: <1ubbe1-j91.ln1@athena.test.com> <buvvr0$qi1$2@reader11.wxs.nl> <641a1ac9053d40d9fc23ad3948bab2d3@news.teranews.com> <bv0e3r$ddn$2@reader08.wxs.nl> 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!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!router1.news.adelphia.net!router2.news.adelphia.net!nntpserver.com.MISMATCH!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mail X-Abuse-Report: abuse@teranews.com Lines: 48 Newsgroups: news.software.readers X-OS-Name: Linux 2.4.18-6mdk X-Uptime: 48 days User-Agent: slrn/0.9.7.4 (Linux)