From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: Re: the menu Options / Truncate Long Lines in This Buffer not working correctly Date: Thu, 10 Apr 2008 21:26:00 -0700 Message-ID: <200804110426.m3B4Q0Lk017273@sallyv1.ics.uci.edu> References: <200804070511.m375BvoX011974@sallyv1.ics.uci.edu> <200804101358.m3ADw3uK011838@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207888141 13981 80.91.229.12 (11 Apr 2008 04:29:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 04:29:01 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 06:29:33 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkAtI-0007aK-DJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 06:29:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAse-00089e-Ks for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 00:28:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkAsZ-00089C-EY for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:28:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkAsY-00088q-OP for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:28:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAsY-00088j-Hb for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:28:46 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JkAsT-0002HB-Vo; Fri, 11 Apr 2008 00:28:42 -0400 X-ICS-MailScanner-Watermark: 1208492765.53113@MSea+u8TxheFP/jQ1cnk+Q Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m3B4Q0Lk017273; Thu, 10 Apr 2008 21:26:01 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Thu, 10 Apr 2008 13:58:54 -0400") Original-Lines: 21 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17832 Archived-At: Glenn Morris writes: > Dan Nicolaescu wrote: > > > > I'm not sure whether one should go further and define a new command > > > linked to the toggle, that if needed makes > > > truncate-partial-width-windows buffer-local and sets it to nil, before > > > setting truncate-lines appropriately. > > > > IMO, that would be TRTD, it would make the menu keep its promise to > > toggle truncating long lines in the buffer. > > I don't think a menu toggle can ever work right. The problem is > controlled by two variables, and you would never be able to get back > to the initial state, unless you made it rather complex. Is getting back to the initial state important? Just toggling correctly seems more important, as long as the menu entry is a toggle. From the user point of view there are 2 visible states: lines are / are not truncated. The fact that emacs has more complexity than that underneath is just an unfortunate detail... (Obviously this is all IMO)