emacs-devel
[Top][All Lists]
Advanced

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

Re: Autoloading comment-forward


From: Stefan Monnier
Subject: Re: Autoloading comment-forward
Date: Sun, 08 Jul 2007 09:55:39 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>>> RefTeX and AUCTeX use `comment-forward' when skipping over multiple TeX
>>> groups.  The function -- while being quite useful -- is not autoloaded
>>> at the moment.  Perhaps it should be?
>> 
>> Before calling comment-forward, you need to call comment-normalize-vars
>> which *is* autoloaded.

> Oh, okay.  Thanks for the hint.  Is this documented somewhere?  Should
> it be done everytime `comment-forward' is called?

Once is enough: It simply should be called at some point after the major
mode is set but before internal functions such as comment-forward are used.

> I saw that other functions in newcomment.el call
> `comment-normalize-vars' themselves.  Would it make sense if
> `comment-forward' did the same (and was autoloaded)?

Could be.  What kind of situation do you have in mind where this is useful?


        Stefan




reply via email to

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