From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William G. Gardella Newsgroups: gmane.emacs.help Subject: Re: Line number where eval-after-load is defined in my .emacs file Date: Wed, 13 Nov 2013 17:05:04 +0000 Message-ID: <87iovwgrlr.fsf@motoko.kusanagi> References: <86mwl88d9a.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384362347 3923 80.91.229.3 (13 Nov 2013 17:05:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2013 17:05:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 18:05:51 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vgdt0-0001jm-P0 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 18:05:50 +0100 Original-Received: from localhost ([::1]:49879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgdt0-00075e-Ab for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 12:05:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgdsa-00075S-Fc for help-gnu-emacs@gnu.org; Wed, 13 Nov 2013 12:05:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgdsU-00040v-AQ for help-gnu-emacs@gnu.org; Wed, 13 Nov 2013 12:05:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:42274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgdsU-000402-3r for help-gnu-emacs@gnu.org; Wed, 13 Nov 2013 12:05:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VgdsT-000142-1O for help-gnu-emacs@gnu.org; Wed, 13 Nov 2013 18:05:17 +0100 Original-Received: from manning1.torservers.net ([96.44.189.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 18:05:17 +0100 Original-Received: from wgg2 by manning1.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 18:05:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: manning1.torservers.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:sX/sligntYomTcq434rThcFzNw4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94480 Archived-At: Hi Seb, "Sebastien Vauban" writes: [...] > Is there a way to "link" the messages to the `eval-after-load' blocks in my > .emacs file by showing the line number where those blocks are defined? > > Or is there some other way to get such more or less the same type of > information? > > Best regards, > Seb This seems analogous to the management problem that one can have after putting a lot of lambdas which all look alike inside a hook variable. Maybe a similar solution is warranted. I would rewrite your `eval-after-load' blocks such that each of them calls one named function (instead of an anonymous `progn'), which in turn contains all the stuff to be done inside that `eval-after-load'. That way, when something goes wrong, the backtrace will name the offending function. Best, WGG