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#4338: 23.1; truncate-partial-width-windows yields too small width Date: Fri, 04 Sep 2009 09:48:39 +0300 Message-ID: <83iqfz8at4.fsf@gnu.org> Reply-To: Eli Zaretskii , 4338@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1252051304 6651 80.91.229.12 (4 Sep 2009 08:01:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2009 08:01:44 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 04 10:01:37 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 1MjTjk-000301-Ev for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 10:01:37 +0200 Original-Received: from localhost ([127.0.0.1]:59911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjTjj-00050z-TY for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2009 04:01:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjTjU-0004x5-9C for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 04:01:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjTjP-0004wk-5s for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 04:01:19 -0400 Original-Received: from [199.232.76.173] (port=49665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjTjP-0004wh-2W for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 04:01:15 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:25581) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjTjO-0003xx-Du for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 04:01:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjTjN-0001xu-O9 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 04:01:14 -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 n847kvGr006975; Fri, 4 Sep 2009 00:46:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n847UIoh004644; Fri, 4 Sep 2009 00:30:18 -0700 Resent-Date: Fri, 4 Sep 2009 00:30:18 -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 07:30:17 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4338 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12520488483435 (code B ref -1); Fri, 04 Sep 2009 07:30:17 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2009 07:20:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n847Kj7j003432 for ; Fri, 4 Sep 2009 00:20:46 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjT6D-0001KO-2k for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 03:20:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjT6B-0001Il-Vy for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 03:20:44 -0400 Original-Received: from [199.232.76.173] (port=51551 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjT6B-0001IW-RX for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 03:20:43 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:23116) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjT6B-0007ug-7R for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 03:20:43 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjT6A-00089p-GX for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 03:20:42 -0400 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 bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 09:50:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KPF00BJ2POCIR00@i-mtaout1.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2009 09:50:37 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-Detected-Operating-System: by mx20.gnu.org: Solaris 9.1 X-Greylist: delayed 1803 seconds by postgrey-1.27 at nadesico; Fri, 04 Sep 2009 03:20:42 EDT X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 04 Sep 2009 04:01:19 -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:30797 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: emacs -Q C-x 3 M-x set-variable RET truncate-partial-width-windows RET 30 RET Now type "C-x }" in the left window until the right window starts truncating its lines on the display. When that happens, count the number of columns in the right window. I get 25, whereas the expected value is 29, or at least 27, if someone wants to argue that the fringe counts. It may be that the width of the scroll bar counts as well, but in that case this should be reflected in the doc string. The above is in a GUI session. On a TTY, I do get 29 characters, but only if I count the truncation glyph as well. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/usr/emacs/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-31 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 3 M-x s e t - v a r t r u n c a p 3 0 C-x o C-x ^ C-x { C-x } C-x } C-x } C-x { C-x { C-x o C-x } C-x { C-x { C-x } C-x { C-x 1 M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `truncate-par' found Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `truncate-part' found Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `truncate-partial-window' found