From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: set-frame-font question Date: Sun, 18 Feb 2007 23:29:19 -0600 Organization: UseNetServer.com Message-ID: <85533$45d935b5$49f11e6$14868@DIALUPUSA.NET> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171863639 21446 80.91.229.12 (19 Feb 2007 05:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2007 05:40:39 +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 06:40:32 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 1HJ1GK-0006l0-8j for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Feb 2007 06:40:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJ1GJ-0001SU-PY for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Feb 2007 00:40:31 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeeds.sol.net!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 87 Original-X-Trace: 8553345d935b5a13ab44314868 Original-Xref: shelby.stanford.edu gnu.emacs.help:145703 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:41308 Archived-At: "Eli Zaretskii" wrote in message news:mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org... > > 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? > > Thanks for your attention to this, Eli. No, I wanted only 2 frames, the initial one using arial (proportional) sized and placed in the bottom half of the screen and another (Courier New, a fixed width font) in the top half for viewing the calendar. In version 21.3 with the above code in .emacs I got exactly this result, a nicely aligned calendar in the "courier" frame and the "ariel" frame showing everything in a proportional font. In version 22.0.93 both frames are using ariel as if the make-frame function didn't call for Courier New. In addition, the frame named "courier" is now incorrectly sized since it is using the wrong font. With C-h v I see that default-frame-alist seems to have inherited (if that's the right word) some settings from the custom-set-faces function: " default-frame-alist is a variable defined in `C source code'. Its value is ((foreground-color . "black") (background-color . "ghostwhite") (tool-bar-lines . 0) (menu-bar-lines . 1) (right-fringe) (left-fringe)) " I edited the >> quoted text above in this posting to explictly show the space in the "Courier New" font name. Is this handled differently in 21.3 and 22.0?