From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhang Wei Newsgroups: gmane.emacs.devel Subject: Re: `set-default-font' does not function anymore Date: Mon, 23 Oct 2006 10:04:19 +0800 Message-ID: <87bqo3dbz0.fsf@emacsfans.org> References: <87bqo4fqyn.fsf@emacsfans.org> <878xj8uk9c.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161569087 8570 80.91.229.2 (23 Oct 2006 02:04:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 02:04:47 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 04:04:47 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 1GbpBE-0001zS-GD for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 04:04:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbpBE-0004FN-1v for ged-emacs-devel@m.gmane.org; Sun, 22 Oct 2006 22:04:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbpB1-0004F7-4c for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:04:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GbpAz-0004DD-Kq for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:04:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbpAz-0004Cx-EW for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:04:29 -0400 Original-Received: from [66.249.82.233] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GbpAy-00086A-LB for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:04:28 -0400 Original-Received: by wx-out-0506.google.com with SMTP id t14so1693562wxc for ; Sun, 22 Oct 2006 19:04:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:subject:references:from:mail-followup-to:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=TgQ32qEap4vmPvc6TDSm7XNCsmVYf8wVg+Q1gYOi5MiMzrdUqLiL7AwPMYSBOdTM+m0S3JXxssCKHPWOGwuVPbp/olmvqE14htwulONI9B8kdLi5KrXb793eebp07LwXY+AoNqoBl79IBUoy4L7NEV5daoUh/l95xrU4JQNckTc= Original-Received: by 10.70.130.19 with SMTP id c19mr5959965wxd; Sun, 22 Oct 2006 19:04:28 -0700 (PDT) Original-Received: from emacsfans.org ( [59.66.78.70]) by mx.google.com with ESMTP id g5sm8662244wra.2006.10.22.19.04.26; Sun, 22 Oct 2006 19:04:27 -0700 (PDT) Original-Received: from brep by emacsfans.org with local (Exim 4.63) (envelope-from ) id 1GbpAp-0005md-6s for emacs-devel@gnu.org; Mon, 23 Oct 2006 10:04:19 +0800 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <878xj8uk9c.fsf@stupidchicken.com> (Chong Yidong's message of "Sun\, 22 Oct 2006 17\:13\:19 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) 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:61016 Archived-At: Chong Yidong writes: > I can't reproduce this. With .emacs containing Sorry, the test is not thoroughly. no problem with .emacs containning: --8<---------------cut here---------------start------------->8--- (create-fontset-from-fontset-spec (concat "-adobe-courier-medium-r-normal--14-140-75-75-m-90-fontset-courier," "chinese-gb2312:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gb2312*-*," "mule-unicode-0100-24ff:-*-simsun-medium-r-*-*-14-*-*-*-c-*-iso10646*-*," "korean-ksc5601:-*-*-medium-r-*-*-14-*-*-*-*-*-ksc5601*-*," "chinese-cns11643-5:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-*," "chinese-cns11643-6:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-*," "chinese-cns11643-7:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-*," "sjis:-*-medium-r-normal--14-*-jisx0208*-*")) (set-default-font "fontset-courier") --8<---------------cut here---------------end--------------->8--- but, with Emacs 22: --8<---------------cut here---------------start------------->8--- $ cat ~/.Xdefaults Emacs.Fontset-0:-adobe-courier-medium-r-normal--14-140-75-75-m-90-fontset-14,\ chinese-gb2312:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gb2312*-0 chinese-big5-1:-*-simsun-medium-r-*-*-14-*-*-*-c-*-big5-0,\ chinese-big5-2:-*-simsun-medium-r-*-*-14-*-*-*-c-*-big5-0,\ chinese-cns11646-5:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-*,\ chinese-cns11646-6:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-*,\ chinese-cns11646-7:-*-simsun-medium-r-*-*-14-*-*-*-c-*-gbk*-* Emacs.font: fontset-14 $ xrdb .Xdefaults --8<---------------cut here---------------end--------------->8--- start emacs and M-x describe-fontset gives: --8<---------------cut here---------------start------------->8--- Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default CHARSET or CHAR RANGE FONT NAME --------------------- --------- ascii -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1 [-Adobe-Courier-Bold-R-Normal--14-100-100-100-M-90-ISO8859-1] [-Adobe-Courier-Medium-R-Normal--14-100-100-100-M-90-ISO8859-1] latin-iso8859-1 -*-iso8859-1 latin-iso8859-2 -*-iso8859-2 latin-iso8859-3 -*-iso8859-3 ... --8<---------------cut here---------------end--------------->8--- M-x describe-fontset fontset-14 gives: --8<---------------cut here---------------start------------->8--- Fontset: -adobe-courier-medium-r-normal--14-140-75-75-m-90-fontset-14 CHARSET or CHAR RANGE FONT NAME --------------------- --------- ascii -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1 latin-iso8859-1 -adobe-courier-*-iso8859-1 ... --8<---------------cut here---------------end--------------->8--- M-: (set-default-font "fontset-14") and M-x describe-fontset still gives fontset-default.