[Top][All Lists]

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

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

From: Arne Jørgensen
Subject: [AUCTeX-devel] Re: Make TeX-insert-macro behave intelligently on \usepackage
Date: Tue, 11 Oct 2005 11:54:55 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

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.

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).

Kind regards,

Arne Jørgensen <>

reply via email to

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