From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Autoloading comment-forward Date: Sun, 08 Jul 2007 09:55:39 -0400 Message-ID: References: <87k5tck9yn.fsf@neutrino.caeruleus.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183902952 26690 80.91.229.12 (8 Jul 2007 13:55:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2007 13:55:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ralf Angeli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 08 15:55:51 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I7XEr-0006Ik-SU for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2007 15:55:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7XEr-0007vO-I3 for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2007 09:55:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7XEo-0007vJ-CP for emacs-devel@gnu.org; Sun, 08 Jul 2007 09:55:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7XEm-0007v7-0t for emacs-devel@gnu.org; Sun, 08 Jul 2007 09:55:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7XEl-0007v4-Rp for emacs-devel@gnu.org; Sun, 08 Jul 2007 09:55:43 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7XEl-00084a-CG for emacs-devel@gnu.org; Sun, 08 Jul 2007 09:55:43 -0400 Original-Received: from pastel.home ([74.12.204.164]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070708135539.OCRW25465.tomts5-srv.bellnexxia.net@pastel.home> for ; Sun, 8 Jul 2007 09:55:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C49288045; Sun, 8 Jul 2007 09:55:39 -0400 (EDT) In-Reply-To: <87k5tck9yn.fsf@neutrino.caeruleus.net> (Ralf Angeli's message of "Sat\, 07 Jul 2007 08\:24\:16 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74463 Archived-At: >>> 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