From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [simon.marshall@misys.com: font frame property oddities] Date: Thu, 22 Jun 2006 18:15:04 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1151014541 31925 80.91.229.2 (22 Jun 2006 22:15:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2006 22:15:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 23 00:15:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtXSN-0005cA-JL for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 00:15:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtXSM-0002LZ-Uf for ged-emacs-devel@m.gmane.org; Thu, 22 Jun 2006 18:15:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FtXS6-0002Io-Bp for emacs-devel@gnu.org; Thu, 22 Jun 2006 18:15:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FtXS5-0002IN-HV for emacs-devel@gnu.org; Thu, 22 Jun 2006 18:15:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtXS5-0002II-Bw for emacs-devel@gnu.org; Thu, 22 Jun 2006 18:15:05 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FtXd9-0008Hj-Ex for emacs-devel@gnu.org; Thu, 22 Jun 2006 18:26:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FtXS4-0003Gr-P4; Thu, 22 Jun 2006 18:15:04 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56086 Archived-At: ------- Start of forwarded message ------- From: "Marshall, Simon" To: "'Emacs Pretest Bug (emacs-pretest-bug@gnu.org)'" Date: Thu, 22 Jun 2006 10:24:05 +0100 MIME-Version: 1.0 Content-Type: text/plain Subject: font frame property oddities X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 This is from CVS as of 2006-06-19. Try: xrdb -load ^D src/emacs -Q (make-frame '((font . "6x10"))) C-x C-e (make-frame '((font . "10x20"))) C-x C-e This pops up 2 frames with the correct font. Now try: src/emacs -Q --font=9x15 (make-frame '((font . "6x10"))) C-x C-e (make-frame '((font . "10x20"))) C-x C-e This time, both new frames have the default font (9x15). The same applies if you use the "Emacs*font" resource rather than the "--font" flag. Set-frame-font does change the font in the frame though. I found this passage in "File: elisp, Node: Color Parameters": "These frame parameters are semi-obsolete in that they are automatically equivalent to particular face attributes of particular faces. `font' The name of the font for displaying text in the frame. This is a string, either a valid font name for your system or the name of an Emacs fontset (*note Fontsets::). It is equivalent to the `font' attribute of the `default' face." I'm not sure what is meant by semi-obsolete. Are we no longer supposed to use them? The info node doesn't say what we should do instead. Certainly, foreground-color still works. So, I think there is a bug: the font frame parameter is being ignored if a default font is specified either on the command line or by an X resource. In GNU Emacs 22.0.50.1 (sparc-sun-solaris2.8, X toolkit) of 2006-06-19 on perth X server distributor `Hummingbird Ltd.', version 11.0.100015 configured using `configure '--with-x-toolkit=lucid' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: en_GB.ISO8859-1 value of $LC_CTYPE: en_GB.ISO8859-1 value of $LC_MESSAGES: C value of $LC_MONETARY: en_GB.ISO8859-1 value of $LC_NUMERIC: en_GB.ISO8859-1 value of $LC_TIME: en_GB.ISO8859-1 value of $LANG: en_GB.ISO8859-1 locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------