auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Re: Make TeX-insert-macro behave intelligently on \us


From: David Kastrup
Subject: Re: [AUCTeX-devel] Re: Make TeX-insert-macro behave intelligently on \usepackage
Date: Tue, 11 Oct 2005 12:09:57 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Arne Jørgensen <address@hidden> writes:

> David Kastrup <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]