From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#44229: 27.1; Can not set tabulated-list-format with variable Date: Mon, 26 Oct 2020 22:20:56 +0100 Message-ID: References: <6d9d638cf2dbdcbbddf80be8e9845318b0e154cd.camel@gmail.com> <871rhl4661.fsf@gnus.org> <87y2jsu1xn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000032f62a05b29982e8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44229@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 22:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX9xN-00033G-HS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 22:23:09 +0100 Original-Received: from localhost ([::1]:39648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX9xM-0003Zf-IU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 17:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX9wI-0002Mn-EG for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 17:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX9wI-0007z6-4R for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 17:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX9wI-0000IK-0g for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 17:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2020 21:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 44229-submit@debbugs.gnu.org id=B44229.16037472751056 (code B ref 44229); Mon, 26 Oct 2020 21:22:01 +0000 Original-Received: (at 44229) by debbugs.gnu.org; 26 Oct 2020 21:21:15 +0000 Original-Received: from localhost ([127.0.0.1]:41681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX9vX-0000Gx-6r for submit@debbugs.gnu.org; Mon, 26 Oct 2020 17:21:15 -0400 Original-Received: from mail-vk1-f177.google.com ([209.85.221.177]:44410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX9vV-0000Gg-2g for 44229@debbugs.gnu.org; Mon, 26 Oct 2020 17:21:13 -0400 Original-Received: by mail-vk1-f177.google.com with SMTP id m195so2290268vkh.11 for <44229@debbugs.gnu.org>; Mon, 26 Oct 2020 14:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ElofpdKIngXrb0rofMTYHdIoTo/qTXCXNW407yLkf5s=; b=WJkdjXP68sxVhKMrT1LdYTUiEBYdVUnpMo2PzbSBsgWDRqT6akYSKPITatuaDhsEmo cVzI9LYIQUmbjSYx0VbocdLJHQEbCOZGuT5UUaOosR3KfNGp3FGTUOfBQurzU8OAQHA9 NITvjf2Hjhr9DBvBOgEhWcKd+MVE5BtgSWFIm9Vmh0GES9XaIOS/OY/SFjCfSy0QALvY dzFk0P2yCM1YciNFpp0t/0pbm8gh3TMsXvkRQ1BpqNk1qWyHQE/SQshxNappYjcpklB9 +a7t9uzy1VH98sXpa9DWMr5+VhBoyTevXLtfkjjqfzMxXgO5oiCa+JuUGgZfD/BdLY20 M0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ElofpdKIngXrb0rofMTYHdIoTo/qTXCXNW407yLkf5s=; b=n6syNs0MS5sGzwXulB5m/M61l124BZTpHNtEqdm+vE3P/DMumqgAv2Mx28b8j8HzKR Qkx+Kn8/Rm5mzMkJfc+c1KtjsS7DcfD1XMkJ4ICRy31CK7WUZhvpFF29Kn32zPD3s8ZP OCOvFx3AzGXSujV4cOfAUMQCwX4fkRZshrI3F68fWfnnU6qseYj0tzahqtGDDCz8EBzP rPSlX9bkLsaVtjfdGmUAGROcgQ/pV4rQZPNs0FXVNuZL6Q1ks42kh/jrI9a6IU2y4/mr 4x9qPeFbvhbQwS41NcEG+A7A8HIYpUUAmNMD+lZt+r1g2ygSPUaOWckLe8wg1pP8r0W6 AEog== X-Gm-Message-State: AOAM531pxr1XP89HztNU0CIjLLlDTm7kojfWFVRFwkAlE/Lxz9rJl0HU s+3orH2S7fOETJGTxBzSi3IV9mvVwvQJFJnfyeA= X-Google-Smtp-Source: ABdhPJwwpmlHfeO+i3uUBlh/TB5/H9qjZ8DykuZweayQom5BywHjNaPhzuVNQUdMGiDNUzyhY6hIkt46Wk8PJUoimXs= X-Received: by 2002:a1f:1c2:: with SMTP id 185mr20824281vkb.15.1603747267670; Mon, 26 Oct 2020 14:21:07 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191667 Archived-At: --00000000000032f62a05b29982e8 Content-Type: text/plain; charset="UTF-8" (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 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 wrote: > >> dalanicolai 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 >> > --00000000000032f62a05b29982e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(defvar col1-width 4)
(defvar col2-width 10)

(de= fine-derived-mode tabular-bug-demo-mode
=C2=A0 tabulated-list-mode "= ;tab-bug"
=C2=A0 "Major mode for Tab-bug."
=C2=A0 (set= q-local tabulated-list-format [("Col1" col1-width nil)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("Col2" col2-= width nil)])
=C2=A0 (tabulated-list-init-header))

(let ((buf (swi= tch-to-buffer "tablist-bug-demo")))
=C2=A0 (with-current-buffe= r buf
=C2=A0 =C2=A0 (tabular-bug-demo-mode)
=C2=A0 =C2=A0 (setq-local= tabulated-list-entries (list (list nil ["1" "so
unfortun= ately this"])
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(list nil ["2" "does notwork"])
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(list nil ["3" "when usingvariables"])))
=C2=A0 =C2=A0 (tabulated-list-print)))
On Mon, 2= 6 Oct 2020 at 22:20, dalanicolai <dalanicolai@gmail.com> wrote:
Ah okay, so therefore I added= that text you sent me in the reply. But anyway, I will send the non-workin= g code...


On Mon, 26 Oct 2020 at 22:12, Lars Ingebrigts= en <larsi@gnus.org> wrote:
da= lanicolai <da= lanicolai@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.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--00000000000032f62a05b29982e8--