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: `set-frame-font' doesn't support font aliases Date: Tue, 03 Jun 2008 03:29:16 -0400 Message-ID: References: <87fxrxpw0z.fsf@dekooning.omnisys.int.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212478182 7335 80.91.229.12 (3 Jun 2008 07:29:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 07:29:42 +0000 (UTC) Cc: Eduardo Ochs , emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 09:30:23 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 1K3QyL-0007cZ-Ur for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 09:30:22 +0200 Original-Received: from localhost ([127.0.0.1]:59547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3QxZ-0007ZP-MT for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 03:29:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3QxV-0007Yr-04 for emacs-devel@gnu.org; Tue, 03 Jun 2008 03:29:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3QxU-0007Yf-KI for emacs-devel@gnu.org; Tue, 03 Jun 2008 03:29:28 -0400 Original-Received: from [199.232.76.173] (port=51903 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3QxU-0007Yc-G3 for emacs-devel@gnu.org; Tue, 03 Jun 2008 03:29:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:52790) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3QxU-0002Xl-1z for emacs-devel@gnu.org; Tue, 03 Jun 2008 03:29:28 -0400 Original-Received: from 206-248-132-168.dsl.teksavvy.com ([206.248.132.168] helo=ceviche.home) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3QxT-0000ZQ-FG for emacs-devel@gnu.org; Tue, 03 Jun 2008 03:29:27 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5F5DFB423C; Tue, 3 Jun 2008 03:29:16 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Tue, 03 Jun 2008 15:44:27 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:98280 Archived-At: >> The current code for `set-frame-font' doesn't support font >> aliases - for example, these sexps don't work: >> (set-frame-font "5x7") ;; error: "Font `5x7' is not defined" >> (set-frame-font "fixed") ;; uses some unexpected font > I've just installed a fix to check also an alias name in X > font-backend. But, as Emacs accepts a fontconfig-style font > name too, for instance, "fixed" is parsed as a font of > family "fixed" which may match with many fonts. > Is keeping backward compatibility of (set-frame-font > "fixed") important enough to drop the support of > fontconfig-style name? Can you recover the Emacs-22 behavior by restricting the backends to just `x'? If so, I think it's OK. Stefan