From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: sans-serif name change Date: Fri, 27 Jun 2008 16:49:14 +0900 Message-ID: References: <87hcbi9vbg.fsf@catnip.gol.com> <4862198F.4060305@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214553026 28450 80.91.229.12 (27 Jun 2008 07:50:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2008 07:50:26 +0000 (UTC) Cc: schwab@suse.de, jasonr@gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 27 09:51:11 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 1KC8jD-0006z4-82 for ged-emacs-devel@m.gmane.org; Fri, 27 Jun 2008 09:50:43 +0200 Original-Received: from localhost ([127.0.0.1]:48767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KC8iM-0005eY-Gc for ged-emacs-devel@m.gmane.org; Fri, 27 Jun 2008 03:49:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KC8iE-0005aY-EN for emacs-devel@gnu.org; Fri, 27 Jun 2008 03:49:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KC8iC-0005Xd-Mv for emacs-devel@gnu.org; Fri, 27 Jun 2008 03:49:42 -0400 Original-Received: from [199.232.76.173] (port=44808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KC8iC-0005XZ-Gn for emacs-devel@gnu.org; Fri, 27 Jun 2008 03:49:40 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:40201) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KC8i0-0000KK-5w; Fri, 27 Jun 2008 03:49:29 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5R7nBJ8006277; Fri, 27 Jun 2008 16:49:15 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Fri, 27 Jun 2008 16:49:15 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Fri, 27 Jun 2008 16:49:15 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 56B6142D; Fri, 27 Jun 2008 16:49:15 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Kenichi Handa's message of "Fri, 27 Jun 2008 16:21:26 +0900") Original-Lines: 23 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:100004 Archived-At: Kenichi Handa writes: > And, fontconfig requires `-' in a family name to be escaped > by `\': .. > So, how about using the same rule for Emacs? > > (set-face-attribute 'variable-pitch nil :family "sans\\-serif") But currently other places, such as `set-frame-font' seem to work properly if passed "Sans-Serif" without escaping the "-". Perhaps some part of emacs is already adding the backslash? I think _if_ there are fonts with "-" in their name, requiring the dash to be escaped will annoy and confuse users, and lead to bug reports. I don't know how many such fonts there are, of course. [I'd say just get rid of the old-style foundry-family names; do we really care?] -Miles -- My books focus on timeless truths. -- Donald Knuth