From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Problems due to grep.el introduction Date: Thu, 24 Jun 2004 14:14:15 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200406241914.i5OJEFs18716@raven.dms.auburn.edu> References: <2914-Wed23Jun2004215530+0300-eliz@gnu.org> <2719-Thu24Jun2004212618+0300-eliz@gnu.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1088104618 30437 80.91.224.253 (24 Jun 2004 19:16:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Jun 2004 19:16:58 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 24 21:16:44 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BdZiG-0002eT-00 for ; Thu, 24 Jun 2004 21:16:44 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BdZiF-00058K-00 for ; Thu, 24 Jun 2004 21:16:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdZjf-00060r-W7 for emacs-devel@quimby.gnus.org; Thu, 24 Jun 2004 15:18:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BdZjd-00060m-VX for emacs-devel@gnu.org; Thu, 24 Jun 2004 15:18:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BdZjV-0005zH-C0 for emacs-devel@gnu.org; Thu, 24 Jun 2004 15:18:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdZjV-0005zE-8j for emacs-devel@gnu.org; Thu, 24 Jun 2004 15:18:01 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BdZhp-0004hg-8O; Thu, 24 Jun 2004 15:16:17 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i5OJGAuE002849; Thu, 24 Jun 2004 14:16:11 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i5OJEFs18716; Thu, 24 Jun 2004 14:14:15 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: eliz@gnu.org In-reply-to: <2719-Thu24Jun2004212618+0300-eliz@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25231 Eli Zaretskii wrote: > From: Andreas Schwab > Date: Thu, 24 Jun 2004 10:51:03 +0200 > > > (autoload 'grep-regex-alist "grep") > > > > Comments? > > autoload doesn't work with variables. So maybe the example was bad, but the original question still stands: should we do that for some grep-* functions that were previously in compile? Why not just use autoload cookies in grep.el, rather than adding autoloads to compile.el? Those _do_ work for variables and many functions and some user options in grep.el already have autoload cookies. Otherwise, the autoloads you add to compile.el will eventually be duplicated in grep.el _anyway_. For instance, that is what wound up happening to 34 of the 38 similar "dired-aux autoloads" in dired.el. That caused plenty of trouble because the autoloads in dired.el never got updated, resulting in obsolete docstrings being displayed and the like. I recently removed all 38 "dired-aux autoloads" in dired and added 4 autoload cookies to dired-aux. Sincerely, Luc.