Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for truncation length to buttercup-stack-frame-style #185

Open
doublep opened this issue Jul 27, 2020 · 0 comments
Open

Add support for truncation length to buttercup-stack-frame-style #185

doublep opened this issue Jul 27, 2020 · 0 comments

Comments

@doublep
Copy link
Contributor

doublep commented Jul 27, 2020

Currently, crop style always truncates lines at 79 characters. It would be nice to have this adjustable. Rationale: it is no longer 1980s and e.g. my console has ~260 characters per line. I usually use untruncated backtraces to avoid losing information (it is too often important in my experience). But non-truncated backtraces are notoriously hard to read. So I'd like to use a number reasonable for me (say, 250), without imposing it on anyone else. With 3x longer lines chances of stripping so much from the backtrace as to make it useless would be considerably lower.

I would also add support for this to Eldev. For ERT backend there is already variable ert-batch-backtrace-right-margin, but for Buttercup I wouldn't be able to achieve this without hacking.

Possible ways to implement:

  • easy: just allow setting buttercup-stack-frame-style to an integer, anything non-positive being a synonym to full, a positive number working as crop, but with the specified line length;
  • more generic: allow to specify styles with options, e.g. sth. like (crop :length 250), with (cdr style) being an arbitrary plist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants