From unknown Mon Jun 23 18:32:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21413: Top of buffer hidden when toolbar hidden and frame height is large Resent-From: Devon Buchanan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2015 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21413@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14413808191804 (code B ref -1); Fri, 04 Sep 2015 15:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Sep 2015 15:33:39 +0000 Received: from localhost ([127.0.0.1]:48946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXszj-0000T0-6s for submit@debbugs.gnu.org; Fri, 04 Sep 2015 11:33:39 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34827) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXsmo-000074-Io for submit@debbugs.gnu.org; Fri, 04 Sep 2015 11:20:19 -0400 Received: by wicge5 with SMTP id ge5so21112136wic.0 for ; Fri, 04 Sep 2015 08:20:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=E4nWM8QqoZe7Zg05B1vo/fuEILOvXx56RvDBhpNGiAo=; b=cfbzuYFAZUUdqwlpZSjVwytG+3C61XOeEi5D4/haHB3AcortFbMY8vfwNNGpll6e+h yzmuh9zEImR4DNYnHk8APpcLeU7yKibW75Mld6US6YP1DFVoApICV/h1j+5t8hWPHzv9 9UpmHknMxpzwA7RAOYWo0us00NTZLnSgp5UvjV4lrS5vIwOrJszEDK1H2QmjFfw2WjuB a5QDc+he/qucGc0pVAVEmYdME9jCh6Px7KcdwoS1EsvSTTzPgFLflkb98Z9wnIh4s4+l Rd8qCS3UJqKn0HhAyX+vj4NY4AYooSVqJ1NUW0ZpRXyiDr+7g3+IAsmBwyoo340kWp1l fwyg== X-Gm-Message-State: ALoCoQm0/sdDPn0wFmkbRdX9l/zxpWkL4NXyCHOFn3GIGwYyzFarfJzdqFtInzro6T5LII+/Qzkk X-Received: by 10.180.99.193 with SMTP id es1mr8552729wib.29.1441380017969; Fri, 04 Sep 2015 08:20:17 -0700 (PDT) Received: from localhost ([159.92.9.130]) by smtp.googlemail.com with ESMTPSA id ga8sm4715396wib.21.2015.09.04.08.20.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 08:20:17 -0700 (PDT) From: Devon Buchanan Date: Fri, 04 Sep 2015 16:20:16 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Fri, 04 Sep 2015 11:33:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) Package: emacs Version: 24.5.1 * Brief summary When I turn tool-bar-mode off and make a frame taller than the height available on my screen the top of the buffer is hidden until I re-size the window. * Steps to reproduce Here are the steps to reproduce the problem using the NS build of emacs on OS X 10.10.4. cat >> test-init.el < RET will display the contents of that buffer with some or all of the lines at the start hidden. The hidden sections of the buffer can be made visible by clicking and dragging on any edge of the window and resizing it. * Expected behaviour When I set the frame size to be taller than the screen will allow, I expect the frame to occupy as much vertical space as possible without the top of the buffer being hidden. This is the behaviour seen when tool-bar-mode is on. From unknown Mon Jun 23 18:32:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21413: Top of buffer hidden when toolbar hidden and frame height is large Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2015 19:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Devon Buchanan , 21413@debbugs.gnu.org Received: via spool by 21413-submit@debbugs.gnu.org id=B21413.144139427722534 (code B ref 21413); Fri, 04 Sep 2015 19:18:01 +0000 Received: (at 21413) by debbugs.gnu.org; 4 Sep 2015 19:17:57 +0000 Received: from localhost ([127.0.0.1]:48995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXwUn-0005rO-CG for submit@debbugs.gnu.org; Fri, 04 Sep 2015 15:17:57 -0400 Received: from mout.gmx.net ([212.227.17.20]:62052) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXwUm-0005rG-8i for 21413@debbugs.gnu.org; Fri, 04 Sep 2015 15:17:56 -0400 Received: from [188.22.110.110] ([188.22.110.110]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MMoU7-1ZbWKz248l-008ZXB; Fri, 04 Sep 2015 21:17:54 +0200 Message-ID: <55E9EE59.9030402@gmx.at> Date: Fri, 04 Sep 2015 21:17:45 +0200 From: martin rudalics MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:iXPzcyXfN1USGP2Ge3F8GGgezHNLQyJQWbAbdaEXsEnnZW1tAWl 2QuCkZ6rMF/DGfUqluLuoDZDK5DTFpjTItqSi94guQ0RAmxWuXHKnu3qQubxa8rJl9ZjSVQ nWYr2p/D0pcjJ75p8yCP8eZLjqwJz3kfQBod5ittK7C76xxZepg8Qtq98ZOSfHwdK4LbyTv IqjDGsVPfVleiZQdwtQ4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:CRR0hcJ5yjs=:MQ+9uWSIoU2oggnpzShRP6 ZESVTG4CGW2bGbGJKSDeaT5Ya1sOrTDkw8pSEXkk+0UcsUcNgM5LFFWbZa4x271MuIsiWpITw iocdjyNbSfmBo3mWiss7hm6ibELks9MDQ+aMw3bpeou4fakkilKPEgaCz9lAgU4sNNaqi7Ugg St5olENfN6fzliCsx0FHRLOYg8HyDNN1iZnQD28gyLk7VfY3TscP0c1QmqlwxYQu2mtAViIVS XaCVTIbhvpVty0upAXWZbylSl9ZmIhqCU3FeZcxmQVT5p1Xk9bd1PPA+kO1T9DfVsdDLc5vPp YpuTspUK0IAq5Qjv9Fq4Cdt5zcOXiX3XBp1+zyKpp6fvARsE+zTvCxcQ6m4D96tUJtry/4wij HYnnpC+w58jZP+VYj+Ifj5N7UmEl5Aso4WewRbBYeLcwu13YhckquFOa8Ikftth9WPa/2sgbe pExZb5ryLgNJinbTM89r44kNPRts0kF3MfUj1kfpuDo6MUfMnvJyE/vKhY5v638Q3MczXm5F8 pw83298jks0psiC6UAnbMhAERppOSn0HPt5YyNYbqtM6tfZghlSovm9YkdRzym+2GY346stcl 3L4fBURxKPEW7P+1n9bMe4r78tAOZkrj4BttOWm+Yf4CpLL66dVX8D6oIwYRQcNmuGTnkQfX9 WPtzI5bTZmUp15VfQ1AjWjfYSPERKuOXuPg22R3vGBwWzScYonOKUrYrUBQbzIbtOUvjha+ry UbEkh7L+E86SzXQZQI/EL2g6e3+hVwg7FGFGBg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) > Here are the steps to reproduce the problem using the NS build of emacs on OS X 10.10.4. > > cat >> test-init.el < (tool-bar-mode -1) > (setq default-frame-alist '((height . 100))) > EOF > open -a Emacs.app --args -Q -l ~/test-init.el > > This opens a graphical emacs frame showing the *scratch* > buffer. Neither the cursor is visible, nor is the text normally shown > in the *scratch* buffer. Scrolling up will not make either of these > visible. C-x C-f RET will display the contents of > that buffer with some or all of the lines at the start hidden. > > The hidden sections of the buffer can be made visible by clicking and > dragging on any edge of the window and resizing it. > * Expected behaviour > > When I set the frame size to be taller than the screen will allow, I > expect the frame to occupy as much vertical space as possible without > the top of the buffer being hidden. This is the behaviour seen when > tool-bar-mode is on. This is probably beyond Emacs' control. I suppose that your window manager normally tries to assure that the tool bar is visible. When there's no tool bar it simply puts the frame somwhere if it's taller than your screen. What happpens when you also explicitly put the top left edge at some visible position like with (setq default-frame-alist '((top . 5) (left . 5) (height . 100))) martin From unknown Mon Jun 23 18:32:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21413: Top of buffer hidden when toolbar hidden and frame height is large Resent-From: Devon Buchanan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2015 10:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 21413@debbugs.gnu.org Received: via spool by 21413-submit@debbugs.gnu.org id=B21413.144144783532368 (code B ref 21413); Sat, 05 Sep 2015 10:11:02 +0000 Received: (at 21413) by debbugs.gnu.org; 5 Sep 2015 10:10:35 +0000 Received: from localhost ([127.0.0.1]:49381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYAQd-0008Pz-5q for submit@debbugs.gnu.org; Sat, 05 Sep 2015 06:10:35 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:34378) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYAQa-0008Pr-Ux for 21413@debbugs.gnu.org; Sat, 05 Sep 2015 06:10:33 -0400 Received: by wicfx3 with SMTP id fx3so43820079wic.1 for <21413@debbugs.gnu.org>; Sat, 05 Sep 2015 03:10:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=YOl92YBTehqvQauCnXodthMKqrJA077zub2q4KvjyRk=; b=mg0TgaAbnVYVHEaBf69GKd8n0yG/UZqQFHhXl0rpWjR6vVjm3YJjVl1K0CTc55qij0 2m9Pcz4a/TASQtquxr45N9l/UDCjSiA1G6H6So7i06+QdsvAMuOodDKkE6EkPLlGNvm8 4JrOIeieuilBku5zbFbavukuqrNogopPXxy53YH/9dNURroxqDRpnZ2yY+q3esY21C9A m05JJP/Ymhf7xkhoz9JXrKA48nBdO/xpV7WY5CybemSWb9qdoSs7zv/h3PTOSb1rKGtj wOZfeTcua4QxplyIaa7leDGIPFnOLe2RxlMyQWxT9u4pndXWRWyawALwIIrOqTKjxoFq tG+Q== X-Gm-Message-State: ALoCoQlj7wGcRn3L3VaRXGRgP7hnSNBTI4oGNtjdoHPgko5LmvYE9os/q7fNSF23SFpPDgnPLvon X-Received: by 10.194.172.233 with SMTP id bf9mr16221296wjc.107.1441447832307; Sat, 05 Sep 2015 03:10:32 -0700 (PDT) Received: from localhost (host86-140-58-151.range86-140.btcentralplus.com. [86.140.58.151]) by smtp.googlemail.com with ESMTPSA id kb5sm6718310wjc.17.2015.09.05.03.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Sep 2015 03:10:31 -0700 (PDT) References: <55E9EE59.9030402@gmx.at> From: Devon Buchanan In-reply-to: <55E9EE59.9030402@gmx.at> Date: Sat, 05 Sep 2015 11:10:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) On Fri, Sep 04 2015, martin rudalics wrote: > > Here are the steps to reproduce the problem using the NS > > build of emacs on OS X 10.10.4. > > > > cat >> test-init.el < > default-frame-alist '((height . 100))) EOF open -a Emacs.app > > --args -Q -l ~/test-init.el > > > > This opens a graphical emacs frame showing the *scratch* > > buffer. Neither the cursor is visible, nor is the text > > normally shown in the *scratch* buffer. Scrolling up will not > > make either of these visible. C-x C-f RET > > will display the contents of that buffer with some or all of > > the lines at the start hidden. > > > > The hidden sections of the buffer can be made visible by > > clicking and dragging on any edge of the window and resizing > > it. > > > * Expected behaviour > > > > When I set the frame size to be taller than the screen will > > allow, I expect the frame to occupy as much vertical space as > > possible without the top of the buffer being hidden. This is > > the behaviour seen when tool-bar-mode is on. > > This is probably beyond Emacs' control. I suppose that your > window manager normally tries to assure that the tool bar is > visible. When there's no tool bar it simply puts the frame > somwhere if it's taller than your screen. > > What happpens when you also explicitly put the top left edge at > some visible position like with > > (setq default-frame-alist '((top . 5) (left . 5) (height . > 100))) > > martin The below produces the same behaviour described previously. cat >> test-init.el <