From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#4334: 23.1.50; truncate-partial-width-windows documentation problem Date: Fri, 04 Sep 2009 09:36:42 +0300 Message-ID: <83ljkv8bd1.fsf@gnu.org> References: <76BDC6EEF74841479674E3DFDCFA1CBA@xahPC> Reply-To: Eli Zaretskii , 4334@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1252046839 26340 80.91.229.12 (4 Sep 2009 06:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2009 06:47:19 +0000 (UTC) To: Xah Lee , 4334@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 04 08:47:12 2009 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 1MjSZj-0003Dz-2E for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 08:47:11 +0200 Original-Received: from localhost ([127.0.0.1]:48694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjSZi-0000GW-87 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 02:47:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjSZe-0000GG-LS for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 02:47:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjSZZ-0000G1-2L for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 02:47:05 -0400 Original-Received: from [199.232.76.173] (port=57645 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjSZY-0000Fy-VZ for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 02:47:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44149) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjSZX-0003ly-Ny for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 02:47:00 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n846kvHX030156; Thu, 3 Sep 2009 23:46:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n846j5TH029858; Thu, 3 Sep 2009 23:45:05 -0700 Resent-Date: Thu, 3 Sep 2009 23:45:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 04 Sep 2009 06:45:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4334 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4334-submit@emacsbugs.donarmstrong.com id=B4334.125204636628969 (code B ref 4334); Fri, 04 Sep 2009 06:45:05 +0000 Original-Received: (at 4334) by emacsbugs.donarmstrong.com; 4 Sep 2009 06:39:26 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n846dOLv028953 for <4334@emacsbugs.donarmstrong.com>; Thu, 3 Sep 2009 23:39:25 -0700 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KPF00700P3VL100@i-mtaout1.012.net.il> for 4334@emacsbugs.donarmstrong.com; Fri, 04 Sep 2009 09:38:40 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KPF00353P4F5XD0@i-mtaout1.012.net.il>; Fri, 04 Sep 2009 09:38:40 +0300 (IDT) In-reply-to: <76BDC6EEF74841479674E3DFDCFA1CBA@xahPC> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 04 Sep 2009 02:47:05 -0400 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:30795 Archived-At: > From: "Xah Lee" > Date: Thu, 3 Sep 2009 09:27:44 -0700 > Cc: > > The doc reads this: > > > Non-nil means truncate lines in windows with less than the frame width. > > this seems to be that this var only has effect when its val is less than > frame width. So i set it to 30. No, this means the variable only affects windows whose width is less than the full frame width. For example, windows you get after "C-x 3". > > For an integer value, truncate lines in each window with less than the > > full frame width, provided the window width is less than that integer; > > otherwise, respect the value of `truncate-lines'. > > I don't see any effect. I do see the expected effect. Try this: emacs -Q C-x 3 You should now see the initial blurb of the *scratch* buffer in both of the 2 windows, and in both of them each line that is longer than the window width will be truncated, i.e. its extra characters not shown and a small right arrow appears in the right fringe indicating that there are more characters in the line than displayed. Now type this: M-x set-variable RET truncate-partial-width-windows RET 30 RET You should now see that each long line is continued on the next visual line, and the fringe shows that by displaying a curved arrow. Now drag the vertical separator between the two windows to the right, or use "C-x }" in the left window to make it wider. At some point, when the right window's width becomes less than the value of the variable (30), the right window will again truncate its lines, whereas the left one will still show continuation lines. If all this works for you, then please suggest how to improve the doc string.