jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
364 stars 44 forks source link

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

Open doublep opened 4 years ago

doublep commented 4 years ago

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: