From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: `eval-after-load' broken for symbols? Date: Mon, 07 Nov 2011 21:14:02 +0100 Message-ID: <87lirrher9.fsf@gnu.org> References: <980A1209-F9FB-4B2F-95A3-592EA5206B7A@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320696859 26593 80.91.229.12 (7 Nov 2011 20:14:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 20:14:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 07 21:14:15 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RNVaB-0002tV-21 for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2011 21:14:15 +0100 Original-Received: from localhost ([::1]:35091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNVaA-0001qe-Ed for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2011 15:14:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNVa8-0001qZ-Gb for emacs-devel@gnu.org; Mon, 07 Nov 2011 15:14:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNVa7-0007wt-L7 for emacs-devel@gnu.org; Mon, 07 Nov 2011 15:14:12 -0500 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:34734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNVa7-0007wj-Cg for emacs-devel@gnu.org; Mon, 07 Nov 2011 15:14:11 -0500 Original-Received: from iph1.telenor.se (iph1.telenor.se [195.54.127.132]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 4600214013 for ; Mon, 7 Nov 2011 21:14:09 +0100 (CET) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.196.29] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoJWAAo7uE5V5MQdPGdsb2JhbABDhHqER5EJjyYZAQEBATcygXIBAQUjMzMLGgIFIQICDwEEDQsBDAotiASmKpIkgTCGZYEWBJ5fhy8 X-IronPort-AV: E=Sophos;i="4.69,471,1315173600"; d="scan'208";a="510376084" Original-Received: from c-1dc4e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.196.29]) by iph1.telenor.se with ESMTP; 07 Nov 2011 21:14:09 +0100 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 398194841F6; Mon, 7 Nov 2011 21:14:03 +0100 (CET) Mail-Copies-To: never In-Reply-To: <980A1209-F9FB-4B2F-95A3-592EA5206B7A@gmail.com> (Daniel Brockman's message of "Tue, 1 Nov 2011 16:17:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145931 Archived-At: Daniel Brockman writes: > (when (symbolp regexp-or-feature) > ;; For features, the after-load-alist elements get run when `provid= e' is > ;; called rather than at the end of the file. So add an indirectio= n to > ;; make sure that `form' is really run "after-load" in case the pro= vide > ;; call happens early. > (setq form > `(when load-file-name > =E2=80=A6 > > So, is this actually a bug? The behavior sure seems broken anyway. Yes. It works correctly in Emacs 23.