GNU bug report logs -
#44229
27.1; Can not set tabulated-list-format with variable
Previous Next
Reported by: dalanicolai <at> gmail.com
Date: Mon, 26 Oct 2020 05:53:02 UTC
Severity: normal
Tags: moreinfo, notabug
Found in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 44229 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
So I just replaced the widths in the `tabulated-list-entries` with the
variables defined in the first two lines
On Mon, 26 Oct 2020 at 22:20, dalanicolai <dalanicolai <at> gmail.com> wrote:
> (defvar col1-width 4)
> (defvar col2-width 10)
>
> (define-derived-mode tabular-bug-demo-mode
> tabulated-list-mode "tab-bug"
> "Major mode for Tab-bug."
> (setq-local tabulated-list-format [("Col1" col1-width nil)
> ("Col2" col2-width nil)])
> (tabulated-list-init-header))
>
> (let ((buf (switch-to-buffer "tablist-bug-demo")))
> (with-current-buffer buf
> (tabular-bug-demo-mode)
> (setq-local tabulated-list-entries (list (list nil ["1" "so
> unfortunately this"])
> (list nil ["2" "does not
> work"])
> (list nil ["3" "when using
> variables"])))
> (tabulated-list-print)))
>
> On Mon, 26 Oct 2020 at 22:20, dalanicolai <dalanicolai <at> gmail.com> wrote:
>
>> Ah okay, so therefore I added that text you sent me in the reply. But
>> anyway, I will send the non-working code...
>>
>>
>> On Mon, 26 Oct 2020 at 22:12, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>>
>>> dalanicolai <dalanicolai <at> gmail.com> writes:
>>>
>>> > Sorry, don't know what went wrong. Is it okay that I send you this
>>> link to my
>>> > original message (which does include the code)?
>>>
>>> That link only has the code that you says works, not the code that you
>>> says failed, as far as I can tell?
>>>
>>> So post the code that fails instead.
>>>
>>> --
>>> (domestic pets only, the antidote for overdose, milk.)
>>> bloggy blog: http://lars.ingebrigtsen.no
>>>
>>
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.