Thread View: news.software.nn
1 messages
1 total messages
Started by Bryan Ogawa
Fri, 13 Sep 1996 00:00
looking at previously read messages in nn
Author: Bryan Ogawa
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
56 lines
2304 bytes
2304 bytes
Note: followups are set to news.software.nn... I hope. ObHack: I was reading news with nn, and I wanted to check up on some articles that I had read before. Persual of the man pages showed the command line: -x <no. of articles>, and the associated variable old (unset == show no read articles, set to n == show n previous read as well as unread), but it doesn't really appeal to me to have to type in all of that stuff. I decided to write a macro which toggled the "show read articles" option on and off. Unfortunately, the conditionals in the macro language didn't like the way I was testing -- it looked like old wasn't an integer variable (although I really can't confirm that). After some fiddling, I ended up with the following: -- begin exerpt from ~/.nn/init -- define 0 :set old :unread :map menu ^A macro 1 end define 1 :unset old :unread :map menu ^A macro 0 end map menu ^A macro 0 -- end exerpt -- This binds the key Control-A to toggle showing all unread messages. The 'trick' to make the toggle work is that the macro which defines old also rebinds ^A to a macro which undefines old. This other macro rebinds ^A to the original macro. Minor bugs (if you set/unset old manually, the macros don't know), but it does what I want. ObNN: I suspect that my .signature may be appended twice to this message. I commented out the append-signature-mail I had stuck on it. Does defining both append-signature-post on and query-signature off append the .signature twice? -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net> -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net>
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