Sudo_Brew · 2022-06-14 15:19
I also posted this in a tips & tricks thread a while back but got no replies.
I have a script which uses a lot of carriage returns to update a progress percentage, then another carriage return to display the done message. When I run this in compilation-mode, it will typically replace these messages with a `[...]`. If I hit enter or click on this, it will display the full message, but I'd rather it not be hidden in the first place.
I'm not sure how to describe this well enough to get any useful search results nor look for variables to tweak, I don't know what to call this. Does anyone know how to get compilation mode to not collapse messages like this?
ieure · 2022-06-14 15:38
Set `compilation-max-output-line-length` to `nil`. More generally, you can `M-x customize-group RET package-name` to see all the knobs that exist. That's how I found that variable.
I noticed this started happening in recent snapshots, presumably because Emacs' performance with long lines is abysmal, and collapsing them prevents compilation output from tanking your whole session's performance.
I've been using Emacs an awfully long time, and don't have too many beefs with it, but it's pretty wild to me that performance with large files and long lines is still as bad as it is.
Sudo_Brew · 2022-06-14 15:56
Thank you so much! That did it!
I _think_ I had actually happened across this variable while looking before but had probably discounted it because it's default is 400 and I thought "well nothing should be that long, so that can't be it". But I realize now, since it's using carriage returns, the line just keeps getting longer and longer, even though its visually quite short.
Hopefully it won't start tanking everything, though I can always just run this particular script in a regular terminal. Thanks again!