Article View: news.software.readers
Article #84520Re: [slrn] modifying key mappings if a message is shown
From: Jens Wahnes
Date: Wed, 19 Sep 2001 09:37
Date: Wed, 19 Sep 2001 09:37
20 lines
1542 bytes
1542 bytes
Johannes Zellner wrote:
> I'd like to modify the key mappings in the article window depending
> on wether just the headers are shown or also a message is shown.
It is possible to do this with s-lang. The idea is basically to write
a macro that checks for "is_article_visible()" and makes different
calls to functions depending on that check. The macro is then simply
bound to the key (in article mode, of course). See the tin-art.sl that
comes with slrn (in the macros directory) for an example how this can
be done.
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Technical Details
Message-ID:
<slrn9qgpq5.9kc.nsr@message-id.wahnes-world.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!news.belwue.de!wahnes-world.de!not-for-mailReferences:
<slrn9qgc83.uce.johannes@orbital.zellner.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn9qgpq5.9kc.nsr@message-id.wahnes-world.de> Subject: Re: [slrn] modifying key mappings if a message is shown Date: Wed, 19 Sep 2001 09:37:09 +0000 From: Jens Wahnes <jewa@gmx.net> References: <slrn9qgc83.uce.johannes@orbital.zellner.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!news.belwue.de!wahnes-world.de!not-for-mail Newsgroups: news.software.readers Organization: Wahnes World Lines: 19 NNTP-Posting-Host: meise098.wohnheim.uni-kl.de X-NNTP-Posting-Host: localhost User-Agent: slrn/0.9.7.2 (Linux)