[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: csv-mode: header does not align when line numbers are displayed
From: |
Eli Zaretskii |
Subject: |
Re: csv-mode: header does not align when line numbers are displayed |
Date: |
Fri, 29 Apr 2022 13:40:20 +0300 |
> Date: Fri, 29 Apr 2022 09:47:08 +0200
> From: Joost <joostkremers@fastmail.fm>
>
> Not sure if this should be reported as a bug or not; let me know if it should.
The bug tracker is not just for bugs, it is also for features. So
yes, please post such suggestions via "M-x report-emacs-bug".
> `csv-mode` has the option to display a header line so you can make column
> names permanently visible, which is a very nice option. However, when
> `display-line-numbers-mode` is active, the column names do not line up with
> the actual columns, because the header line does not take into account the
> space taken up by the line numbers.
>
> The following patch seems to be a quick fix:
Thanks.
> Though it doesn't automatically adjust the header line when
> `display-line-numbers-mode` is toggled or if `display-line-number-width`
> changes, so it's probably not the ideal solution.
Indeed. I think tabulated-list.el shows how to cause the adjustment
when the variable is toggled. Can you use those ideas to submit a
better solution?