From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: please change default value of truncate-partial-width-windows to nil Date: Thu, 16 Jul 2009 11:59:44 +0900 Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247713210 26946 80.91.229.12 (16 Jul 2009 03:00:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 03:00:10 +0000 (UTC) Cc: Drew Adams , 'Emacs-Devel devel' To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 05:00:03 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MRHCV-0003rp-0F for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 05:00:03 +0200 Original-Received: from localhost ([127.0.0.1]:32861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRHCU-0005Sp-As for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2009 23:00:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRHCP-0005Sa-Hy for emacs-devel@gnu.org; Wed, 15 Jul 2009 22:59:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRHCK-0005SD-4v for emacs-devel@gnu.org; Wed, 15 Jul 2009 22:59:56 -0400 Original-Received: from [199.232.76.173] (port=48930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRHCJ-0005SA-Uk for emacs-devel@gnu.org; Wed, 15 Jul 2009 22:59:51 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:44273) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRHCH-0000rY-CD; Wed, 15 Jul 2009 22:59:50 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n6G2xf3O011779; Thu, 16 Jul 2009 11:59:46 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Thu, 16 Jul 2009 11:59:45 +0900 Original-Received: from dhlpc061 ([10.114.114.32] [10.114.114.32]) by relay21.aps.necel.com with ESMTP; Thu, 16 Jul 2009 11:59:45 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id E64EE52E228; Thu, 16 Jul 2009 11:59:44 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: (Stefan Monnier's message of "Wed, 15 Jul 2009 12:34:24 -0400") Original-Lines: 34 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112516 Archived-At: Stefan Monnier writes: >> nil - never truncate lines in the current buffer >> t - always truncate lines in the current buffer >> integer - do what integer `truncate-partial-width-windows' does today > > I think this would make a lot of sense. > I.e. first extend truncate-lines so it can take an integer value, then > mark truncate-partial-width-windows as obsolete. Eh, why is that better? `truncate-partial-width-windows' has always[*] been essentially an "exception for a funny situation", and wedging its functionality into `truncate-lines' merely complicates things for typical code which really only cares about the normal case, not the exceptional one. Currently a mode only needs to worry about setting truncate-lines to t (or toggling between nil and t in the case of Gnus, etc), if truncating lines is somehow better for that mode. I your suggestion is followed, such modes will suddenly have to worry about such details as the proper width at which point "emergency truncation" goes into effect -- and I would argue that most modes just don't care about such detail (if a mode _does_ care about that, it's easy enough to set both variables). [*] and of course `truncate-partial-width-windows' has been around for decades, with a non-nil default; I dunno why Drew is freaking out about it _now_... -Miles -- Logic, n. The art of thinking and reasoning in strict accordance with the limitations and incapacities of the human misunderstanding. n