From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Font slants Date: Sat, 05 Apr 2008 21:45:46 -0400 Message-ID: References: <873aq09x7a.fsf@stupidchicken.com> <873aq0cdan.fsf@stupidchicken.com> <87ej9k9dqe.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207446368 29593 80.91.229.12 (6 Apr 2008 01:46:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 01:46:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 06 03:46:40 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JiJxp-0000Yd-My for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 03:46:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiJxC-00047I-ON for ged-emacs-devel@m.gmane.org; Sat, 05 Apr 2008 21:45:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiJx8-00043H-7g for emacs-devel@gnu.org; Sat, 05 Apr 2008 21:45:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiJx5-0003zd-Ra for emacs-devel@gnu.org; Sat, 05 Apr 2008 21:45:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiJx5-0003zO-ON for emacs-devel@gnu.org; Sat, 05 Apr 2008 21:45:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiJx5-0008I8-3E for emacs-devel@gnu.org; Sat, 05 Apr 2008 21:45:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvACADfI90fO+J/WdGdsb2JhbACBXI94ASqYBw X-IronPort-AV: E=Sophos;i="4.25,610,1199682000"; d="scan'208";a="17880519" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 05 Apr 2008 21:45:46 -0400 Original-Received: from pastel.home ([206.248.159.214]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id MFZ62446; Sat, 05 Apr 2008 21:45:46 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 562EC8898; Sat, 5 Apr 2008 21:45:46 -0400 (EDT) In-Reply-To: <87ej9k9dqe.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 05 Apr 2008 17:46:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:94464 Archived-At: >>> one possibility is to change font-slant-table etc into defconsts and >>> move them from faces.el into cus-face.el. Is it even useful to >>> customize these alists? >> >> ... >> >>> (defcustom font-swidth-table >>> '((ultracondensed . 50) (ultra-condensed . 51) >>> ... >> >>> Why do we have a practically indistinguishable difference between >>> ultracondensed and ultra-condensed? Similarly with several other >>> symbols in these alists. >> >> Try to change it (or check vc-annotate) to see why: it needs to be >> bijective (ie. reversible). > This is another reason why these alists should be constants instead of > customizable, IMO. As defcustoms, it would seem reasonable for the user > to provide arbitrary values for these alists. That's OK: the bijectivity is enforced, so if the user tries to change it wrong, she'll immediately get an error, Stefan