From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harold Pimentel Newsgroups: gmane.emacs.bugs Subject: bug#8242: Issue with help menu and set-frame-font Date: Sun, 13 Mar 2011 11:08:08 -0700 Message-ID: <8FFF9E8B-B409-45BB-A0F1-D56EB72AA88C@gmail.com> References: <64B7C423-6AF7-4655-BCAE-908EF130D5B9@gmail.com> <4D7CCA41.6010307@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300041436 16358 80.91.229.12 (13 Mar 2011 18:37:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 18:37:16 +0000 (UTC) Cc: 8242@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 19:37:09 2011 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.69) (envelope-from ) id 1PyqA8-0004b3-Lg for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 19:37:08 +0100 Original-Received: from localhost ([127.0.0.1]:54053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyqA8-0001mQ-7e for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 14:37:08 -0400 Original-Received: from [140.186.70.92] (port=35725 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyqA1-0001m6-7e for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 14:37:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyq9z-0002Vy-QY for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 14:37:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyq9z-0002Vu-O6 for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 14:36:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pyq86-0000VL-BR; Sun, 13 Mar 2011 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harold Pimentel Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2011 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8242-submit@debbugs.gnu.org id=B8242.13000412641895 (code B ref 8242); Sun, 13 Mar 2011 18:35:02 +0000 Original-Received: (at 8242) by debbugs.gnu.org; 13 Mar 2011 18:34:24 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pyq7U-0000UT-02 for submit@debbugs.gnu.org; Sun, 13 Mar 2011 14:34:24 -0400 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PypiC-0008LT-Tz for 8242@debbugs.gnu.org; Sun, 13 Mar 2011 14:08:17 -0400 Original-Received: by pwi5 with SMTP id 5so790768pwi.3 for <8242@debbugs.gnu.org>; Sun, 13 Mar 2011 11:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=tIy1lAYa9s81v7d3h1FytWiPcQhhrs1jXVf2T0sU3cA=; b=EtDzpGWzL/b9nB8aW+6fBrgoU+ZuLemWMbws44vewZ8l5z9dh6/8FVK9zfD5nmWdms KiviGUAfdN/J4AXcGjjctglTuMxViyOZkg/zW+xuGWq8gH2nExAstbxIXOsIyKqQkDXC om8bbAK6NjhUkpBa8E3tPy/DwIukLx5Ioy9FA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=aWXj50HLnGNFYC7xYXqhEkP3zmHvPJFMgM2seWV7tCuGfOauAwAERV54KKi/CPGLB0 G8M7SfiY7sGXjb3vI5kODreKWDnOQzt59p2Yhuk4VpC5FbyEbOUVnd8Rxe2W6XPHZOrO dPfbA5jqsRHqB5FRVVg91IIhrHccP3jypmQdw= Original-Received: by 10.142.153.12 with SMTP id a12mr8687255wfe.403.1300039691059; Sun, 13 Mar 2011 11:08:11 -0700 (PDT) Original-Received: from [192.168.1.3] (c-69-181-157-153.hsd1.ca.comcast.net [69.181.157.153]) by mx.google.com with ESMTPS id m10sm9003784wfl.23.2011.03.13.11.08.09 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Mar 2011 11:08:10 -0700 (PDT) In-Reply-To: <4D7CCA41.6010307@gmx.at> X-Mailer: Apple Mail (2.1082) X-Mailman-Approved-At: Sun, 13 Mar 2011 14:34:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Mar 2011 14:35:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , 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:44975 Archived-At: > > I'm having an issue with set-frame-font. It is as follows: > > > > - I use: > > (set-frame-font "Menlo-12") >=20 > Doesn't this already change the (pixel-)size of the frame? >=20 Yes. The frame appears to be shorter and a few columns more narrow. > > - I split the current frame into two windows > > - If I raise the help menu it goes into the opposite window, = changing that buffer (this is normal) > > - I maximize my window > > - I was using maximize-frame.el, but simply making the window as = large as possible until it "clicks" will suffice > > - Now, if raise the help menu, it splits the current window = vertically instead of putting the help into the other window (BUG HERE) > > - If I don't change the font, I will not have this issue >=20 > Large parts of Emacs think in terms of lines and columns. So what > happens in my opinion is that with the default (larger, I presume) = frame > font less lines fit on one frame of the same pixel height than with = the > Menlo-12 font you want to use. >=20 > If you invoke `set-frame-font' with the second argument nil, Emacs = will > usually adjust the frame's pixel height in order to make it occupy the > same number of lines as with the previously used font. Hence, a > subsequent check whether a window can be split fails just as if you > hadn't changed the font at all, so an existing window gets reused. >=20 > But if you maximize the frame, then with the Menlo-12 font _more_ = lines > may fit into a window than with the original font. So when you invoke > help in the maximized frame, the test (via `split-height-threshold') > whether an existing window can be split succeeds and a new window gets > popped up. You are correct! When I set split-height-threshold to a large value, I = get the original, expected behavior. > If you invoke `set-frame-font' with the second argument non-nil, Emacs > should keep the (non-maximized) frame pixel height constant and you > should be able to observe the splitting behavior with a non-maximized > frame as well. I could not verify this. I.e., when calling (set-frame-font "Menlo-12" = t), I get the same behavior as before. Thanks for your help, Harold=