emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tabulated-list: extend truncation into next align-right col


From: Tino Calancha
Subject: Re: tabulated-list: extend truncation into next align-right col
Date: Wed, 02 Nov 2016 17:20:57 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Tino Calancha <address@hidden> writes:

> I suspect my patch naively asumes that we have
> `tabulated-list-use-header-line' non-nil, so that buffer line 1
> is the first column.  But we might have a fake header there...
In that case, assuming we add the predicate suggested in Bug#24855,
i guess we just need to change:

+                   (min next-col-width
+                        (tabulated-list--near-cols-max-widths
+                         (1- (line-number-at-pos))
+                         (1+ n))))
+                width))))

by the following:

+                   (min next-col-width
+                        (tabulated-list--near-cols-max-widths
+                         (- (line-number-at-pos)
+                            (if (tabulated-list-no-header-p) 1 2))
+                         (1+ n))))
+                width))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]