From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 11 07:20:19 2016 Received: (at submit) by debbugs.gnu.org; 11 Dec 2016 12:20:19 +0000 Received: from localhost ([127.0.0.1]:37579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG374-0004jh-Pk for submit@debbugs.gnu.org; Sun, 11 Dec 2016 07:20:18 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG373-0004jT-G3 for submit@debbugs.gnu.org; Sun, 11 Dec 2016 07:20:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG36x-0004Nu-F4 for submit@debbugs.gnu.org; Sun, 11 Dec 2016 07:20:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cG36x-0004Nq-CT for submit@debbugs.gnu.org; Sun, 11 Dec 2016 07:20:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG36u-0000jX-RB for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 07:20:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG36p-0004G8-TX for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 07:20:08 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cG36p-00043M-MM for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 07:20:03 -0500 Received: by mail-pg0-f66.google.com with SMTP id x23so7770778pgx.3 for ; Sun, 11 Dec 2016 04:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=at+fgy7DWjps/m++LfbEnSs4YcaJZ5rV9Gmddq3Yy5g=; b=QwGwILQWyPkZ5q8crjRLMlQdIwnRyO21NMD2goU+i1UbqMpk11C0ont5aRw/wTWGv0 fVuNhNDnKcmYmNuPIEpC5ehmLr6hxp9qw1bCtKNe39Rs//ec1BjLHMnBlvUYzoghTEp6 RwRM3d6C8P/9ksgtL4YEgt0G71thPhleOghxboeqtfnaOukTg0ZgRKd1FAB+0w7T6gqa /b39GChwEijS1KVpW8URZIpEl/g3E+MtQDtvBwuzTEh+cEFkcMgq75TMCgA+Clhk+cb8 tk7J090FKYvnGJ/o0wr2TZskCKIgnWyC7dPvdDvdrVHU8ooxX5esiDnsywPkOJbX5Eyo iLMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=at+fgy7DWjps/m++LfbEnSs4YcaJZ5rV9Gmddq3Yy5g=; b=DeEN3x9SXLve41ASFXV2XusXOo4te32UMlEMmHQ3AGgxFLJ+9EmYdlr8OoQwVUGZSC FVrVYd60sLVQIb7PGz8Bwu0I95mFF5Csd/I2QXV67G9SXGf4kVKJ/kBNWBsz7cIqA1bU Eh7A8kBJ8sQdN70D8mQXmMtN0rXNFbCCKltC9hI+nyMUu9izrbTvVaF9gF26x6gO9Noo BgTQZTZ8fj1KhYv0VrDhvgAbMfXCTZgq600+od6/NEGu09qPi6CCfxmUu1W72o44tIoX h0MD1E0gI0J4CXd8oNdFP20PTUKdKLpUyLJsEGD75ZLUa6bOy5ehq1BhkebKDbiDxPfh pXKA== X-Gm-Message-State: AKaTC01RFul0IJtzgX93sw1Gtp9u1yNCL90QR7tF2V9ZgplFwQc6uRMcHb5metptEtkd3Q== X-Received: by 10.99.229.17 with SMTP id r17mr159701903pgh.149.1481458721277; Sun, 11 Dec 2016 04:18:41 -0800 (PST) Received: from [0.0.0.0] ([188.166.240.79]) by smtp.gmail.com with ESMTPSA id t89sm69640202pfe.50.2016.12.11.04.18.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Dec 2016 04:18:40 -0800 (PST) To: bug-gnu-emacs@gnu.org Subject: 26.0.50; display-buffer doesn't set window width correctly From: Liu Hui Message-ID: <620bfbe6-9805-e1ea-a426-0ec0058fe5e8@gmail.com> Date: Sun, 11 Dec 2016 20:18:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Recipe 1: 1. Emacs -Q 2. evaluate the following code in *scratch*: (display-buffer (get-buffer-create "aaa") '(display-buffer-pop-up-window (window-width . 20))) ;; => correct window width for buffer "aaa" (display-buffer (get-buffer-create "bbb") '(display-buffer-pop-up-window (window-width . 20))) ;; => changed and larger window width for buffer "bbb" Recipe 2: 1. Emacs -Q 2. evaluate the following code in *scratch*: (display-buffer (get-buffer-create "aaa") '(display-buffer-in-side-window (window-width . 20) (side . right))) ;; => correct window width for buffer "aaa" (display-buffer (get-buffer-create "bbb") '(display-buffer-in-side-window (window-width . 20) (side . left))) ;; => correct width for buffer "bbb", but the window width of ;; buffer "aaa" is changed and becomes larger In GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-10 built on lgw01-57 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 11 11:20:01 2016 Received: (at 25169) by debbugs.gnu.org; 11 Dec 2016 16:20:01 +0000 Received: from localhost ([127.0.0.1]:38295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG6r3-0007NU-EN for submit@debbugs.gnu.org; Sun, 11 Dec 2016 11:20:01 -0500 Received: from mout.gmx.net ([212.227.17.20]:60379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG6r1-0007NA-C7 for 25169@debbugs.gnu.org; Sun, 11 Dec 2016 11:20:00 -0500 Received: from [192.168.1.103] ([212.95.7.84]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M9s8K-1cMfLs2XJQ-00B3ws; Sun, 11 Dec 2016 17:19:52 +0100 Message-ID: <584D7CA3.5000409@gmx.at> Date: Sun, 11 Dec 2016 17:19:47 +0100 From: martin rudalics MIME-Version: 1.0 To: Liu Hui , 25169@debbugs.gnu.org Subject: Re: bug#25169: 26.0.50; display-buffer doesn't set window width correctly References: <620bfbe6-9805-e1ea-a426-0ec0058fe5e8@gmail.com> In-Reply-To: <620bfbe6-9805-e1ea-a426-0ec0058fe5e8@gmail.com> Content-Type: multipart/mixed; boundary="------------060606040006010600010703" X-Provags-ID: V03:K0:N5kdZ7mVNI+0GePjIqtvVzcWz81fKeVDo+FH0pEbjI6XAtH0CV/ RMTKGUqOeKgGD1h1t5IPGmopFj/RGiwOODNAntWFF3rbYGTdAk/byolnnYOGNwDfAjyiNzK UUO4Qv0k0McM8VEYaPUQ4pSdmaeMKwD8W1ViBzJS4jdN/nRK0+hzBgbqIEGgrZ2vaarX8iv xj8YqVydCpuGc1yAkCX+w== X-UI-Out-Filterresults: notjunk:1;V01:K0:2RYxVUhG6eQ=:vr3GV1tfFaf+Wkg98Y36rp qeIJJta/FMXK6V42+JLGdam9m3KIXTJD/oy7AHEJnezizPBQCFw70LGUVin6yqZEM9rvFhDDd LXH81TPPE45XYo9Fi5g2ukn6NrEUXRzUGzezeGO0yzFCQ++HzT5ezPmkmWyWiRD/sAsqRm5F6 2Z4QgvTg64ERQYCvdjv7hJnfAG5n7XUQoa06AkesKNokmVw8W/Y7O6VcD00KbF7bBn+G+dwe2 1cpyopDZ0wfq5aPnm8+BL89IfuAzg+lA2s54s0Ay8R3eetSePnCO1R9Ep88hFeZd3G7MMv6lS 5G2suY3ETRP7rVfo8MR2ApvuiN4a+UOv9JgRmz2JGYMlXjRiSNFVJkDNWyhzMEoB9kA2532yd bP5jM5i5LupEI2ihnSNSXlAl/7vyLKAcubCMjjji7R9+J+BLb4zwf/uSoWMjaHlh2V5hHNhjE IK/MHa670+rhevikBOVMjr9M05UOrNHRYl3p2VzuE24TtJ9NTKpGDgM5ZC/eJPbcQMRBxsMfo oVHzOnFDJVU0+Zow1tjiwM8l8xwmVb6LA8warHsMxADblvOmHTVhCMvG1sZ0/lFZ9SdMFhSrz bKoQdzB3zQTf3c0qwFyNVmfogqZkH5V05tXuleHUnf5Yu6R0g5qQGIBawGOUtTkM0bWhoqYmx mQH4oeQX5fR6Vqd+YQkN2rNPjSI6PJyGZpXq6mK4jAkYuxnmRGJ2Nh+SVYeQUAluT/DPXhu7g DBGHllpvkqkdDLsUCPaGRMlWrL/iTacVoO0T9AxM6vf7prUBGpm7xZYGKku8QrcRJ/p/U/n4n 8Xhekgs X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks for the report. > Recipe 1: > > 1. Emacs -Q > 2. evaluate the following code in *scratch*: > > (display-buffer (get-buffer-create "aaa") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; => correct window width for buffer "aaa" > > (display-buffer (get-buffer-create "bbb") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; => changed and larger window width for buffer "bbb" [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [212.95.7.84 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.20 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) X-Debbugs-Envelope-To: 25169 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks for the report. > Recipe 1: > > 1. Emacs -Q > 2. evaluate the following code in *scratch*: > > (display-buffer (get-buffer-create "aaa") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; => correct window width for buffer "aaa" > > (display-buffer (get-buffer-create "bbb") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; => changed and larger window width for buffer "bbb" [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [212.95.7.84 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.20 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) This is a multi-part message in MIME format. --------------060606040006010600010703 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Thanks for the report. > Recipe 1: > > 1. Emacs -Q > 2. evaluate the following code in *scratch*: > > (display-buffer (get-buffer-create "aaa") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; =3D> correct window width for buffer "aaa" > > (display-buffer (get-buffer-create "bbb") > '(display-buffer-pop-up-window > (window-width . 20))) > ;; =3D> changed and larger window width for buffer "bbb" Recipe 1 is difficult to reproduce here. I made my initial frame 169 columns wide to get a side-by-side split when displaying aaa and to _not_ get another side-by-side split when displaying bbb. What happens is that =E2=80=98display-buffer-pop-up-window=E2=80=99 refuses to make a = new window for bbb (you can reduce the value of =E2=80=98split-width-threshold=E2=80=99 = to get a split) so =E2=80=98display-buffer=E2=80=99 rather uses aaa's window to display b= bb via =E2=80=98display-buffer-use-some-window=E2=80=99. The latter ignores the= =E2=80=98window-width=E2=80=99 entry but applies =E2=80=98window--even-window-sizes=E2=80=99 instead. So this is not a bug but admittedly a very confusing sequence of events. > Recipe 2: > > 1. Emacs -Q > 2. evaluate the following code in *scratch*: > > (display-buffer (get-buffer-create "aaa") > '(display-buffer-in-side-window > (window-width . 20) > (side . right))) > ;; =3D> correct window width for buffer "aaa" > > (display-buffer (get-buffer-create "bbb") > '(display-buffer-in-side-window > (window-width . 20) > (side . left))) > ;; =3D> correct width for buffer "bbb", but the window width of > ;; buffer "aaa" is changed and becomes larger This is a bug and I attached a fix for it. Please try it. Note, however, that in general you can rely on Emacs to preserve the size of a window like that of aaa in recipe 2 if and only if you run =E2=80=98window-preserve-size=E2=80=99 on that window - either explicitly= or via a `preserve-size' argument. martin (BTW: Does the ibuffer scenario from bug#25115 work orderly now?) --------------060606040006010600010703 Content-Type: text/plain; charset=windows-1252; name="window.el.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="window.el.diff" LS0tIGEvbGlzcC93aW5kb3cuZWwKKysrIGIvbGlzcC93aW5kb3cuZWwKQEAgLTI3OTcsNyAr Mjc5Nyw3IEBAIHdpbmRvdy1yZXNpemUKIAkJd2luZG93IGRlbHRhIGhvcml6b250YWwgaWdu b3JlIG5pbCBuaWwgbmlsIHQpKSkKICAgICAgICh3aW5kb3ctLXJlc2l6ZS1yZXNldCBmcmFt ZSBob3Jpem9udGFsKQogICAgICAgKHdpbmRvdy0tcmVzaXplLXRoaXMtd2luZG93IHdpbmRv dyBkZWx0YSBob3Jpem9udGFsIGlnbm9yZSB0KQotICAgICAgKGlmIChhbmQgKG5vdCB3aW5k b3ctY29tYmluYXRpb24tcmVzaXplKQorICAgICAgKGlmIChhbmQgKG5vdCAoZXEgd2luZG93 LWNvbWJpbmF0aW9uLXJlc2l6ZSB0KSkKIAkgICAgICAgKHdpbmRvdy1jb21iaW5lZC1wIHdp bmRvdyBob3Jpem9udGFsKQogCSAgICAgICAoc2V0cSBzaWJsaW5nIChvciAod2luZG93LXJp Z2h0IHdpbmRvdykgKHdpbmRvdy1sZWZ0IHdpbmRvdykpKQogCSAgICAgICAod2luZG93LXNp emFibGUtcApAQCAtNDA0OSw3ICs0MDQ5LDcgQEAgZGVsZXRlLXdpbmRvdwogCSAgICAgKHNp YmxpbmcgKG9yICh3aW5kb3ctbGVmdCB3aW5kb3cpICh3aW5kb3ctcmlnaHQgd2luZG93KSkp KQogCSh3aW5kb3ctLXJlc2l6ZS1yZXNldCBmcmFtZSBob3Jpem9udGFsKQogCShjb25kCi0J ICgoYW5kIChub3Qgd2luZG93LWNvbWJpbmF0aW9uLXJlc2l6ZSkKKwkgKChhbmQgKG5vdCAo ZXEgd2luZG93LWNvbWJpbmF0aW9uLXJlc2l6ZSB0KSkKIAkgICAgICAgc2libGluZyAod2lu ZG93LXNpemFibGUtcCBzaWJsaW5nIHNpemUgaG9yaXpvbnRhbCBuaWwgdCkpCiAJICA7OyBS ZXNpemUgV0lORE9XJ3Mgc2libGluZy4KIAkgICh3aW5kb3ctLXJlc2l6ZS10aGlzLXdpbmRv dyBzaWJsaW5nIHNpemUgaG9yaXpvbnRhbCBuaWwgdCkKCg== --------------060606040006010600010703-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 11 23:53:24 2016 Received: (at 25169) by debbugs.gnu.org; 12 Dec 2016 04:53:24 +0000 Received: from localhost ([127.0.0.1]:38662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGIc7-0006au-UX for submit@debbugs.gnu.org; Sun, 11 Dec 2016 23:53:24 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGIc6-0006ah-DE for 25169@debbugs.gnu.org; Sun, 11 Dec 2016 23:53:22 -0500 Received: by mail-pg0-f68.google.com with SMTP id 3so9610924pgd.0 for <25169@debbugs.gnu.org>; Sun, 11 Dec 2016 20:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=DdDsUECusPYZ9ZjbGuCSIBR1pdKQmrjs0zIQ674Rn+A=; b=FzWnROGAzcqXEhWvO0LOK7xEEsav4FOxmretYZBzXuYZxC9G4DTw5hn2Rih/g6uPeZ bdynYA/6iCQgepqvP1Yhv370cwrQu1QId65bbTGAx5t+04IE30e7kWpYHmw8uwG9oKtP ci1echMMvS6Wlr34HUt0P0Va0H9AU9NQ0ZJBMoPBN71d04JHnWK0cCflqazkzT8pUMCx aVk294t/5CpG3pEdO4pDazPFcvTa7JnoVLgZd6fo+YJ67Kb8K7eVlOYMxbkwN34TDcSZ gpUMf+BQk1+x9hS8bwTrOGKP8paX6UOpBVQnJ5uFL9k526SfWpjtZRuBvL7hmky9zA2d HuBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=DdDsUECusPYZ9ZjbGuCSIBR1pdKQmrjs0zIQ674Rn+A=; b=NArDTv2KuR0qbJlp407HVRg2kNCy194Lw10/1NnYUKM3fk8AfeAMBXjhMeRAjpuju7 FvW4WdXod2EhMKYr1x/dmNlPESm7oZZLd8jPUADzefZ+3MEovdbvPYLHrbeAO8RIj0Hl IVZh6RsK9dM5PKMBChD+ea8ALOuPlEa9t4WrlVOXfEeon/1Qw7bZVZq6p6UJzQxLWn2f fXRZnWmNp1va4lOQbkFOS69nYoJp6BBRM7P45JGwCC9Rw4Eqm5iyznunj4cJZzZ9R437 MkFN5lunkhnKlJcKWO5Da/yrAR7Hzk8GEtsiEoeZSv/I3wFUOv0AuMx5x1zfsAMY0FO+ YoMw== X-Gm-Message-State: AKaTC03N5eAyCPlrvE+RcV2C+llTfptHz6jGELdLVsHyTdE4aUgfD1Mao45SOiFdWcBSLg== X-Received: by 10.99.141.193 with SMTP id z184mr166037274pgd.23.1481518396471; Sun, 11 Dec 2016 20:53:16 -0800 (PST) Received: from [0.0.0.0] ([188.166.240.79]) by smtp.gmail.com with ESMTPSA id y6sm73229390pge.16.2016.12.11.20.53.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Dec 2016 20:53:16 -0800 (PST) From: Liu Hui Subject: Re: bug#25169: 26.0.50; display-buffer doesn't set window width correctly To: martin rudalics References: <620bfbe6-9805-e1ea-a426-0ec0058fe5e8@gmail.com> <584D7CA3.5000409@gmx.at> Message-ID: <5e1519ee-1bf7-cf76-0295-233ea4dd9394@gmail.com> Date: Mon, 12 Dec 2016 12:53:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <584D7CA3.5000409@gmx.at> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 25169 Cc: 25169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) > Recipe 1 is difficult to reproduce here. I made my initial frame 169 > columns wide to get a side-by-side split when displaying aaa and to > _not_ get another side-by-side split when displaying bbb. What happens > is that ‘display-buffer-pop-up-window’ refuses to make a new window for > bbb (you can reduce the value of ‘split-width-threshold’ to get a split) > so ‘display-buffer’ rather uses aaa's window to display bbb via > ‘display-buffer-use-some-window’. The latter ignores the ‘window-width’ > entry but applies ‘window--even-window-sizes’ instead. > > So this is not a bug but admittedly a very confusing sequence of events. I see. Thanks for the explanation. > This is a bug and I attached a fix for it. Please try it. > > Note, however, that in general you can rely on Emacs to preserve the > size of a window like that of aaa in recipe 2 if and only if you run > ‘window-preserve-size’ on that window - either explicitly or via a > `preserve-size' argument. The problem is fixed. Thanks again! > (BTW: Does the ibuffer scenario from bug#25115 work orderly now?) Yes, and I'll add some information in that thread. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 05:00:19 2016 Received: (at 25169-done) by debbugs.gnu.org; 12 Dec 2016 10:00:19 +0000 Received: from localhost ([127.0.0.1]:38779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGNP9-0007Ee-Iw for submit@debbugs.gnu.org; Mon, 12 Dec 2016 05:00:19 -0500 Received: from mout.gmx.net ([212.227.15.15]:54402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGNP8-0007EJ-MT for 25169-done@debbugs.gnu.org; Mon, 12 Dec 2016 05:00:19 -0500 Received: from [192.168.1.100] ([212.95.7.105]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M0gww-1cUCYc317m-00usxG; Mon, 12 Dec 2016 11:00:12 +0100 Message-ID: <584E7526.80000@gmx.at> Date: Mon, 12 Dec 2016 11:00:06 +0100 From: martin rudalics MIME-Version: 1.0 To: Liu Hui Subject: Re: bug#25169: 26.0.50; display-buffer doesn't set window width correctly References: <620bfbe6-9805-e1ea-a426-0ec0058fe5e8@gmail.com> <584D7CA3.5000409@gmx.at> <5e1519ee-1bf7-cf76-0295-233ea4dd9394@gmail.com> In-Reply-To: <5e1519ee-1bf7-cf76-0295-233ea4dd9394@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:8AP8vihITTl0lJP+PVJGI1KWCy/t0eNI3hsD9FUF/E0GAtub5dm TgNM6LdWkRgZJW/pHIWlj0bGSSThFJ6ah1aJfb4EIoD4qInapdCqptaZIGTNX2m5y04gcgl KOccUsWM7fo+BpPgnnoax8zQvlBio1KLXQLsjTYcm9aB1yrannGvHCnk90HQgGskefz2ESo LWQcCwTUyqz9QvAoB/B/Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:nbPb0IUm8z8=:zpqMWiVsEtNNPC+adMvbCK pU7yP3HT0oeVTdDnoviOQIQBtOOMp5FNNKoxHAV4L1+oBklC2sWMou7rAW94TNG0RdHcHwzKW nkTwXZckCVZnpf/61D+EJ8H9PU9ju/p3MQw9Unpwyok/g7AkIha93DkkqiT3I26lQpc7ko0gH J5krdGrjRENEspNQ+U1dH56OCCusq6EPsyFsYp1whSJAp9OriVqF2YCed+KkNsDeO0quGdDlb Y3cgEu9ZV6Idyn647+NUYzjJgPOczthNYA1tfp+CD6Xmk7XQ/ZnVBXLWmOIT+wg1XnFXVum3w 3ATB5y52L/zqkEYd2mocNHUolpwVir772ZF+PYw8+rC5pEYLM1qJgg9F9MvhZB/YGvJR97HA+ qMTo9hMyPjl5HZUmrbo0i9AG1kIoZMUUCUW4PyV5SCRbUN5v+h0chBV63Vt7BkVpNOqzFTT3+ 5kIijpc1KNUumzNk4isIHhyfobbmz+Iuu56mfFPedFTdn1MDASTJQWq2xHo81G1OwPOv+amnR N12IwfOILQYjFx2e+L4/GmZ7T+pEd0iHc4s1bu609Gjr5S1CNFKsR37ZyyZk2lF3RaguxBmfp p20RN6V2+hiyYYqfsazS0wUwtp/vdiqLtiLnjQqpMmqihu6F22GC5PU3kI58GknxwAiPpLWa+ DgHEKMcll7j5OgrocdzHSbarKorfVz+s8OIaaCAeK53SEe9HzH1rBILKj9Esis2Qjy2ADW5zO ZBadzluUv7HhD41O9EevSsOQaAEPy/uyaei5GW7sAk9IGHk4uncY2K+VunzETD/zctWTC6Rge JyRZHH2Aalt2PJtPw+/Y/fRvnm+hg== X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > The problem is fixed. Thanks again! Installed on master. Closing this bug. Thanks, martin [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [212.95.7.105 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.15.15 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.15 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) X-Debbugs-Envelope-To: 25169-done Cc: 25169-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > The problem is fixed. Thanks again! Installed on master. Closing this bug. Thanks, martin [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [212.95.7.105 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.15.15 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.15 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rudalics[at]gmx.at) > The problem is fixed. Thanks again! Installed on master. Closing this bug. Thanks, martin From unknown Tue Aug 19 01:59:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Jan 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator