> First, if the problem is that the type names are long, maybe it will be
> enough to truncate them without changing the order?
The truncation is the main issue, although I would argue that this is also a good opportunity to change
the order as well given some of the benefits of a left-to-right reading order, (e.g., it is easier to read andÂ
parse, as explained Herb Sutter^1). Other languages such as Rust/Go could also benefit from this. That said,
I guess this might be a western thing, and it is hardly a hill I would die on, so to speak.
> Also, latest version of GDB allow control on which types get shown in full
> and which are shown as <...> -- did you try to use that GDB option to make
> the display more easily readable?
I was not aware of this. I will look into it and see if I can enable it. That said, there's probably benefits to having
the option to truncate from Emacs anyways, primarily to support older versions of GDB.
> And wouldn't it be better to truncate the string with
> truncate-string-to-width or with string-truncate-left instead?
Absolutely, I just was not aware of these (better) tools. One could even argue that a custom filter-function could be warranted,
but I think that's a bit overkill right now at least.
> And finally, when the type is truncated, would it be possible to add a
> tooltip with the full name of the type, so that users who need that could
> hover the mouse above the truncated type and see it in full?
Excellent idea, that should be doable by just adding some properties to the strings, I'll see if I can sort these things out as well.
Thanks for the feedback, I'll start working on an updated patch soon-ish
Best regards,
Gustaf