From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: set-frame-font question Date: Mon, 19 Feb 2007 06:19:23 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1171858785 12088 80.91.229.12 (19 Feb 2007 04:19:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2007 04:19:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 05:19:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HIzzz-0001SB-T8 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Feb 2007 05:19:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIzzz-0000Ai-B3 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Feb 2007 23:19:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HIzzm-00009u-8h for help-gnu-emacs@gnu.org; Sun, 18 Feb 2007 23:19:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HIzzj-00009i-SS for help-gnu-emacs@gnu.org; Sun, 18 Feb 2007 23:19:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIzzj-00009f-N3 for help-gnu-emacs@gnu.org; Sun, 18 Feb 2007 23:19:19 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HIzzj-0004OD-Aj for help-gnu-emacs@gnu.org; Sun, 18 Feb 2007 23:19:19 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-255-94.inter.net.il [84.229.255.94]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GBQ09305 (AUTH halo1); Mon, 19 Feb 2007 06:19:15 +0200 (IST) In-reply-to: (ecinmn@alcisp.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41306 Archived-At: > From: "B. T. Raven" > Date: Sun, 18 Feb 2007 17:17:24 -0600 > > At the beginning of my .emacs I have this form: > > (setq initial-frame-alist '((name . "arial") (top . 370) (left . 1) (width > . 163) (height . 17))) > > And at the end: > > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(default ((t (:stipple nil :background "ghostwhite" :foreground "black" > :inverse-video nil :box nil :strike-through nil :overline nil :underline > nil :slant normal :weight normal :height 108 :width normal :family > "outline-arial unicode ms"))))) > > > and these to make a frame for looking at things that don't play well with > proportional fonts, like calendar: > > (make-frame '((name . "courier") > (top . 1) (left . 1) (width . 98) (height . 17) > (visibility . icon) ; nil or icon > (font . "-outline-Courier > New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1"))) > > (select-frame-by-name "courier") > > These work all right in version 21.3 but not in the latest snapshot of 22. Please explain what you mean by ``work''. You didn't say what you thought these customizations should do, in your opinion, and without that it's very hard to guess what's wrong with them. What I see is that you customized the initial frame and the default face, that's all. > However, if I go to the "courier" frame and issue M-x set-frame-font, it > works okay. Does any of you have any idea why it can't be set from the > init file? --debug-init doesn't complain, it just leaves it with the > default proportional font and so gets the frame geometry wrong. Do you want all frames to use the outline-arial font? Is that it? If so, did you try customizing default-frame-alist to specify that?