Thread View: news.software.readers
7 messages
7 total messages
Started by Hai Pham
Fri, 06 Mar 1998 00:00
better regexp for slrn/slang?
Author: Hai Pham
Date: Fri, 06 Mar 1998 00:00
Date: Fri, 06 Mar 1998 00:00
16 lines
1069 bytes
1069 bytes
Ok, I've tried to live with the weak regexp that's built into slang, but I'm getting really annoyed at having to stand on my head to get the patterns that I want. Has anyone put any effort into replacing the native regexp library with a better one? I'd hate to say it, but if this keeps up, I'm thinking of ditching slrn and go on yet another quest for a newsreader that supports better regexp in its kill file. hai -- Hai Pham Loran International Tech., Inc. Ottawa, Canada.
Re: better regexp for slrn/slang?
Author: Ralf Hildebrandt
Date: Fri, 06 Mar 1998 00:00
Date: Fri, 06 Mar 1998 00:00
25 lines
1523 bytes
1523 bytes
On 6 Mar 1998 16:47:52 GMT, Hai Pham <nospam@loran.ca> wrote: >Ok, I've tried to live with the weak regexp that's built into slang, but >I'm getting really annoyed at having to stand on my head to get the >patterns that I want. Has anyone put any effort into replacing the >native regexp library with a better one? I'd hate to say it, but if >this keeps up, I'm thinking of ditching slrn and go on yet another quest >for a newsreader that supports better regexp in its kill file. I already asked the author for dropping that regexp engine and using GNU rx, but to no avail. I just don't know why everybody re-invents the wheel -- over and over again. -- Ralf Hildebrandt, R.Hildebrandt@tu-bs.de (PGP Key @ request ) http://www.stahl.bau.tu-bs.de/~hildeb Institute for Steel Structures @ Technical University of Braunschweig Beethovenstr. 51, 38106 Braunschweig, Germany
Re: slrn catchup question? (Was: Re: better regexp for slrn/slang?)
Author: Jan Hlavacek
Date: Sun, 08 Mar 1998 00:00
Date: Sun, 08 Mar 1998 00:00
33 lines
2052 bytes
2052 bytes
On 8 Mar 1998 17:16:41 GMT, Ralf Hildebrandt <R.Hildebrandt@tu-bs.de>
wrote:
> Is this a bug:
> 1) I mark an article as deletec using c or d
> 2) I change my mind an mark it as important using *
> 3) I leave the NG ang go back again - it's gone, although I marked it
> as important.
I think this is exactly how it is supposed to work. From slrn help:
* Mark header so it is un-affected by catchup commands.
Catchup command does nothing but marks all articles in the group as
deleted. If it is already deleted, catchup doesn't affect it, and so
* doesn't affect it either. It seems perfectly logical to me.
> To make that work I have to undelete it and afterwards mark it using *...
You can try this:
define undelete_and_star ()
{
set_header_flags ((get_header_flags () & ~(HEADER_READ)) | HEADER_TAGGED);
}
definekey ("undelete_and_star", "*", "article");
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Re: better regexp for slrn/slang?
Author: John E. Davis
Date: Sun, 08 Mar 1998 00:00
Date: Sun, 08 Mar 1998 00:00
17 lines
1300 bytes
1300 bytes
On 6 Mar 1998 18:05:57 GMT, Ralf Hildebrandt <R.Hildebrandt@tu-bs.de> wrote: >I already asked the author for dropping that regexp engine and using GNU rx, >but to no avail. I just don't know why everybody re-invents the wheel -- >over and over again. When I first wrote the slang regular expressions, there was no freely available regular expression package that worked on VMS, OS/2, Unix, and MSDOS running on an IBMPC. Also, the GNU regular expression package is too restrictive for the artistic license. Eventually I will provide a mechanism for incorporating a different regular expression package but it is a very low priority for me. --John
Re: better regexp for slrn/slang?
Author: Ralf Hildebrandt
Date: Sun, 08 Mar 1998 00:00
Date: Sun, 08 Mar 1998 00:00
34 lines
1845 bytes
1845 bytes
On 8 Mar 1998 10:47:53 GMT, John E. Davis <davis@space.mit.edu> wrote: >When I first wrote the slang regular expressions, there was no freely >available regular expression package that worked on VMS, OS/2, Unix, >and MSDOS running on an IBMPC. Sorry then about the "reinventing the wheel" comment >Also, the GNU regular expression >package is too restrictive for the artistic license. Eventually I >will provide a mechanism for incorporating a different regular >expression package but it is a very low priority for me. Well, there are at least two users who would appreciate the idea ! Is this a bug: 1) I mark an article as deletec using c or d 2) I change my mind an mark it as important using * 3) I leave the NG ang go back again - it's gone, although I marked it as important. To make that work I have to undelete it and afterwards mark it using *... -- Ralf Hildebrandt, R.Hildebrandt@tu-bs.de (PGP Key @ request ) http://www.stahl.bau.tu-bs.de/~hildeb Institute for Steel Structures @ Technical University of Braunschweig Beethovenstr. 51, 38106 Braunschweig, Germany
Re: slrn - command '*' prevents change of status
Author: Sven Guckes
Date: Wed, 11 Mar 1998 00:00
Date: Wed, 11 Mar 1998 00:00
23 lines
1725 bytes
1725 bytes
R.Hildebrandt@tu-bs.de (Ralf Hildebrandt): > Is this a bug: > 1) I mark an article as deletec using c or d > 2) I change my mind an mark it as important using * > 3) I leave the NG ang go back again - it's gone, although I marked it > as important. It's a feature. The command '*' does not prevent the article from being deleted, but rather prevents its status from being changed. Difference! > To make that work I have to undelete it and afterwards mark it using *... That's exactly how it should be used. I think you should change the command with some slang macro and make '*' do 'u' and '*' for you. Sven
Re: slrn catchup question? (Was: Re: better regexp for slrn/slang?)
Author: David Goh
Date: Thu, 12 Mar 1998 00:00
Date: Thu, 12 Mar 1998 00:00
47 lines
2270 bytes
2270 bytes
In news.software.readers, on 8 Mar 1998 21:30:25 GMT
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
>On 8 Mar 1998 17:16:41 GMT, Ralf Hildebrandt <R.Hildebrandt@tu-bs.de>
>wrote:
>> To make that work I have to undelete it and afterwards mark it using *...
>You can try this:
>define undelete_and_star ()
>{
> set_header_flags ((get_header_flags () & ~(HEADER_READ)) | HEADER_TAGGED);
>}
>definekey ("undelete_and_star", "*", "article");
That's nice, but you lose the toggle ability...
So I re-wrote it. :)
Here's the rewrite:
%
% Ensure that the "*" command marks something unread if it's tagging it.
%
define undelete_and_star()
{
variable old_flags = get_header_flags();
variable new_flags = old_flags;
if (old_flags & HEADER_TAGGED)
{
% Currently tagged. Make it untagged.
new_flags = (old_flags & ~(HEADER_TAGGED));
}
else
{
% Currently untagged. Make it unread and tagged.
new_flags = ((old_flags & ~(HEADER_READ)) | HEADER_TAGGED);
}
set_header_flags(new_flags);
}
definekey ("undelete_and_star", "*", "article");
--
| david@unico.com.au (David Goh, Unico Computer Systems, +61-3-9866-5688)
Test-tube babies shouldn't throw stones.
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