unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* batch-bytecomp backtrace?
@ 2004-04-15 22:31 Miles Bader
  2004-04-15 22:35 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Miles Bader @ 2004-04-15 22:31 UTC (permalink / raw)
  Cc: emacs-devel

Hi Stefan, I notice this change:

   2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>

           * emacs-lisp/bytecomp.el (batch-byte-compile-file):
           Give a backtrace if requested.

which looks very handy, but I can't figure out how to make it work.

I'm having the following error when bootstrapping emacs:

   Compiling /home/m/miles/src/emacs/lisp/./eshell/esh-module.el
   Loading ange-ftp (source)...
   Loading vc-arch (source)...

   In toplevel form:
   ../../../src/emacs/lisp/eshell/esh-module.el:29:13:Error: Lisp nesting exceeds max-lisp-eval-depth
   make[1]: *** [compile] Error 1
   make[1]: Leaving directory `/home/m/miles/build/emacs/lisp'
   make: *** [bootstrap] Error 2

So I thought it would be perfect time to see a backtrace (compiling
interactively succeeds!); I tried:

   src/bootstrap-emacs -batch -f toggle-debug-on-error -f batch-byte-compile ~/src/emacs/lisp/eshell/esh-module.el

   src/bootstrap-emacs -batch --eval '(setq debug-on-error t)' -f batch-byte-compile ~/src/emacs/lisp/eshell/esh-module.el

   src/bootstrap-emacs -batch --eval '(let ((debug-on-error t)) (batch-byte-compile "~/src/emacs/lisp/eshell/esh-module.el"))'

but all simply printed an error message and quit like a normal
(debug-on-error = nil) batch byte-compile.

So what magic is necessary to get a backtrace??

Thanks,

-Miles

p.s. The option `-e' should really do `--eval' ...!
-- 
`Cars give people wonderful freedom and increase their opportunities.
 But they also destroy the environment, to an extent so drastic that
 they kill all social life' (from _A Pattern Language_)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-19 16:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 22:31 batch-bytecomp backtrace? Miles Bader
2004-04-15 22:35 ` Stefan Monnier
2004-04-15 23:04   ` Miles Bader
2004-04-18  0:58     ` Miles Bader
2004-04-19 16:54       ` Lőrentey Károly

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).