From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Platform-specific symbols in cus-start.el Date: Sat, 21 Mar 2009 16:44:03 +0200 Message-ID: References: <696E8C82-6119-47F3-9F46-F984ACAF29B7@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1237646749 8868 80.91.229.12 (21 Mar 2009 14:45:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 14:45:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 21 15:47:06 2009 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 1Ll2TZ-00017B-Be for ged-emacs-devel@m.gmane.org; Sat, 21 Mar 2009 15:47:05 +0100 Original-Received: from localhost ([127.0.0.1]:54133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ll2SC-0005Ya-RQ for ged-emacs-devel@m.gmane.org; Sat, 21 Mar 2009 10:45:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ll2S7-0005YL-V4 for emacs-devel@gnu.org; Sat, 21 Mar 2009 10:45:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ll2S6-0005Y7-DK for emacs-devel@gnu.org; Sat, 21 Mar 2009 10:45:34 -0400 Original-Received: from [199.232.76.173] (port=38919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ll2S6-0005Y4-59 for emacs-devel@gnu.org; Sat, 21 Mar 2009 10:45:34 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:46182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ll2S5-0000Ji-LD for emacs-devel@gnu.org; Sat, 21 Mar 2009 10:45:33 -0400 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KGV0030026KTG00@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Sat, 21 Mar 2009 16:44:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.23.114]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KGV00KAB29E2G70@i-mtaout1.012.net.il>; Sat, 21 Mar 2009 16:44:03 +0200 (IST) In-reply-to: <696E8C82-6119-47F3-9F46-F984ACAF29B7@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.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:109757 Archived-At: > Cc: emacs-devel@gnu.org > From: David Reitter > Date: Sat, 21 Mar 2009 08:53:54 -0400 > > Related to this, is the kludge below found in nsterm.m appropriate, or > should cus-start be fixed? > > > /* these are unsupported but we need the declarations to avoid whining > messages from cus-start.el */ > DEFVAR_BOOL ("x-use-underline-position-properties", > &x_use_underline_position_properties, > doc: /* NOT SUPPORTED UNDER NS. > *Non-nil means make use of UNDERLINE_POSITION font properties. > A value of nil means ignore them. If you encounter fonts with bogus > UNDERLINE_POSITION font properties, for example 7x13 on XFree prior > to 4.1, set this to nil. > > NOTE: Not supported on Mac yet. */); > x_use_underline_position_properties = 0; We could add an extra `cond' clause where it filters out symbols native to other platforms, and then you could remove this DEFVAR_BOOL. But, as Stefan points out, it's probably not worth the hassle to do that for the sake of a single obscure variable, unless we think users might be fooled to think that the existence of the variable means the feature is supported.