From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to create a small child-frame which only show two lines Date: Sat, 09 Dec 2017 11:35:42 +0100 Message-ID: <5A2BBC7E.9020400@gmx.at> References: <32764281.548.1602e496fa6.Coremail.tumashu@163.com> <5A290998.6030900@gmx.at> <5A2A6572.4060700@gmx.at> <65440769.c307.16036041a32.Coremail.tumashu@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1512815763 21898 195.159.176.226 (9 Dec 2017 10:36:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2017 10:36:03 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 09 11:35:59 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNcUA-0005XM-UE for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2017 11:35:59 +0100 Original-Received: from localhost ([::1]:40767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNcUI-0004S7-8E for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2017 05:36:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNcUA-0004Rq-Cj for emacs-devel@gnu.org; Sat, 09 Dec 2017 05:35:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNcU5-0005OC-Ge for emacs-devel@gnu.org; Sat, 09 Dec 2017 05:35:58 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:56056) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNcU5-0005Ms-6x for emacs-devel@gnu.org; Sat, 09 Dec 2017 05:35:53 -0500 Original-Received: from [192.168.1.100] ([46.125.250.101]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M1zFf-1fBJj03Th5-00tzWe; Sat, 09 Dec 2017 11:35:45 +0100 In-Reply-To: <65440769.c307.16036041a32.Coremail.tumashu@163.com> X-Provags-ID: V03:K0:Gh2u4sKJJoR5I7grYZttCXAQNhseKLYUNE/dy1E/aISbvTXtsTJ zKxpGV4MjzbYjke1ZyQxPLtNtz1iOth0czHfTQMzSunnOK+5POXACXzfYoAFav6JklyIV6Q Qwm0vvuyjgIRyNuc2VblFq82OqHmN5AtP4HA6qg1RjLbUYu0Kk2eP7eP8FNJUACgOBDsyrG JJCGmeLco4pCRjkkZi1xQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:z+JxqolTKn8=:58/cCTTIbWDG/GRX/dMdrx aAXozAYAwSoMqXcjpeN8zeobUZGl0WMWlXlOxYSvnbeKViUBNemezJnQ4Br7cZXl7GVFNua4h SEjtnkw0aD2uNWXm6UMUJR6ubvJFq5H/GiWyIQYbzNIf75G0dPFDznPw76RbUMycgIhYGDEN3 Jec4kvCv7ZepZMz/a75R01DIfMHuzuIQ+RauizDU103DH1Ds2MaGLBAnkcP1bfIMwv1gYoj4y ZrwTuNelbL4+ja0bFP39cqp6dN3s3z41tw+46t9UW9rzrZDZWI2F0mF5celwTJ28U17YTbUNh aFvGoymNjo+ckX7D88YEz7tXn6yFu6LvQ7LbmVWDcB6rr/grMB91SM2dxJ/xDdbxFSKSvBjGA 09VO/bMyoJwss6yXcmJURW6p1NmuvtOu+3oCXau/X8eTmRDMr0/SmrSRJgaPhHNwNuzJWQPG9 4eq9V0TrDp50Aagh0szJmfNTB6dVsMvoiQ4t6WRUYRFfHDxKNY8Miuixy2HBL9MkiynUeLN5q eUzpWfydkbICQUQ1tOCz+i6vqhmoct7VA3MUQZMtdXil+kyli8zcCtjq0ihDFWnqLL/j4Sn68 VML3KNF6ov4yi0eZDjUtoEHr6wQpxSmLXbva+VQHpTsZvv+HGX/TL/47iSYhPvHHCY/VFC8nE FJqE3yN0mrVLFx51gZUgItLQKr+akecZtqTGw2oC/TKzC7JNHSI4gBS7zAUIAXAJVEUzf/GWx QUh8JS6/bPXpOYF03MuyTEi5z60iDgZEEV3AK8QbdZJHdjr0AP5/7Q+Xtq6Vk6oZdF2qZ48d X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220813 Archived-At: > Thank your for your help, I have solved the problem: I add (window-min-height 1) and (window-min-width 1)) > to my code and let my English main font is taller than my Chinese fonts. Would setting `set-frame-font' for that child frame help then? Provided you can say in advance which of your fonts should be the dominant one for the frame in question. BTW, note that setting these parameters (set-window-parameter window 'mode-line-format 'none) (set-window-parameter window 'header-line-format 'none)) is generally only needed when you show the corresponding buffer in a "normal" window and in a child frame window. If you show the buffer in a child frame only, setting the buffer-local values of `mode-line-format' and `header-line-format' to nil usually suffices. martin