Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 17065) by debbugs.gnu.org; 24 Oct 2021 09:48:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 24 05:48:13 2021 Received: from localhost ([127.0.0.1]:37960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mea6v-0006wt-15 for submit <at> debbugs.gnu.org; Sun, 24 Oct 2021 05:48:13 -0400 Received: from mout.gmx.net ([212.227.15.18]:47063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1mea6r-0006we-Pk for 17065 <at> debbugs.gnu.org; Sun, 24 Oct 2021 05:48:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635068883; bh=xQO58l/UjUZcZhBdpkIJFmMeddwVhX6cIBj1hkP1jMQ=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=baySaJ6nmCqyrD17W8S7gYoNajaTU5ed2PkRZrq6K+mRUPdzi7hgB8dclqaLFps9Y LfESqyYKeO3j0PTd3hqQ0le7KrjXVmCo2Dm7ofEXhA+Zr9s8PAL1vNP1s/qLIwpuY4 UtXg1JzIyPk89LRmLhMueZ1BsOhBmTl7/R9ZC8fQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([213.142.96.8]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIMbO-1mQGlr1ZVk-00EKn1; Sun, 24 Oct 2021 11:48:03 +0200 Subject: Re: bug#17065: 24.3.50; Revise line 5944 of window.el to use `window-width`, instead of `window-total-width`. To: Stefan Kangas <stefan@HIDDEN> References: <m261n7f25w.wl%esq@HIDDEN> <532D5AAC.7020608@HIDDEN> <CADwFkmmyr2UAMVtrv_F4uV5=sGqHTJb3m5bCwj8kidXEV0YE+A@HIDDEN> From: martin rudalics <rudalics@HIDDEN> Message-ID: <62d6f045-8fd7-b2ab-b775-4fae22d29bad@HIDDEN> Date: Sun, 24 Oct 2021 11:48:02 +0200 MIME-Version: 1.0 In-Reply-To: <CADwFkmmyr2UAMVtrv_F4uV5=sGqHTJb3m5bCwj8kidXEV0YE+A@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:tMq62of2LMqdZ54t/lbrINgQB7eV0MPpv+qBrQ535YB6CcduPqP Sc782vsNm9gh32de+Kd+YdRV0GNFWCuZj3Wppy0LQZ4AfTB+2s56pIjmQQ9ZW6sbqMBBPm4 acU7oJqrLi9an5TBmNncudUe4u1GOyt2WovjIf79a8X1m1jJLsNwTS9xwLLKWQz+VI/14Ca GN/p5PM/xj9tE5ILU3UjQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:DF2ARNYguzk=:yjSOhfmjiv29XHLv04U5FU IG74fiLbASStP98QCn0PkNAhJ0hIolv6ifmO9yh3wioNJzwMiVdcGBIPngOYicIN118X7cR82 mMdPWDnDg4g7e9lFLLztVaQ28Cmrn7BO97vxf8sAZEy8+SU7PlnDQc7chvDxrfBp5nMetZX4c NDHQ5/AnIfP7OTpj9E0Vj91NE9qP12a7+bO0CR8nvqAk7Js3y+G3SOiuBYd++IC9Oots2ohj+ US8UMHLDJiQEZx+xZfisaxlOsyMZGiXAhVMWmWnyUZ0FwBWXPBDDDNXvwFFCEdp3FP444/uAz xoIN0A0u9wLCJLLbVK82OpiPhB4hmOyLWuTJw6T+dXD3xtw1qwyeA19QKFWEXt1GfUuBQD4k9 +CUw9rW+pDJeJv8WaWLM2KtnxXEtbSXutNIw2YOcsZLaxs5auR8Ay+n6gaKjplikEoS+GMngL LZ4qAA7rBuFQ3LddY050BSt9HggfnFFQ6jyxq/0+dzsP7dNY9mkIzmo/Jgbl/rTkqEZGfOqVx sVesWSrwhn1aNP2WQEbD4J8WF7fk7uJsgyRU4PeERh2z8zmfCUORjCD7bhnDPB0ka/R2evr1s 5nemy+2t1n+bh6HphsyiU8djcC51PsNbHmDcScYkqG/v6OXyJFsLsqwHWLRDT+VXyPN23vPcQ WQ0ib/Mumfxktb1Nm7DPNlBJy/uATToEEWCceeDGk2oBE0DGpe+Ofsyi3O7QmATrsGu9QHXng ex7s7eQtx1fMnmZnK5nsExHFrjOoB/j5dGNM1B6fwOvXM0QGdrKN+SOIourdAGt3z9GwYKr7g y36g+Fl8f4BqmwUb4KdWt2qBlKrl6q2D2X/3R4uNMPqJEfunGhNBm7WBJMNlFym8AX9g4Y76M 523y9iwnMAR8zsxeABrNJn+8I4lKQo6XxsQi7GTmKbjXnff/6MSHhHC0ONlFJTAphusa8h43Z XoyDXSWFCTAKe0IjZCB2DXo1kNJfxGfAzBZB2MdTSa0qzQszbEepxwmHrT9u6clyX3nV50kUW FT5XF96SG+OwiX+AyIDe5pRKPP9L97HjhJmTyNECnSeQhkVzK1yi07EOvPSjoqTBS+KaSpBoJ p0Wu9ocQbPkNfA= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17065 Cc: 17065 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Is any of the above still an issue these days? I'll fix this in way that one has to provide an alist entry as (window-width . (body-columns . 40)) to get a window with a text area that is forty frame columns wide. martin
bug-gnu-emacs@HIDDEN
:bug#17065
; Package emacs
.
Full text available.Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 17065) by debbugs.gnu.org; 23 Oct 2021 05:09:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 23 01:09:38 2021 Received: from localhost ([127.0.0.1]:34136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1me9Hm-00074R-F1 for submit <at> debbugs.gnu.org; Sat, 23 Oct 2021 01:09:38 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:42701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1me9Hi-00073t-C1 for 17065 <at> debbugs.gnu.org; Sat, 23 Oct 2021 01:09:35 -0400 Received: by mail-pf1-f178.google.com with SMTP id m14so5459747pfc.9 for <17065 <at> debbugs.gnu.org>; Fri, 22 Oct 2021 22:09:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=oMlpgTdBjwvNGcaYe6vaLlCOAn6lmPv+zHoaK0PiZY8=; b=Dm83ZVb/enczYKH/3TH/dr6LWS6btFAT38xLqnMmW9LXljzDraND52HvV4d+But+D+ JXt8it1CFwIF1zVQDdmyrtUAsezHDSibKUrLBxRenRQYMtB8NHC2ngTXVJkqCEHdYUcK W2UQboDI6YfkIiipzDiGfWF0rz3XwXw6r8qyjXNe62sVNuf8Mnz41ab1mYrRHsDMkkQP Gx2+ZBQITQM+5WErkFSst07hx7qcWbn6tdS5MWCr2QFd6XgB8/fWjxpN5wuld8bDWRr3 fU1yDCNGEu8kx2+IZ7bRkiPsLAcFxJibkzbQSsFx3pYUbJaTRafCD/D4UHFUjZ8xci9S D7Dg== X-Gm-Message-State: AOAM530SEtUmdlghMqusUxKGhKA4+xbSfaP0pEbUGhjesEJA0V7ea8b4 3IioQISEErnqYPtp9DLxaa0CroyBqvioY66GDZ4= X-Google-Smtp-Source: ABdhPJz9jC7zL5GXigZuWycD/yiWIbASis6sHxA7XugGa/ZFbALP97m/ge5xrNAm/zkf2/9GOGJtgEw4lmyrs12ba8c= X-Received: by 2002:a63:370c:: with SMTP id e12mr3071803pga.359.1634965768766; Fri, 22 Oct 2021 22:09:28 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 22:09:28 -0700 From: Stefan Kangas <stefan@HIDDEN> In-Reply-To: <532D5AAC.7020608@HIDDEN> (martin rudalics's message of "Sat, 22 Mar 2014 10:41:00 +0100") References: <m261n7f25w.wl%esq@HIDDEN> <532D5AAC.7020608@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 22 Oct 2021 22:09:28 -0700 Message-ID: <CADwFkmmyr2UAMVtrv_F4uV5=sGqHTJb3m5bCwj8kidXEV0YE+A@HIDDEN> Subject: Re: bug#17065: 24.3.50; Revise line 5944 of window.el to use `window-width`, instead of `window-total-width`. To: martin rudalics <rudalics@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 17065 Cc: 17065 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) martin rudalics <rudalics@HIDDEN> writes: >> (defun broken-example () >> (interactive) >> (window--display-buffer >> ;; buffer >> (get-buffer-create "*test*") >> ;; window >> (split-window (selected-window) nil 'right) >> ;; type >> 'window >> ;; alist >> '((window-width . 82)) >> ;; dedicated >> t) >> (message "Window Width: %s" (window-width (get-buffer-window "*test*"))) ) > > Conceptually, the `window-width' alist entry specifies the new total > width of the window, including fringes, scrollbars and vertical > dividers. You mean that specifiying the number of text columns is more > intuitive? I might agree, but unfortunately _all_ window resizing > functions intepret "width" in terms of the total width of a window. > Making an exception for this special case would only increase the > confusion. > > The confusion has historical reasons and was not considered important, > likely so, because side-by-side windows are in use more frequently only > over the past years. If, with emacs -Q, I do > > (let ((window (split-window (selected-window) -20 'right))) > (window-body-width window)) > > I get 16 text columns for the new window which is likely not what I > expected as someone using this function for the first time with an > explicit SIZE argument. > > In any case, I will have to adjust some doc-strings and the Elisp > manual. So far the only hint is the doc-string of `split-window-right' > which says > > Here, SIZE includes the width of the window's scroll bar; if there are > no scroll bars, it includes the width of the divider column to the > window's right, if any. > > but I'm struggling with this issue ever since. (That was 7.5 years ago.) Is any of the above still an issue these days?
bug-gnu-emacs@HIDDEN
:bug#17065
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 22 Mar 2014 09:41:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 05:41:37 2014 Received: from localhost ([127.0.0.1]:44180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WRIQq-0006EH-7Q for submit <at> debbugs.gnu.org; Sat, 22 Mar 2014 05:41:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46740) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rudalics@HIDDEN>) id 1WRIQn-0006E5-RV for submit <at> debbugs.gnu.org; Sat, 22 Mar 2014 05:41:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rudalics@HIDDEN>) id 1WRIQd-0001E4-U0 for submit <at> debbugs.gnu.org; Sat, 22 Mar 2014 05:41:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rudalics@HIDDEN>) id 1WRIQd-0001Dv-QP for submit <at> debbugs.gnu.org; Sat, 22 Mar 2014 05:41:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rudalics@HIDDEN>) id 1WRIQW-0001Mz-7q for bug-gnu-emacs@HIDDEN; Sat, 22 Mar 2014 05:41:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rudalics@HIDDEN>) id 1WRIQO-00011s-Pd for bug-gnu-emacs@HIDDEN; Sat, 22 Mar 2014 05:41:16 -0400 Received: from mout.gmx.net ([212.227.15.19]:62659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rudalics@HIDDEN>) id 1WRIQO-00010P-Fq for bug-gnu-emacs@HIDDEN; Sat, 22 Mar 2014 05:41:08 -0400 Received: from [188.22.111.104] ([188.22.111.104]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LjuR3-1Wy9Gt0MTh-00bpd9 for <bug-gnu-emacs@HIDDEN>; Sat, 22 Mar 2014 10:41:06 +0100 Message-ID: <532D5AAC.7020608@HIDDEN> Date: Sat, 22 Mar 2014 10:41:00 +0100 From: martin rudalics <rudalics@HIDDEN> MIME-Version: 1.0 To: bug-gnu-emacs@HIDDEN Subject: Re: bug#17065: 24.3.50; Revise line 5944 of window.el to use `window-width`, instead of `window-total-width`. References: <m261n7f25w.wl%esq@HIDDEN> In-Reply-To: <m261n7f25w.wl%esq@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:HLzGENVSBj9H/Txgg9PCNNMTo95PzEbEQtlunlmHU2uaSdnplC0 Be9mQibhwGCHGWht17nGtOePWwOFLtNfIOOJa7Tq0+Ue7PyoPsy/LiXtimb+bmMbYBATAD6 E5xy1WPgfoyZFi1YPT2w63YDkQqTaNYcvuHcOjCOuJaCmM4wx1IT+jp4DK/F9uztguPA5Ea vKzLFNecUJs5MfWK+/Dog== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.1 (----) > (defun broken-example () > (interactive) > (window--display-buffer > ;; buffer > (get-buffer-create "*test*") > ;; window > (split-window (selected-window) nil 'right) > ;; type > 'window > ;; alist > '((window-width . 82)) > ;; dedicated > t) > (message "Window Width: %s" (window-width (get-buffer-window "*test*"))) ) Conceptually, the `window-width' alist entry specifies the new total width of the window, including fringes, scrollbars and vertical dividers. You mean that specifiying the number of text columns is more intuitive? I might agree, but unfortunately _all_ window resizing functions intepret "width" in terms of the total width of a window. Making an exception for this special case would only increase the confusion. The confusion has historical reasons and was not considered important, likely so, because side-by-side windows are in use more frequently only over the past years. If, with emacs -Q, I do (let ((window (split-window (selected-window) -20 'right))) (window-body-width window)) I get 16 text columns for the new window which is likely not what I expected as someone using this function for the first time with an explicit SIZE argument. In any case, I will have to adjust some doc-strings and the Elisp manual. So far the only hint is the doc-string of `split-window-right' which says Here, SIZE includes the width of the window's scroll bar; if there are no scroll bars, it includes the width of the divider column to the window's right, if any. but I'm struggling with this issue ever since. martin
bug-gnu-emacs@HIDDEN
:bug#17065
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 22 Mar 2014 01:33:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 21 21:33:23 2014 Received: from localhost ([127.0.0.1]:44041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WRAoM-0008OR-GB for submit <at> debbugs.gnu.org; Fri, 21 Mar 2014 21:33:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48872) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <esq@HIDDEN>) id 1WRAoK-0008OJ-4H for submit <at> debbugs.gnu.org; Fri, 21 Mar 2014 21:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1WRAoE-00014r-0d for submit <at> debbugs.gnu.org; Fri, 21 Mar 2014 21:33:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1WRAoD-00014n-Uy for submit <at> debbugs.gnu.org; Fri, 21 Mar 2014 21:33:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1WRAo8-0005OZ-F1 for bug-gnu-emacs@HIDDEN; Fri, 21 Mar 2014 21:33:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1WRAo2-00013R-Dt for bug-gnu-emacs@HIDDEN; Fri, 21 Mar 2014 21:33:08 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:33417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1WRAo2-00012l-5h for bug-gnu-emacs@HIDDEN; Fri, 21 Mar 2014 21:33:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date; bh=YJXNLkxangaD9hdoelPoMvUyGD3tYBJUeU1tFYOuiSA=; b=IJRwsh20RR3m2j0fHugaVPZ4uDeuABmCIjJDpmH+A+qeH8y65bWsBgBLdWtjKZbyUL8Vkf7iFQaW5S3rQK7T00dgTZgbNIvnJ8hrSe99nAgorRjrQMAukWzjS2gBhQFd; Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:49577 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from <esq@HIDDEN>) id 1WRAny-0006Ln-4i for bug-gnu-emacs@HIDDEN; Fri, 21 Mar 2014 21:32:58 -0400 Date: Fri, 21 Mar 2014 17:32:59 -0800 Message-ID: <m261n7f25w.wl%esq@HIDDEN> From: Keith David Bershatsky <esq@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 24.3.50; Revise line 5944 of window.el to use `window-width`, instead of `window-total-width`. User-Agent: / () / () APEL/10.8 Emacs/24.3.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) As to line 5944 of `window.el` -- i.e., `(delta (- new-width (window-total-width window))))` -- the usage of `window-total-width` prevents the user from precisely setting the `window-width` when using *a number* as part of the `alist` -- e.g., `'((window-width . 82))`. This can be demonstrated by the following example: (defun broken-example () (interactive) (window--display-buffer ;; buffer (get-buffer-create "*test*") ;; window (split-window (selected-window) nil 'right) ;; type 'window ;; alist '((window-width . 82)) ;; dedicated t) (message "Window Width: %s" (window-width (get-buffer-window "*test*"))) ) As the Emacs team is well aware, the internal function `window--display-buffer` is used by no less than eleven (11) other functions within the `display-buffer` family of functions. Any of those eleven (11) functions that rely upon `window--display-buffer` for setting the `window-width` with an `alist` in the form of *a number* -- e.g., `'((window-width . 82))` -- will suffer from this problem. My proposed solution would be to replace `window-total-width` with `window-width`. However, I must admit that I do not have sufficient knowledge / expertise to know under what circumstance the `window-total-width` would be used -- I only know that this is what causes the inability to properly set the `window-width` when using many of the `display-buffer` family of functions. Here is a link to the thread that I opened on stackoverflow.com on this same issue: http://stackoverflow.com/questions/22565759/window-display-buffer-how-to-precisely-set-window-width-at-time-of-creation/22572176#22572176 Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 24.3.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2014-03-19 on MP.local Repository revision: 116808 rgm@HIDDEN Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns' Important settings: locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: whitespace-mode: t linum-mode: t hl-line-mode: t lawlist-delete-selection-mode: t global-lawlist-scroll-bar-mode: t lawlist-scroll-bar-mode: t flyspell-mode: t shell-dirtrack-mode: t desktop-save-mode: t tabbar-mode: t highlight-parentheses-mode: t font-lock-mode: t blink-cursor-mode: t visual-line-mode: t transient-mark-mode: t Recent input: <escape> x r e p o r t - e m a c s - b u g <return > Recent messages: Loading /Users/HOME/.0.data/.0.emacs/init.el (source)... Loading /Users/HOME/.0.data/.0.emacs/.multiple_cursors...done Loading /Users/HOME/.0.data/.0.emacs/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Starting new Ispell process /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell with english dictionary... Wrote /Users/HOME/.0.data/.0.emacs/.lock Load-path shadows: /Users/HOME/.0.data/.0.emacs/elpa/flim/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/md4 /Users/HOME/.0.data/.0.emacs/elpa/flim/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/hex-util /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/sasl /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/sasl-ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/sasl-digest /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/sasl-cram /Users/HOME/.0.data/.0.emacs/elpa/flim/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/hmac-md5 /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/net/hmac-def /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/mail/rfc2368 /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/gnus/utf7 /Users/HOME/.0.data/.0.emacs/elpa/semi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/gnus/smime /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp5 /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg-parse /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg-gpg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/pgg-def /Users/HOME/.0.data/.0.emacs/elpa/utilities/longlines hides /Users/HOME/.0.data/.0.emacs/Emacs_03_19_2014.app/Contents/Resources/lisp/obsolete/longlines Features: (shadow wl-mime mime-edit pgg-parse pccl pccl-20 signature mime-setup mail-mime-setup semi-setup mime-pgp pgg-def mime-play filename mime-image modb-standard elmo-imap4 time-stamp emacsbug bbdb-autoloads init-wl wl-demo wl-draft eword-encode wl-template sendmail elmo-net elmo-cache elmo-map elmo-dop wl-news wl-address wl-thread wl-folder wl wl-e21 wl-spam wl-action wl-summary wl-refile wl-util pp elmo-flag elmo-localdir wl-message elmo-mime mmelmo-buffer mmelmo-imap mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric elmo-multi elmo-spam elsp-header elsp-generic elmo elmo-signal wl-highlight wl-vars wl-version epg-config elmo-msgdb modb modb-generic modb-entity luna mime elmo-util emu invisible inv-23 poem poem-e20 poem-e20_3 utf7 eword-decode mel mime-def alist std11 mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date elmo-vars elmo-version path-util poe pym static apel-ver product w3m-load mime-w3m w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util disp-table whitespace linum hl-line multiple-cursors-autoloads package savehist lawlist-calculator ps-print ps-def lpr flyspell ispell auto-save-buffers-enhanced bbdb timezone find-func dired-aux dired yasnippet help-mode multiple-cursors mc-separate-operations rectangular-region-mode mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core rect saveplace lawlist-tex-mode pcase compile shell pcomplete comint ansi-color ring skeleton compare-w desktop frameset init-tabbar tabbar lawlist-org lawlist-calendar advice edmacro kmacro derived org-toodledo mailcap-toodledo lawlist-tls http-post-simple url-http tls url-auth url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core password-cache url-vars mailcap json xml w3mexcerpt noutline outline easy-mmode gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message cl-macs gv format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl cl-loaddefs cl-lib highlight-parentheses redo time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs)
Keith David Bershatsky <esq@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#17065
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.