From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Source code formatting: line length limit? Date: Mon, 27 Jan 2003 08:01:08 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301271301.h0RD18X30158@rum.cs.yale.edu> References: <84ptqlflp7.fsf@lucy.is.informatik.uni-duisburg.de> <200301260121.h0Q1LXx18015@rum.cs.yale.edu> <84lm187ysa.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043679654 26475 80.91.224.249 (27 Jan 2003 15:00:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 15:00:54 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dAkj-0006sW-00 for ; Mon, 27 Jan 2003 16:00:49 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18dAoy-00057L-00 for ; Mon, 27 Jan 2003 16:05:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18d9zo-0001vD-07 for emacs-devel@quimby.gnus.org; Mon, 27 Jan 2003 09:12:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18d9Ym-0005kh-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:44:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18d9MJ-0004Fn-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:31:57 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18d8u8-00076L-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:02:24 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h0RD18X30158; Mon, 27 Jan 2003 08:01:08 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11127 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11127 > I think both of you implicitly imply that text *over* 80 columns is > bad and should be avoided. > > Could you make this explicit? Yes, I think one or two lines slightly over 80 chars are OK as long as there's a good justification for them and as long as they're not all next to each other. > To illustrate my problem: I have just reformatted source code from > something like 120 columns to something below 80. Should I revert > this change, making the lines longer again? Some of the changes > produced rather awful-looking code because the code is nested very > deeply. If it's nested too deeply, it's sometimes difficult to place LF such that the indentation looks good and the code readable, but most of the time, it's just difficult to read no matter what and should thus be split out into a separate function. 120 is way over what I consider as acceptable: it's basically unreadable. Stefan