From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: the menu Options / Truncate Long Lines in This Buffer not working correctly Date: Thu, 10 Apr 2008 13:58:54 -0400 Message-ID: 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 1207850353 5888 80.91.229.12 (10 Apr 2008 17:59:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2008 17:59:13 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 10 19:59:45 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 1Jk13m-0000dc-CE for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Apr 2008 19:59:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jk138-0004W5-Oo for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Apr 2008 13:59:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jk134-0004VQ-8z for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2008 13:58:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jk133-0004Uo-3o for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2008 13:58:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jk132-0004UZ-MT for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2008 13:58:56 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jk131-0000YO-Dt for bug-gnu-emacs@gnu.org; Thu, 10 Apr 2008 13:58:55 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Jk130-0006Zg-LK; Thu, 10 Apr 2008 13:58:54 -0400 X-Spook: hackers number key Jiang Zemin Telex USDOJ SSL AGT. AMME X-Ran: 4o$epif%63U9ZnG+#O9rCrm|\Uv5U:AW>I<`xjMkw=1BUc~;Ct"?,aqbnYRfX}eu|gBx1& X-Hue: yellow X-Attribution: GM In-Reply-To: <200804101358.m3ADw3uK011838@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 10 Apr 2008 06:58:03 -0700") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:17829 Archived-At: 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. Even if you simplify things by getting rid of truncate-partial-width-windows, there are still three possible states: always truncate lines, never truncate lines, truncate only in partial width windows. You could have a radio button I suppose, but it all seems a bit much to me.