Arne Jørgensen <[EMAIL PROTECTED]> writes: > David Kastrup <[EMAIL PROTECTED]> writes: > >> That's not unheard of. Not uncommonly, we have something like >> >> (if (fboundp 'completing-read-multiple) >> (defalias 'TeX-completing-read-multiple 'completing-read-multiple) >> (defun TeX-completing-read-multiple [the definition stolen straight from >> Emacs] ... >> ) > > The definition from Emacs would be all of crm.el.
Rats. > Would it be safe to > > 1. Copy crm.el from Emacs into tex-crm.el in AUCTeX > 2. Remove autoload cookies from tex-crm.el > 3. Do > > (load "crm" t t) > (unless (featurep 'crm) > (require 'tex-crm.el)) > 4. Then just use `completing-read-multiple' > > It is a lot simpler than renaming all symbols in crm.el (especially if > we have to follow updates in crm.el). No, that won't do. We don't want to load stuff prematurely that is typically autoloaded. So you really should make this depend on completing-read-multiple being bound (which it is, if it is autoloaded). And you can't use (require 'tex-crm) on a file that instead provides 'crm. I'd rather say you'd have to use something like (unless (fboundp 'completing-read-multiple) (autoload 'completing-read-multiple 'tex-crm)) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel
