From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa 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 16:30:47 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1154417531 18995 80.91.229.2 (1 Aug 2006 07:32:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 07:32:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 09:32:09 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 1G7ojW-00038a-Tz for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 09:32:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7ojW-0005lK-AH for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 03:32:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7oj7-0005it-2j for emacs-devel@gnu.org; Tue, 01 Aug 2006 03:31:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7oj5-0005fw-5W for emacs-devel@gnu.org; Tue, 01 Aug 2006 03:31:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7oj4-0005fl-VF for emacs-devel@gnu.org; Tue, 01 Aug 2006 03:31:38 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7olt-00087c-O7; Tue, 01 Aug 2006 03:34:34 -0400 Original-Received: from smtp2.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k717VZ9X001953; Tue, 1 Aug 2006 16:31:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id k717VYTi014249; Tue, 1 Aug 2006 16:31:34 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1G7oiF-00062j-00; Tue, 01 Aug 2006 16:30:47 +0900 Original-To: rms@gnu.org, emacs-devel@gnu.org In-reply-to: (message from Richard Stallman on Mon, 31 Jul 2006 18:17:05 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:57922 Archived-At: 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). > 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. In addtion, font-info returns nil if Emacs has not yet opened any font with NAME. --- Kenichi Handa handa@m17n.org