Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7632479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:38:11+00:00 2026-05-31T06:38:11+00:00

I’m working on a software project for Emacs that has some tests that can

  • 0

I’m working on a software project for Emacs that has some tests that can be run in batch mode for quick regression testing. However, when the tests fail, the stack traces in the terminal are cut off at the top, so I have to run the failing test again in an interactive Emacs session to view the full stack trance and find out where the error actually occurred. Is there some variable I can modify that will extend the maximum length of the stack traces that Emacs prints to the terminal in batch mode?

If you want a simple test case to produce a really deep stack trace that will get cut off, here’s a trivial case of infinite recursion, which emacs will abort when it reaches a certain depth:

emacs -Q -batch --eval '(defun f () (f))' -f toggle-debug-on-error -f f

Here is the exact output of that command on my system:

Debug on Error enabled globally
...
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  f()
  command-line-1(("--eval" "(defun f () (f))" "-f" "toggle-debug-on-error" "-f" "f"))
  command-line()
  normal-top-level()

In particular, note that the line after Debug on Error enabled globally is actually an ellipsis in the output, there’s no way to go any deeper into the stack trace without running interactively.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:38:12+00:00Added an answer on May 31, 2026 at 6:38 am

    It looks like debugger-batch-max-lines is what you’re after:

    M-x customize-group RET debugger RET

    (defcustom debugger-batch-max-lines 40
      "Maximum lines to show in debugger buffer in a noninteractive Emacs.
    When the debugger is entered and Emacs is running in batch mode,
    if the backtrace text has more than this many lines,
    the middle is discarded, and just the beginning and end are displayed."
      :type 'integer
      :group 'debugger
      :version "21.1")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.