From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: face for non-ASCII characters Date: Sat, 16 Apr 2011 09:00:08 -0700 Message-ID: References: <87k4t4zb5l.fsf@lifelogs.com> <87r5ncxp4z.fsf@lifelogs.com><87hbo8tf4i.fsf@turtle.gmx.de> <87hbo8xis5.fsf@lifelogs.com><87aau0t7uy.fsf@turtle.gmx.de> <87sk7svyam.fsf@lifelogs.com><87vdcngws4.fsf@mail.jurta.org><87y6hjxgfn.fsf_-_@lifelogs.com><87hbo6x5pe.fsf@lifelogs.com> <87tydzdtn9.fsf@lifelogs.com><877hav2f30.fsf@lifelogs.com><87zknqnsmr.fsf@lifelogs.com><87bp06nqy4.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1302969694 29244 80.91.229.12 (16 Apr 2011 16:01:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2011 16:01:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Lennart Borgman'" , "'Ted Zlatanov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 18:01:29 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QB7w9-0003Ep-9G for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 18:01:29 +0200 Original-Received: from localhost ([::1]:35972 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7w8-0002aN-KY for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 12:01:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7w3-0002Ul-Sd for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:01:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QB7vz-0005xk-Ua for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:01:23 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:48685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7vz-0005xT-O8 for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:01:19 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3GG1GuZ005226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 16 Apr 2011 16:01:17 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p3GG1F2v008558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Apr 2011 16:01:16 GMT Original-Received: from abhmt016.oracle.com (abhmt016.oracle.com [141.146.116.25]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3GG0FmQ009011; Sat, 16 Apr 2011 11:00:15 -0500 Original-Received: from dradamslap1 (/10.159.44.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 16 Apr 2011 09:00:15 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 Thread-Index: Acv8Tgh5YnT3pJtcQYKGqmYyzjyYowAAGqHQ X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4DA9BD4C.00BF:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138524 Archived-At: > > Yes, `idn-is-recommended' is autoloaded. =A0It may be a=20 > > problem with the fboundp call, which will return true even > > if the library is not available: > > (when (autoload 'coocoo "coo")(fboundp 'coocoo)) =3D> t > > so maybe (require 'idn nil t) is a better approach >=20 > I think autoloading and checking if the function is defined is the > best way. (Autoloading of `idn-is-recommended' should of course not be > setup if idn.el is not available.) I'm not following this thread, so ignore if this question doesn't help: Why set up autoloading here? Seems like you would want to either = soft-require the library (no error if not there) or simply test whether the function = is defined (which presumably happens when the library is loaded). IOW, why don't you just choose between (require 'foo nil t) and (fboundp 'foobar)? What's the point of having this library autoload the other = one but not soft-require it? (FWIW, it sounds a priori like you should maybe just use the `fboundp' = test, and not worry about automatically loading the other library.) Again, ignore if irrelevant to your discussion.