From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: [ihs_4664@yahoo.com: Re: [drew.adams@oracle.com: No default for describe-font, but one is advertised]] Date: Tue, 01 Aug 2006 11:06:48 -0600 Organization: IHS Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154452319 7863 80.91.229.2 (1 Aug 2006 17:11:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 17:11:59 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 19:11:59 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 1G7xji-0007jq-C9 for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 19:08:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7xjh-00011b-Gh for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 13:08:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7xjT-0000xo-GQ for emacs-devel@gnu.org; Tue, 01 Aug 2006 13:08:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7xjR-0000wb-KD for emacs-devel@gnu.org; Tue, 01 Aug 2006 13:08:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7xjR-0000wY-FE for emacs-devel@gnu.org; Tue, 01 Aug 2006 13:08:37 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7xmM-0002Fn-Qm for emacs-devel@gnu.org; Tue, 01 Aug 2006 13:11:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G7xj9-0007fE-BB for emacs-devel@gnu.org; Tue, 01 Aug 2006 19:08:25 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Aug 2006 19:08:19 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Aug 2006 19:08:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: 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:57950 Archived-At: Kenichi Handa wrote: > In article , Richard Stallman writes: > >> [I sent this message a few weeks ago but did not get a response.] >> Please help us here. > > Sorry for the late response. Actually, I originally wrote > describe-font and font-info for debugging fontset facility, > and forgot about them once they became unnecessary. :-( > > They are not a public API (as far as I know they are not > documented in info). I think that's a documentation bug: Some of the describe-* and list-* user commands defined in mule-diag.el are documented in the Emacs manual (describe-character-set, describe-coding-system, list-charset-chars, list-coding-systems, and list-input-methods), so why not the others (describe-current-coding-system, describe-current-coding-system-briefly, describe-font, describe-fontset, and list-character-sets)? They are all autoloaded, by the way. >> describe-font gets its default from (cdr (assq 'font (frame-parameters))). > > Not exactly. (assq 'font (frame-parameters)) will return a > fontset instead of font. In that case, describe-font > extract an ASCII font of the fontset, and calls font-info > with that font. That's what I tried to summarize in the part that you omitted: >> and then refined by fontset-info if fontset-query returns non-nil. > In addtion, font-info returns nil if Emacs has not yet > opened any font with NAME. Can you address this question, which was also omitted: >> But how can font-info return nil for the default font of >> the selected frame? Emacs is already displaying text in that font! FYI, on Windows the problematic font name is "-outline-Courier New-normal-r-normal-normal-13-97-96-96-c-*-iso8859-1" (the asterisk is in the average width component) Thanks, -- Kevin