From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: do-after-load-evaluation Date: Fri, 23 Jun 2006 10:12:03 +0200 Message-ID: <85lkroi94c.fsf@lola.goethe.zz> References: <20060622202234.818245.FMU5392@piglet.prv.splode.com> <87sllwxpit.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151060504 820 80.91.229.2 (23 Jun 2006 11:01:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2006 11:01:44 +0000 (UTC) Cc: emacs-devel@gnu.org, Noah Friedman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 23 13:01:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtjPr-0008Rw-Pv for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 13:01:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtjPr-0001ur-4s for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 07:01:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FtjPf-0001ts-N4 for emacs-devel@gnu.org; Fri, 23 Jun 2006 07:01:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FtjPf-0001tO-9z for emacs-devel@gnu.org; Fri, 23 Jun 2006 07:01:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtjPf-0001tI-6v for emacs-devel@gnu.org; Fri, 23 Jun 2006 07:01:23 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ftjaq-0007dI-IU for emacs-devel@gnu.org; Fri, 23 Jun 2006 07:12:56 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FtjPe-0000Ga-5Z; Fri, 23 Jun 2006 07:01:22 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 7B8281C4D3B5; Fri, 23 Jun 2006 10:12:03 +0200 (CEST) Original-To: Romain Francoise In-Reply-To: <87sllwxpit.fsf@pacem.orebokech.com> (Romain Francoise's message of "Fri, 23 Jun 2006 10:08:42 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56115 Archived-At: Romain Francoise writes: > Noah Friedman writes: > >> The following change: > >> 2006-05-24 Alan Mackenzie > >> * lread.c (Vafter_load_alist): doc-string: state that an element >> now has a regexp to match file names, not a file name as such. >> >> breaks backward compatibility because now the after-load forms for "foo" >> will be evaluated when "foobar" is loaded. > > You should use `eval-after-load' instead of adding to `after-load-alist' > directly; it builds the following regexp for "foo": > > "\\(\\`\\|/\\)foo\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'" Any reason this is not "\\(\\`\\|/\\)foo\\(\\.elc?\\)?\\(\\.gz\\)?\\'" instead (should perform better)? And is there a reason that .elc? is optional? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum