From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: please change default value of truncate-partial-width-windows to nil Date: Thu, 16 Jul 2009 10:10:16 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247754381 6745 80.91.229.12 (16 Jul 2009 14:26:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 14:26:21 +0000 (UTC) Cc: Drew Adams , 'Emacs-Devel devel' To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 16:26:13 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 1MRRuV-0005p8-5a for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 16:26:11 +0200 Original-Received: from localhost ([127.0.0.1]:37074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRRuU-0006XS-Gh for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 10:26:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRRfK-0008Lo-7k for emacs-devel@gnu.org; Thu, 16 Jul 2009 10:10:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRRfC-0008JL-9U for emacs-devel@gnu.org; Thu, 16 Jul 2009 10:10:26 -0400 Original-Received: from [199.232.76.173] (port=60002 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRRfA-0008J3-9E for emacs-devel@gnu.org; Thu, 16 Jul 2009 10:10:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58081) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRRf7-0006Jt-4b; Thu, 16 Jul 2009 10:10:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAJfRXkpFxL+I/2dsb2JhbACBUdAxhAsFhnU X-IronPort-AV: E=Sophos;i="4.42,411,1243828800"; d="scan'208";a="41724979" Original-Received: from 69-196-191-136.dsl.teksavvy.com (HELO ceviche.home) ([69.196.191.136]) by ironport2-out.teksavvy.com with ESMTP; 16 Jul 2009 10:10:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 555DDB41BF; Thu, 16 Jul 2009 10:10:16 -0400 (EDT) In-Reply-To: (Miles Bader's message of "Thu, 16 Jul 2009 11:59:44 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:112530 Archived-At: >> 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? This way it also applies in the case where your narrow windows are the result of your tiling window manager creating narrow frames rather than a wide frame split into narrow windows. > `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. I can't see which complication you're referring to. > 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, I only know of modes that set it to t, and for those there's no difference. Which code ever sets it to nil? > [*] 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_... Yes, I'm not worried about that indeed, I just feel like using 2 vars, the second of which is only used in some cases but not all is rather odd. Maybe another option is to make truncate-partial-width-windows apply to full-width windows as well when its value is an integer (so it also applies when your window-manager makes your frames narrow). Stefan