From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: Customizing fontsets Date: Sat, 03 May 2003 14:08:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87of2kdyg6.fsf@ID-87814.user.dfncis.de> References: <200304260759.QAA08204@etlken.m17n.org> <200305010720.QAA14963@etlken.m17n.org> <87llxqorkr.fsf@gnu.org> <200305020632.PAA16368@etlken.m17n.org> <87d6j1x79x.fsf@ID-87814.user.dfncis.de> <200305030150.KAA17482@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051964232 25290 80.91.224.249 (3 May 2003 12:17:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 May 2003 12:17:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 03 14:17:06 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Bvww-0006ZN-00 for ; Sat, 03 May 2003 14:17:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Bvyx-0008Bi-00 for ; Sat, 03 May 2003 14:19:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Bvx5-0002iP-09 for emacs-devel@quimby.gnus.org; Sat, 03 May 2003 08:17:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Bvwa-00029g-00 for emacs-devel@gnu.org; Sat, 03 May 2003 08:16:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19BvwN-0001kp-00 for emacs-devel@gnu.org; Sat, 03 May 2003 08:16:32 -0400 Original-Received: from mail.gmx.de ([213.165.65.60] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 19BvwK-0001gZ-00 for emacs-devel@gnu.org; Sat, 03 May 2003 08:16:28 -0400 Original-Received: (qmail 8578 invoked by uid 65534); 3 May 2003 12:16:26 -0000 Original-Received: from dialin-145-254-191-006.arcor-ip.net (EHLO HERMES) (145.254.191.6) by mail.gmx.net (mp004-rz3) with SMTP; 03 May 2003 14:16:26 +0200 Original-To: Kenichi Handa In-Reply-To: <200305030150.KAA17482@etlken.m17n.org> (Kenichi Handa's message of "Sat, 3 May 2003 10:50:49 +0900 (JST)") X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) Original-cc: alex@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13643 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13643 Kenichi Handa writes: > In article <87d6j1x79x.fsf@ID-87814.user.dfncis.de>, Oliver Scholz writes: >> Kenichi Handa writes: >> [...] >>> In other words, a fontset can be re-created by the sequence >>> of (TARGET . FONT-SPEC). So how about recording that >>> sequence as a list in each fontset (the order is important). >>> I think it's far user-friendly to customize that list than >>> to customize char-table elements. In addition, we can use >>> the normal customization facility for a list (INS, DEL) at >>> the top level. >> [...] > >> I agree. So that would be done by creating an additional extra slot >> in the fontset, right? > > Yes. And we need to extract that information from a > fontset. How about adding the 2nd optional arg > CREATION-HISTORY (?) to fontset-info, and if it is non-nil, > return that list instead. Why not a separate function? #define FONTSET_SPEC(fontset) XCHAR_TABLE (fontset)->extras[3] DEFUN ("fontset-spec", Ffontset_spec, Sfontset_spec, 1, 1, 0, doc: /* FIXME */) (name) Lisp_Object name; { Lisp_Object fontset; (*check_window_system_func) (); fontset = check_fontset_name (name); return FONTSET_SPEC (fontset); } ... etc. Oliver -- Oliver Scholz 14 Floréal an 211 de la Révolution Taunusstr. 25 Liberté, Egalité, Fraternité! 60329 Frankfurt a. M. http://www.jungdemokratenhessen.de Tel. (069) 97 40 99 42 http://www.jdjl.org