[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: face for non-ASCII characters
From: |
Drew Adams |
Subject: |
RE: face for non-ASCII characters |
Date: |
Sat, 16 Apr 2011 09:00:08 -0700 |
> > Yes, `idn-is-recommended' is autoloaded. It may be a
> > problem with the fboundp call, which will return true even
> > if the library is not available:
> > (when (autoload 'coocoo "coo")(fboundp 'coocoo)) => t
> > so maybe (require 'idn nil t) is a better approach
>
> 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.
- Re: face for non-ASCII characters, (continued)
- Re: face for non-ASCII characters, Lennart Borgman, 2011/04/22
- package management proposals for Emacs (was: face for non-ASCII characters), Ted Zlatanov, 2011/04/25
- Re: package management proposals for Emacs (was: face for non-ASCII characters), Lennart Borgman, 2011/04/26
- Re: package management proposals for Emacs (was: face for non-ASCII characters), Richard Stallman, 2011/04/26
- Re: package management proposals for Emacs, Stefan Monnier, 2011/04/26
- Re: package management proposals for Emacs, Ted Zlatanov, 2011/04/26
- Re: package management proposals for Emacs, Richard Stallman, 2011/04/27
- markchars.el 0.2.0 and idn.el (was: face for non-ASCII characters), Ted Zlatanov, 2011/04/25
- Re: markchars.el 0.2.0 and idn.el (was: face for non-ASCII characters), Lennart Borgman, 2011/04/26
- idn.el and confusables.txt (was: markchars.el 0.2.0 and idn.el), Ted Zlatanov, 2011/04/26
- RE: face for non-ASCII characters,
Drew Adams <=