From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#3756: eval-after-load 'ffap vs provide at start of file Date: Sun, 05 Jul 2009 10:48:24 +1000 Message-ID: <87ljn4x8dj.fsf@blah.blah> Reply-To: Kevin Ryde , 3756@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246755469 30134 80.91.229.12 (5 Jul 2009 00:57:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2009 00:57:49 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 05 02:57:42 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MNG32-00025M-Kx for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jul 2009 02:57:40 +0200 Original-Received: from localhost ([127.0.0.1]:43998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNG31-0005Jo-QP for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2009 20:57:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNG2y-0005JS-5Q for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:57:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNG2r-0005Iw-Gw for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:57:34 -0400 Original-Received: from [199.232.76.173] (port=60047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNG2r-0005Im-97 for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:57:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41728) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNG2q-0001At-Lf for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:57:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n650vPgk019225; Sat, 4 Jul 2009 17:57:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n650t7OY018602; Sat, 4 Jul 2009 17:55:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 05 Jul 2009 00:55:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3756 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124675497617661 (code B ref -1); Sun, 05 Jul 2009 00:55:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jul 2009 00:49:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n650nVf9017656 for ; Sat, 4 Jul 2009 17:49:33 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNFv4-00007M-BM for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:49:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNFuz-0008TC-SP for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:49:25 -0400 Original-Received: from [199.232.76.173] (port=51073 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNFuz-0008T3-Oq for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:49:21 -0400 Original-Received: from mailout2-1.pacific.net.au ([61.8.2.224]:33693 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNFuz-0008Nb-5l for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2009 20:49:21 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id B35CE16B032 for ; Sun, 5 Jul 2009 10:49:15 +1000 (EST) Original-Received: from blah.blah (ppp2165.dyn.pacific.net.au [61.8.33.101]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 85D9527415 for ; Sun, 5 Jul 2009 10:49:09 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1MNFu4-00049t-P2 for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 10:48:24 +1000 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 04 Jul 2009 20:57:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29177 Archived-At: Starting from emacs -Q, evaluating (progn (eval-after-load 'ffap '(setq ffap-newsgroup-heads (remove "misc" ffap-newsgroup-heads))) (require 'ffap)) gets an error void-variable ffap-newsgroup-heads where I hoped the eval-after-load meant after ffap is available and therefore its various variables exist. It looks like ffap.el has (provide 'ffap) near the start of the file, instead of at the end. The end is usual so that eval-after-load can be used on a feature symbol as above, is it? In GNU Emacs 22.3.1 (i486-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-03-31 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.3/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.3/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t