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: Display-based word wrapping Date: Tue, 24 Jun 2008 21:41:16 -0400 Message-ID: References: <87k5gen1vn.fsf@stupidchicken.com> <87od5qd2x3.fsf@stupidchicken.com> <87ej6mxzzp.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214358096 20164 80.91.229.12 (25 Jun 2008 01:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2008 01:41:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 25 03:42:21 2008 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 1KBK1b-0006Lp-56 for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2008 03:42:19 +0200 Original-Received: from localhost ([127.0.0.1]:45784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBK0k-000536-HS for ged-emacs-devel@m.gmane.org; Tue, 24 Jun 2008 21:41:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBK0f-00050T-FA for emacs-devel@gnu.org; Tue, 24 Jun 2008 21:41:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBK0d-0004wR-Ck for emacs-devel@gnu.org; Tue, 24 Jun 2008 21:41:20 -0400 Original-Received: from [199.232.76.173] (port=41217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBK0d-0004wE-90 for emacs-devel@gnu.org; Tue, 24 Jun 2008 21:41:19 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:34565 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBK0c-0003dp-PO for emacs-devel@gnu.org; Tue, 24 Jun 2008 21:41:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkFAAs/YUhFxIdG/2dsb2JhbACBW7EygW8 X-IronPort-AV: E=Sophos;i="4.27,699,1204520400"; d="scan'208";a="23168304" Original-Received: from 69-196-135-70.dsl.teksavvy.com (HELO pastel.home) ([69.196.135.70]) by ironport2-out.teksavvy.com with ESMTP; 24 Jun 2008 21:41:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A195F825A; Tue, 24 Jun 2008 21:41:16 -0400 (EDT) In-Reply-To: <87ej6mxzzp.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 24 Jun 2008 17:52:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: 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:99881 Archived-At: >>> The name `truncate-lines' does not give any hint that it controls word >>> wrapping too. >> >>> Do you care about this? If so, how about this: make truncate-lines an >>> obsolete alias for `line-wrap-method', which accepts the values >>> `edge-wrap', `word-wrap', and `truncate', with t equivalent to >>> `truncate' and nil equivalent to `edge-wrap'. >> >> Yes, that sounds very good (I'd have said `char-wrap' rather than >> `edge-wrap', tho). > One big disadvantage, though: truncate-lines is used very widely in the > Lisp code. Replacing them would be rather annoying. I don't see much of a problem with it. That's what define-obsolete-variable-alias is for, isn't it? > There's also the matter of what to do with `toggle-truncate-lines'. This has 2 issues: the name of the command, and its functionality. I think we'll find that once we figured what is the right fix for its functionality, the naming issue will be easy to solve. Stefan