From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#5308: 23.1.91; Geometry quirk on OpenSuSE 11.2 Date: Sat, 02 Nov 2019 06:08:16 +0100 Message-ID: <87a79ej267.fsf@marxist.se> References: <20100104012559.GA877@srevilak.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75091"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 5308@debbugs.gnu.org To: Steve Revilak Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 02 06:09:37 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQlfK-000JNR-En for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 06:09:34 +0100 Original-Received: from localhost ([::1]:45208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQlfH-0007nQ-LP for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 01:09:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54139) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQles-0007ml-T3 for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 01:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQleo-0001dX-ED for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 01:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQleo-0001bW-5h for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 01:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQlen-0007LW-QR for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 01:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Nov 2019 05:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5308 X-GNU-PR-Package: emacs Original-Received: via spool by 5308-submit@debbugs.gnu.org id=B5308.157267130728189 (code B ref 5308); Sat, 02 Nov 2019 05:09:01 +0000 Original-Received: (at 5308) by debbugs.gnu.org; 2 Nov 2019 05:08:27 +0000 Original-Received: from localhost ([127.0.0.1]:57947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQleF-0007Ka-7I for submit@debbugs.gnu.org; Sat, 02 Nov 2019 01:08:27 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:50188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQleD-0007KM-OV for 5308@debbugs.gnu.org; Sat, 02 Nov 2019 01:08:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jVhVV0SUP4clA0PfpRoVluENFPE/oKneemwT0RC5Mss=; b=VVDg1CRm8eBf3X+13hhQnarzHG gJ4WBstQr9GumXS3ztUlxGlAbKnXfZWEU1s57bb6wFPyXUE0M+mhjWm9t9g6+HDZOaM1U4XEW6HYN TeYX4TsvQdzkcnn6JXLqtSQ/fuJdZIAxsZ78TmTWdc2KlHDSmVacEyot9dF/BIuK6HvM=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:55088 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQle6-0008JN-Q6; Sat, 02 Nov 2019 00:08:19 -0500 In-Reply-To: <20100104012559.GA877@srevilak.net> (Steve Revilak's message of "Sun, 3 Jan 2010 20:25:59 -0500") X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170749 Archived-At: Hi Steve, The below bug was reported 10 years ago, and many things have changed since then. Are you still seeing this on a modern version of Emacs? Best regards, Stefan Kangas Steve Revilak writes: > I've been trying Emacs 23.1.91 on an OpenSUSE 11.2 system. > > Linux srevilak 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux > > In general, this prerelease seems to work very well. However, I have > had difficulty getting Emacs 23.1.91 to respect geometry settings. I > will frame this bug report as a series of (expected, observed) pairs. > In this context, "expected" refers to the the behavior of > > # this is the emacs that comes with OpenSUSE 11.2 > GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.18.1) of 2009-12-02 on build15 > > and "observed" refers to the behavior of Emacs 23.1.91. > > I will also try to be mindful of the recent change in -Q's behavior. > > > CASE 1: Geometry from ~/.Xresources > ----------------------------------- > > I have the (only) following line in ~/.Xresources > > emacs.geometry: 86x46-2+0 > > Expected: emacs starts with dimensions 86x46, two pixels from the > right edge of the screen, and zero pixels from the top edge of the > screen. > > Observed: Emacs starts with dimensions 86x25 (not 86x46). The initial > frame is two pixels from the right edge of the screen, but 225 pixels > from the top edge of the screen (not 0 pixels from the top edge of the > screen). > > > CASE 2: Geometry from Command Line > ---------------------------------- > > I've started emacs as > emacs --no-init-file --no-site-file --geometry 86x46+0+0 > > Expected: Emacs starts with an 86x46 frame, with the upper left corner > of the frame in the upper left corner of the screen. > > Observed: Emacs starts with an 86x28 frame. The frame is positioned > against the right edge of the screen, but 225 pixels from the top of > the screen. > > > CASE 3: Geometry from Command Line (only width and height specified) > -------------------------------------------------------------------- > > Start emacs as > > emacs --no-init-file --no-site-file --geometry 86x46 > > Expected: Emacs starts with an 86x46 frame, with the frame positioned > at coordinates -2+0. (Here the -2+0 was inherited from .Xresources). > > Actual: Emacs starts with an 86x28 frame, with the frame positioned at > -2+225 (225 pixels from the top of the screen) > > > CASE 4: Geometry from the Command Line (but smaller frame size) > -------------------------------------------------------------- > > Start emacs as > > emacs --no-init-file --no-site-file --geometry 60x30+0+0 > > Expected: Emacs starts with a 60x30 frame, positioned in the upper > left corner of the screen. > > Actual: Same as expected. > This is interesting. Given a smaller frame size, emacs 23.1.91 > exhibited the same behavior as emacs 23.1.1. > > > Further pursuit of CASE 4: > ------------------------- > > I continued to experiment with different geometry sizes. At a height > of 44, emacs with the default font fills the vertical space of the > screen. At height > 44, emacs _appears_ to say "this frame is too > tall for the screen, so I'm going to use a different height". > > If height 44 fills the vertical space of the screen, then why do I have > 86x46 in ~/.Xresources? My .emacs uses (set-frame-font) to change > fonts. The font I'm using is a little smaller than the default font, > whereby height 46 fits nicely on the screen, with a little room to > spare at the bottom. > > If it matters, here is my (set-frame-font) call > > (set-frame-font "-efont-fixed-medium-r-normal--16-160-75-75-c-80-iso10646-1") > > > Other observations: > ------------------ > > Moving the font setting from ~/.emacs to ~/.Xresources did not work. > > Changing emacs.geometry to 86x44 (from 86x46) worked. The frame is > two lines of text shorter but this seems okay for now. > > I guess one could summarize this as follows: the maximum height of > emacs' frame is limited by the number of rows that will fit, using the > default font. If you're using a smaller font, then you can't fully > utilize the height of the screen.