Thread View: news.software.readers
7 messages
7 total messages
Started by Ian T Zimmerman
Thu, 04 Sep 1997 00:00
Slrn wish number 2
Author: Ian T Zimmerman
Date: Thu, 04 Sep 1997 00:00
Date: Thu, 04 Sep 1997 00:00
15 lines
1128 bytes
1128 bytes
In article mode, if Slrn_Show_Author == 1, the authors address, or realname if Slrn_Show_Author_Realname is set, is displayed starting at column 50. The 50 seems to be hardcoded into Slrn, but in the case of realnames, I find that most of the time space is wasted in the name column while useful information gets truncated from the subject column. Can we make this a user settable variable please? -- Ian T Zimmerman <itz@rahul.net> The dilemma is that when you model something completely on efficiency, a lot of people get hurt. Dr. Leonard Duhl of UC Berkeley, discussing `managed medical care'.
Re: Slrn wish number 2
Author: Byrial Jensen
Date: Sun, 07 Sep 1997 00:00
Date: Sun, 07 Sep 1997 00:00
86 lines
3450 bytes
3450 bytes
Ian T Zimmerman <itz@rahul.net> wrote:
>
>In article mode, if Slrn_Show_Author == 1, the authors address, or
>realname if Slrn_Show_Author_Realname is set, is displayed starting at
>column 50. The 50 seems to be hardcoded into Slrn, but in the case of
>realnames, I find that most of the time space is wasted in the name
>column while useful information gets truncated from the subject
>column. Can we make this a user settable variable please?
I made the width of author field user setable in the following patch.
Put in your .slrnrc file a line like:
set author_field_width 15
The value will be used both when author_display is set 1 and 2.
The default value is 12.
Best regards
- Byrial
--- startup.c.orig Mon Jul 7 07:11:03 1997
+++ startup.c Sun Sep 7 11:07:22 1997
@@ -316,6 +316,7 @@
{"show_article", &Slrn_Startup_With_Article},
{"author_display", &Slrn_Show_Author},
{"display_author_realname", &Slrn_Show_Author_Realname},
+ {"author_field_width", &Slrn_Author_Field_Width},
{"show_descriptions", &Slrn_Group_Display_Descriptions},
{"no_backups", &Slrn_No_Backups},
{"beep", &SLtt_Ignore_Beep},
--- art.h.orig Mon Jul 7 07:11:03 1997
+++ art.h Sun Sep 7 11:07:22 1997
@@ -13,6 +13,7 @@
extern char *Slrn_Followup_Custom_Headers;
extern char *Slrn_Reply_Custom_Headers;
extern int Slrn_Show_Author_Realname;
+extern int Slrn_Author_Field_Width;
extern int Slrn_Show_Author;
extern int Slrn_Startup_With_Article;
--- art.c.orig Sat Sep 6 10:13:31 1997
+++ art.c Sun Sep 7 11:38:20 1997
@@ -85,6 +85,7 @@
int Slrn_Startup_With_Article = 0;
int Slrn_Show_Author = 2; /* If non-zero, show author in header */
int Slrn_Show_Author_Realname = 1;
+int Slrn_Author_Field_Width = 12;
int Slrn_Query_Next_Article = 1;
int Slrn_Query_Next_Group = 1;
@@ -7335,14 +7336,16 @@
write_header_flags (h, row);
SLsmg_erase_eol ();
+ if (Slrn_Author_Field_Width < 1)
+ Slrn_Author_Field_Width = 1;
+
if (Slrn_Show_Author > 1)
{
smg_write_char ('[');
- write_header_author (h, row, 12);
+ write_header_author (h, row, Slrn_Author_Field_Width);
SLsmg_set_color (0);
smg_write_char (']');
- /* SLsmg_gotorc (row, 24 + UPDATE_COLUMN_OFFSET); */
write_header_subject (h, row, 0);
}
else
@@ -7350,9 +7353,10 @@
write_header_subject (h, row, 0);
if (Slrn_Show_Author)
{
- SLsmg_gotorc (row, 50 + UPDATE_COLUMN_OFFSET);
+ int pos = SLtt_Screen_Cols - Slrn_Author_Field_Width - 1;
+ SLsmg_gotorc (row, pos < 20 ? 20 : pos);
smg_write_char (' ');
- write_header_author (h, row, SLtt_Screen_Cols);
+ write_header_author (h, row, Slrn_Author_Field_Width);
}
}
SLsmg_erase_eol ();
Re: Slrn wish number 2
Author: Daniel Price
Date: Wed, 17 Sep 1997 00:00
Date: Wed, 17 Sep 1997 00:00
33 lines
1791 bytes
1791 bytes
On 7 Sep 1997 09:51:44 GMT, Byrial Jensen <byrial@post3.tele.dk> wrote: > >Ian T Zimmerman <itz@rahul.net> wrote: >> >>In article mode, if Slrn_Show_Author == 1, the authors address, or >>realname if Slrn_Show_Author_Realname is set, is displayed starting at >>column 50. The 50 seems to be hardcoded into Slrn, but in the case of >>realnames, I find that most of the time space is wasted in the name >>column while useful information gets truncated from the subject >>column. Can we make this a user settable variable please? > >I made the width of author field user setable in the following patch. >Put in your .slrnrc file a line like: > > set author_field_width 15 > >+extern int Slrn_Author_Field_Width; Shouldn't this be adjusted dynamically? At least for users with X11, if SLRN catches a SIGWINCH, i.e. I resize my SLRN window, then all fields should grow in size in some proportional way. This has been my wish for quite some time :) It might make more sense if the author_field_width was expressed as a fraction or percentage of the available free horizontal space. -dp --- Daniel Price -- dp@cs.brown.edu
Re: Slrn wish number 2
Author: Byrial Jensen
Date: Thu, 18 Sep 1997 00:00
Date: Thu, 18 Sep 1997 00:00
30 lines
1626 bytes
1626 bytes
Daniel Price <dp@cs.brown.edu> wrote:
>On 7 Sep 1997 09:51:44 GMT, Byrial Jensen <byrial@post3.tele.dk> wrote:
>>
>>I made the width of author field user setable in the following patch.
>>Put in your .slrnrc file a line like:
>>
>> set author_field_width 15
>
>Shouldn't this be adjusted dynamically? At least for users with X11,
>if SLRN catches a SIGWINCH, i.e. I resize my SLRN window, then all
>fields should grow in size in some proportional way. This has been my
>wish for quite some time :)
>
>It might make more sense if the author_field_width was expressed as
>a fraction or percentage of the available free horizontal space.
Just use the resize_screen_hook and a little slang code. If you like
the author field to have, say, one sixth of the window width, the
following will do:
define resize_screen_hook ()
{
set_integer_variable ("author_field_width", SCREEN_WIDTH / 6);
}
Best regards
- Byrial
Re: Slrn wish number 2
Author: Ian T Zimmerman
Date: Fri, 19 Sep 1997 00:00
Date: Fri, 19 Sep 1997 00:00
41 lines
2498 bytes
2498 bytes
In article <slrn622p9i.d5.byrial@ask.ask>,
Byrial Jensen <byrial@post3.tele.dk> writes:
> Daniel Price <dp@cs.brown.edu> wrote:
> >On 7 Sep 1997 09:51:44 GMT, Byrial Jensen <byrial@post3.tele.dk>
> >wrote:
> >> I made the width of author field user setable in the following
> >>patch. Put in your .slrnrc file a line like:
> >>
> >> set author_field_width 15
> > Shouldn't this be adjusted dynamically? At least for users with
> >X11, if SLRN catches a SIGWINCH, i.e. I resize my SLRN window, then
> >all fields should grow in size in some proportional way. This has
> >been my wish for quite some time :)
> > It might make more sense if the author_field_width was expressed
> >as a fraction or percentage of the available free horizontal space.
> Just use the resize_screen_hook and a little slang code. If you
> like the author field to have, say, one sixth of the window width,
> the following will do:
> define resize_screen_hook () { set_integer_variable
> ("author_field_width", SCREEN_WIDTH / 6); }
In this particular case I would even argue that the field width
_should_ be absolute. The thing is, you want to see as much of the
subject line (which varies wildly in length) as possible, while it
really doesn't matter if the author name is occasionally truncated,
and because names are far more uniform in length this case can be made
quite rare.
But anyway, as you point out, it depends entirely on the user. Thanks
for the patch, and I hope jed merges it into officialdom; it really is
quite useful (for many users, I think). Likewise for your prefix arg
patch!
--
Ian T Zimmerman <itz@rahul.net>
The dilemma is that when you model something
completely on efficiency, a lot of people get hurt.
Dr. Leonard Duhl of UC Berkeley, discussing `managed medical care'.
Re: Slrn wish number 2
Author: Ian T Zimmerman
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
23 lines
1546 bytes
1546 bytes
In article <slrn625u3l.k9l.itz@kronstadt.rahul.net>, Ian T Zimmerman <itz@kronstadt.boxmail.com> writes: > Thanks for the patch, and I hope jed merges it into officialdom; it > really is quite useful (for many users, I think). Likewise for your > prefix arg patch! Following up to myself. I actually made a minor modification to Byrial's prefix argument patch: it seems to be far more useful to #define NO_PREFIX_ARGUMENT 1 in interp.c. That way, commands which interpret the prefix as an iteration counter (which I think is the most common case) won't have to test for the special case of _no_ prefix. -- Ian T Zimmerman <itz@rahul.net> The dilemma is that when you model something completely on efficiency, a lot of people get hurt. Dr. Leonard Duhl of UC Berkeley, discussing `managed medical care'.
Re: Slrn wish number 2
Author: Ian T Zimmerman
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
29 lines
2094 bytes
2094 bytes
In article <slrn6268rj.ko4.itz@kronstadt.rahul.net>, Ian T Zimmerman <itz@kronstadt.boxmail.com> writes: > In article <slrn625u3l.k9l.itz@kronstadt.rahul.net>, Ian T > Zimmerman <itz@kronstadt.boxmail.com> writes: > > Thanks for the patch, and I hope jed merges it into officialdom; > > it really is quite useful (for many users, I think). Likewise for > > your prefix arg patch! > Following up to myself. I actually made a minor modification to > Byrial's prefix argument patch: it seems to be far more useful to > #define NO_PREFIX_ARGUMENT 1 > in interp.c. That way, commands which interpret the prefix as an > iteration counter (which I think is the most common case) won't have > to test for the special case of _no_ prefix. Hmm, now that I actually play with things I see that Slrn doesn't handle negative prefixes at all, so your choice of -1 to mean `no prefix' was quite logical. Why can't we have negative prefixes? Moving up or moving down is really the _same_ command with oppositely signed argument, it seems to me. But then, I'm still an Emacs believer (I just don't use it for news :) -- Ian T Zimmerman <itz@rahul.net> The dilemma is that when you model something completely on efficiency, a lot of people get hurt. Dr. Leonard Duhl of UC Berkeley, discussing `managed medical care'.
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