* Re: Selectable line width for `W w'?
@ 1997-01-23 19:23 St. Suika Fenderson Roberts
0 siblings, 0 replies; 4+ messages in thread
From: St. Suika Fenderson Roberts @ 1997-01-23 19:23 UTC (permalink / raw)
Colin Rafferty <craffert@spspme.ml.com> writes:
> Karl Kleinpaste writes:
>> How difficult would it be to arrange for `W w' to use the *Article*
>> buffer's current width (less some right margin border size, maybe 5
>> characters) as the fill-column? Or, alternatively, to take an
>> argument specifying the desired width?
> How about using `defadvice'? Untested code follows:
> (defadvice gnus-article-fill-cited-article (around set-fill-column activate compile)
> "Change fill-column of *Article* to \"good\" size."
> (save-excursion
> (set-buffer gnus-article-buffer)
> (set-fill-column (- (frame-width) 5)))
> ad-do-it)
One modification, that being to use window-width instead, which should
make sure things work when one uses vertical splits or
(possibly/probably) on a dumbish terminal.
hope this helps,
Suika
--
wrobert2@mailhost.tcs.tulane.edu
the cats I won't be able to see until who knows when: Monster, Lish, Cricket,
Sam, Megan, Velcro, Maud, and Calli. Very sad. ;_;
<a href="http://studentweb.tulane.edu/~wrobert2/">Suika no homepage</a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Selectable line width for `W w'?
1997-01-23 14:42 Karl Kleinpaste
1997-01-23 18:29 ` Colin Rafferty
@ 1997-01-24 9:22 ` Lars Magne Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-01-24 9:22 UTC (permalink / raw)
Karl Kleinpaste <karl@jprc.com> writes:
> How difficult would
> it be to arrange for
> `W w' to use the
> *Article* buffer's
> current width (less
> some right margin
> border size, maybe 5
> characters) as the
> fill-column?
No, I think the user's `fill-column' should be respected.
> Or, alternatively,
> to take an argument
> specifying the
> desired width?
That's a good idea. `2 0 W w' will now fill at width 20. As you can
see, that's clearly very, uhm, ah. Well.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@ifi.uio.no * Lars Ingebrigtsen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Selectable line width for `W w'?
1997-01-23 14:42 Karl Kleinpaste
@ 1997-01-23 18:29 ` Colin Rafferty
1997-01-24 9:22 ` Lars Magne Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Colin Rafferty @ 1997-01-23 18:29 UTC (permalink / raw)
Karl Kleinpaste writes:
> How difficult would it be to arrange for `W w' to use the *Article*
> buffer's current width (less some right margin border size, maybe 5
> characters) as the fill-column? Or, alternatively, to take an
> argument specifying the desired width?
How about using `defadvice'? Untested code follows:
(defadvice gnus-article-fill-cited-article (around set-fill-column activate compile)
"Change fill-column of *Article* to \"good\" size."
(save-excursion
(set-buffer gnus-article-buffer)
(set-fill-column (- (frame-width) 5)))
ad-do-it)
--
Colin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Selectable line width for `W w'?
@ 1997-01-23 14:42 Karl Kleinpaste
1997-01-23 18:29 ` Colin Rafferty
1997-01-24 9:22 ` Lars Magne Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: Karl Kleinpaste @ 1997-01-23 14:42 UTC (permalink / raw)
How difficult would it be to arrange for `W w' to use the *Article*
buffer's current width (less some right margin border size, maybe 5
characters) as the fill-column? Or, alternatively, to take an
argument specifying the desired width?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-01-24 9:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-23 19:23 Selectable line width for `W w'? St. Suika Fenderson Roberts
-- strict thread matches above, loose matches on Subject: below --
1997-01-23 14:42 Karl Kleinpaste
1997-01-23 18:29 ` Colin Rafferty
1997-01-24 9:22 ` Lars Magne Ingebrigtsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).