From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9591 Path: main.gmane.org!not-for-mail From: "St. Suika Fenderson Roberts" Newsgroups: gmane.emacs.gnus.general Subject: Re: Selectable line width for `W w'? Date: Thu, 23 Jan 1997 13:23:07 -0600 Message-ID: <199701231923.NAA101855@rs1.tcs.tulane.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149591 19354 80.91.224.250 (20 Oct 2002 21:33:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:33:11 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id LAA15882 for ; Thu, 23 Jan 1997 11:58:21 -0800 Original-Received: from rs1.tcs.tulane.edu (wrobert2@rs1.tcs.tulane.edu [129.81.224.53]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 23 Jan 1997 20:23:02 +0100 Original-Received: (wrobert2@localhost) by rs1.tcs.tulane.edu (8.6.12/8.5) id NAA101855; Thu, 23 Jan 1997 13:23:07 -0600 Original-To: ding@ifi.uio.no Xref: main.gmane.org gmane.emacs.gnus.general:9591 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9591 Colin Rafferty 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. ;_; Suika no homepage