From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73749 Path: news.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general Subject: Re: New default change: Automatic article filling Date: Sun, 31 Oct 2010 14:28:42 -0700 Organization: The Eyrie Message-ID: <8739rmoxv9.fsf@windlord.stanford.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288560577 11110 80.91.229.12 (31 Oct 2010 21:29:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 21:29:37 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22118@lists.math.uh.edu Sun Oct 31 22:29:33 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCfT3-0005us-2u for ding-account@gmane.org; Sun, 31 Oct 2010 22:29:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PCfSv-0003tU-1E; Sun, 31 Oct 2010 16:29:25 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PCfSs-0003tD-W5 for ding@lists.math.uh.edu; Sun, 31 Oct 2010 16:29:22 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PCfSk-0001c2-Ou for ding@lists.math.uh.edu; Sun, 31 Oct 2010 16:29:22 -0500 Original-Received: from smtp2.stanford.edu ([171.67.219.82] helo=smtp.stanford.edu) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PCfSj-0007Ub-00 for ; Sun, 31 Oct 2010 22:29:14 +0100 Original-Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id C56A7170B5B for ; Sun, 31 Oct 2010 14:28:42 -0700 (PDT) Original-Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id 1C324170AB1 for ; Sun, 31 Oct 2010 14:28:42 -0700 (PDT) Original-Received: by windlord.stanford.edu (Postfix, from userid 1000) id 063602F4F2; Sun, 31 Oct 2010 14:28:42 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 31 Oct 2010 22:17:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73749 Archived-At: Lars Magne Ingebrigtsen writes: > gnus-treat-fill-long-lines now defaults to '(typep "text/plain"), and > this now points to `gnus-article-fill-cited-long-lines' instead of the > simpler version. So Gnus will do article filling based on citation > parsing if the lines are wider than the frame width. Thank you! > Anybody have a good heuristic for seeing whether a paragraph is code? > :-) Yeah, that was always my biggest concern with this too. For a first pass, not wrapping anything that's indented with whitespace or any paragraph with a ragged left margin would probably go a long way. Most code has a ragged left margin due to indentation of block structure and very little regular text does, except for numbered or bulletted lists (which can probably be identified separately; Emacs wrapping seems to already do a good job of recognizing those). -- Russ Allbery (rra@stanford.edu)