[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44229: 27.1; Can not set tabulated-list-format with variable
From: |
Lars Ingebrigtsen |
Subject: |
bug#44229: 27.1; Can not set tabulated-list-format with variable |
Date: |
Mon, 26 Oct 2020 22:26:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
dalanicolai <dalanicolai@gmail.com> writes:
> (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))
[] quotes whatever you feed it, so that's not a list with a string, a
number and nil, but a string, a symbol, and nil.
You probably want
`[("Col1" ,col1-width nil)
("Col2" ,col2-width nil)]
or use the functions `vector' and `list' instead of literals.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, Lars Ingebrigtsen, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, Lars Ingebrigtsen, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
- bug#44229: 27.1; Can not set tabulated-list-format with variable,
Lars Ingebrigtsen <=
- bug#44229: 27.1; Can not set tabulated-list-format with variable, dalanicolai, 2020/10/26
bug#44229: 27.1; Can not set tabulated-list-format with variable, Stephen Berman, 2020/10/26