From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2714: 23.0.91; set-default-font incorrectly changes font height? Date: Thu, 19 Mar 2009 09:36:02 +0900 Message-ID: <87ljr2gxhp.fsf@catnip.gol.com> Reply-To: Miles Bader , 2714@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237424689 24287 80.91.229.12 (19 Mar 2009 01:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 01:04:49 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 02:06:03 2009 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.50) id 1Lk6hF-0002cl-M2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 02:05:50 +0100 Original-Received: from localhost ([127.0.0.1]:56715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lk6ft-0000sV-2P for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 21:03:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lk6fp-0000sD-Fa for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 21:03:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lk6fk-0000oK-Gx for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 21:03:52 -0400 Original-Received: from [199.232.76.173] (port=41383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lk6fk-0000nq-57 for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 21:03:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32947) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lk6fh-0007cP-N7 for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 21:03:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2J13heR008755; Wed, 18 Mar 2009 18:03:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2J0j6KF003832; Wed, 18 Mar 2009 17:45:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Miles Bader Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 19 Mar 2009 00:45:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2714 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12374229742013 (code B ref -1); Thu, 19 Mar 2009 00:45:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Mar 2009 00:36:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2J0aAxR002007 for ; Wed, 18 Mar 2009 17:36:11 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:59422 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lk6F0-0003P4-4q for emacs-pretest-bug@gnu.org; Wed, 18 Mar 2009 20:36:10 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lk6Ew-0003rS-7k for emacs-pretest-bug@gnu.org; Wed, 18 Mar 2009 20:36:09 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:37761) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lk6Ev-0003qo-BB; Wed, 18 Mar 2009 20:36:06 -0400 Original-Received: from 218.231.175.8.eo.eaccess.ne.jp ([218.231.175.8] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1Lk6Es-0005vV-UG; Thu, 19 Mar 2009 09:36:03 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 40AC7DFCB; Thu, 19 Mar 2009 09:36:02 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Original-Lines: 116 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 18 Mar 2009 21:03:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:26471 gmane.emacs.pretest.bugs:24153 Archived-At: When I use `set-default-font', it seems to affect the font-height even though I explicitly tell it to only change the family. To reproduce: (1) Start emacs with: emacs -Q (2) Evaluate the following in *scratch*: (set-default-font "Liberation Mono-8") Notice that the font is now fairly small, as I specified an 8-point font. (3) Evaluate the following in *scratch*: (set-fontset-font nil 'unicode (font-spec :family "Dejavu Sans Mono") nil 'prepend) (4) ** Notice that the default font size has changed to become fairly large , even though I explicitly specified only the family to `set-fontset-font'. ** (5) I can then force the size back to the original correct size using: (set-face-attribute 'default nil :height 80) [Hopefully you have those two fonts on your system, as they're common free fonts; however any two scalable fonts will probably work.] Thanks, -Miles If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.0.91/etc/DEBUG for instructions. In GNU Emacs 23.0.91.14 (x86_64-unknown-linux-gnu, GTK+ Version 2.15.5) of 2009-03-18 on catnip Windowing system distributor `The X.Org Foundation', version 11.0.10599902 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: rcirc-track-minor-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: 8 " ) C-x C-v ~ / . e m a c s . e l > C-u C-p C-u C-p C-u C-p C-p C-SPC C-n w C-x C-n C-SPC C-p C-SPC C-n C-n w C-x b C-y C-p C-e C-p M-b M-b M-b h h D e j a v u SPC S a n s SPC m M o n o d C-n M-b M-b M-b M-b C o u r i e r d d d C-x C-s C-s e C-p C-p M-b M-b h C-x C-s C-n C-h f C-x o C-v C-n C-x p C-f ( f o n t - s p e c SPC " f a m i l h : f a m i l y SPC C-M-f ) C-M-b C-n C-b C-n C-M-f C-M-f C-M-f C-M-f C-M-b ( f o n t ' SPC : f a m i l y SPC C-M-f ) C-x C-s C-p C-p C-a C-k C-k C-e M-b M-b M-b C-g C-a C-y C-p M-f M-f M-p C-a C-k C-k C-x C-s ( s e t - f a c e - a t t r i b u t e SPC : ' d e f a u l t SPC n i l SPC : h e i g h t SPC " 8 0 " ) C-j C-p C-SPC C-e w C-a C-k C-p C-p C-p C-n ; C-x C-s C-SPC C-e w C-/ C-n C-n C-SPC C-p C-p C-p w r e C-g x r e p o C-g h x r e p o r t - e m a SPC Recent messages: Saving file /tmp/.emacs... Wrote /tmp/.emacs Mark set Undo! Mark set xding Quit xding Quit Scanning for dabbrevs...100% -- Barometer, n. An ingenious instrument which indicates what kind of weather we are having.