From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: face for non-ASCII characters Date: Sat, 16 Apr 2011 18:22:22 +0200 Message-ID: References: <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> <877haunq8t.fsf@lifelogs.com> <8739linpib.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1302970974 3299 80.91.229.12 (16 Apr 2011 16:22:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2011 16:22:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 18:22:50 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 1QB8Go-0007ap-DC for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 18:22:50 +0200 Original-Received: from localhost ([::1]:38657 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB8Gn-0006av-TM for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 12:22:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB8Gl-0006ak-6n for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QB8Gh-0003K7-Me for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:22:47 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:55815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB8Gh-0003K2-H1 for emacs-devel@gnu.org; Sat, 16 Apr 2011 12:22:43 -0400 Original-Received: by eyd9 with SMTP id 9so1119178eyd.0 for ; Sat, 16 Apr 2011 09:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=EvcYnhHTB40P19XWjMd/MBjqD4ImKCDUGtYkZIM/T8k=; b=x4ZiAUuWPqW9GatBulnrZOw/X2fs0WvyVODlKJAoMC4Yenr38tVQHKSOFqT+XHNivn 0lAqgHMr0ktxinmhy/S+TXpU72KLo8cujWx2oSLSUSbNzrhKQVJmX/uLQttgasXMfe+o ZQ5yfyZERfP7w4178ucwk4/XlPtPh2/HB5biU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=fDOv2FZ8byNJvMZYMyOMlUiiIZuDUAemOBAPyOJlOPqDlH/CSayEw6B+OuUy8Q7d0K 1FzWIiftYGGRLYRjP6OsBtZ38s6g6CxK4U1Bgi0QSm5CZuKYmJamE9p+vILUPfUsPLYQ SJj+J4c/+BkodojvHh00orWzTmPUvt3hx0Esk= Original-Received: by 10.213.15.139 with SMTP id k11mr3126112eba.31.1302970962435; Sat, 16 Apr 2011 09:22:42 -0700 (PDT) Original-Received: by 10.213.9.196 with HTTP; Sat, 16 Apr 2011 09:22:22 -0700 (PDT) In-Reply-To: <8739linpib.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 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:138527 Archived-At: 2011/4/16 Ted Zlatanov : > On Sat, 16 Apr 2011 18:01:12 +0200 Lennart Borgman wrote: > > LB> Why? (fboundp 'idn-is-recommended) only returns true if the function > LB> is defined or autoloaded. If idn.el is not available the function > LB> should not be autoloaded, or? > > My example showed that `fboundp' returns t if the function is > autoloaded, even if it's not actually loaded yet. > > (when (autoload 'coocoo1 "coo") > =C2=A0(fboundp 'coocoo1)) > > =3D> t > > (coocoo1) > > =3D> Debugger entered--Lisp error: (file-error "Cannot open load file" "c= oo") Yes, of course. But coocoo1 should not be autoloaded if coo.el is not available, or? > Lennart wants to conditionally, if idn.el is available, to enable its > use in the defcustom so things Just Work for the user: > > (defcustom markchars-what > =C2=A0`(markchars-simple-pattern > =C2=A0 =C2=A0markchars-confusables > =C2=A0 =C2=A0,@(when (fboundp 'idn-is-recommended) '(markchars-nonidn-fun= ))) > ... > > I'm not sure what's the right approach, but IMO (require 'idn nil t) is > the simplest solution. Maybe I am beginning to understand. I suppose you want idn.el to be available even if autoloading is not used for `idn-is-recommended'? In that case this could perhaps work: (unless (fboundp 'idn-is-recommended) (require 'idn nil t)) > Ted > > >