From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: Please help me debug my Emacs initialization file
Date: Mon, 29 Jan 2024 14:08:50 +0200
Message-ID: <86jzns4a0d.fsf@gnu.org>
References: <CAG9ihEvbv5Bx=4bRUT4qkTcXxbbBXtaYeCPtor24i329dN5KGA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="20934"; mail-complaints-to="usenet@ciao.gmane.io"
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 29 13:09:21 2024
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rUQS0-0005FF-Ku
	for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Jan 2024 13:09:20 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces@gnu.org>)
	id 1rUQRZ-00079d-Gh; Mon, 29 Jan 2024 07:08:53 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1rUQRY-00079U-GW
 for help-gnu-emacs@gnu.org; Mon, 29 Jan 2024 07:08:52 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1rUQRY-0001sU-7N
 for help-gnu-emacs@gnu.org; Mon, 29 Jan 2024 07:08:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=arwvOD4NQEEnZwrbbCF3/BRJ14hlA6O7NFATpb3fK24=; b=dMJII0AbgbTdHyjxppG5
 zrbnsvVYg911RNY/c/CTeRlM7A8Nxi/Q0cgxhIffqAU95KOGBNn6F34WL6YKrjxoSDQ4ecfWbftcX
 +RuRqoqqALunjo0HIkw2w6JWDnjERxFvA28RWd47dxWZNUuLtVBIKLdqtPg7EES3oCHJ2Ky2YlAyI
 69MywsfCyb5JVmyLEvh1F93vQOQJIyhQm7IpCh4ZQClNTwO9iyTHuxe+zfrRsmwvB3EXxLNrxfJIg
 AmGJMnD7qBGPu+mSUHFVNgYwBr37fK4VqUd9u3Pdr+SKK3PZwKNg5DJRbjrKsxQzKvz38clqPEWXd
 HUYw7PwDFdojdw==;
In-Reply-To: <CAG9ihEvbv5Bx=4bRUT4qkTcXxbbBXtaYeCPtor24i329dN5KGA@mail.gmail.com>
 (message from Davin Pearson on Mon, 29 Jan 2024 11:20:07 +1300)
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.help:145815
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/145815>

> From: Davin Pearson <davin.pearson@gmail.com>
> Date: Mon, 29 Jan 2024 11:20:07 +1300
> 
> Here is the file ~/Binaries/runmacs that I use for loading emacs
> 
> !/bin/bash
> date
> cd ~/Downloads/emacs-29.1/src && ./emacs -q --eval "(setq debug-on-error
> t)" --debug-init --load "~/java-training-wheels/dmp-emacs--no-init-file.el"
> &
> 
> Here is a tarball for you to load and execute:
> 
> http://davin.50webs.com/java-training-wheels.tar.gz
> 
> Extract the tarball:
> cd && tar fvx java-training-wheels.tar.gz
> 
> Here is the error message that occurs when you run it:
> 
> byte-code: Recursive ‘require’ for feature ‘semantic’
> 
> This error occurs immediately after the checkpoint:
> 
> &safe-require:15014:
> 
> in the file ~/java-training-wheels/dlisp/new-code/dmp-safe--require.el.
> It gives similar error messages when you execute the following commands:
> 
> C-x C-f
> M-/
> M-.
> C-h a
> C-s
> 
> Why doesn't it show a backtrace since I have --debug-init on the command
> line?

Try removing the '--eval "(setq debug-on-error t)"' part from the
command line.  --debug-init arranges to report errors while loading
the init file, but setting debug-on-error to a non-default value
causes it to disable its smarts, since it assumes that the user knew
what they were doing.