From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Can't figure out how to create a tabulated-list-mode with visible Date: Tue, 11 Oct 2016 03:30:11 +0200 Message-ID: <874m4joeos.fsf@web.de> References: <87lgxxfqsv.fsf@jupiter.lan> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476149461 21257 195.159.176.226 (11 Oct 2016 01:31:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 01:31:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Huchler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 03:30:58 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btlu6-0003qC-4R for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2016 03:30:50 +0200 Original-Received: from localhost ([::1]:53335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btlu4-0004B2-L8 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 21:30:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btltf-0004Aw-3w for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 21:30:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btlta-0001YL-4W for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 21:30:22 -0400 Original-Received: from mout.web.de ([212.227.15.4]:52697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btltZ-0001XI-Pu for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 21:30:18 -0400 Original-Received: from drachen.dragon ([90.186.1.53]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MWRkA-1bNJjo3HYI-00Xdt7; Tue, 11 Oct 2016 03:30:14 +0200 In-Reply-To: <87lgxxfqsv.fsf@jupiter.lan> (Stefan Huchler's message of "Sun, 09 Oct 2016 18:08:48 +0200") X-Provags-ID: V03:K0:Yy9FtrI6fPvu0uXXepz3Ekbs+YtlD+uaVUmL65GpsGOxBMFb4x0 5tIgvG2EaXEUPTtQzkKr3nDmXFp8c5GtJBW1JfUqhH1UNKhQXnRlA/ZCL9TUGLiPppuZBfr uI/0xobz8WbiK4wNc2M447dnl5oLzlkDCaLnzkaCrQWZlhEoe1L4zTUYjk3RGzuyjr5oJwg /TPDZp/I+c2CSEiXAIUsA== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZagykHb0pSI=:jzTXUe9r9282fhX8JVsk5z AgtQsM5umpNJPkE0IhpA3PpL+RsM00fe3H5c2bZ1zH98gtcGSHA0gQyQ5H98o+RdUV1HKhVq8 ngNz2ptbd78U93y6dRA+72IB5fhDYlPGaTSW3O6g3XgSHi8vGAnBPNmEIgqcybOpmQuiPtZub PUTfJgGUe1kZ5PyhikkcaYb22Jor1oh+xJ59W9gLyMGSrceilpC/LzYrsAxOQMmra5SH6faz+ PNuVKOPAn0r4dGRNJz6eG20ofGsVWL1G4VRfFPf75+l8BuPeGsDFyGqt1B/kjNxgz838YSXP4 DQ9uPFYQ4BZ3p9VBoHvNEZ0BT+zGd018px52IZZgM1r6CIERBSODRcgODj+uE4+CSKpHaMsDS S46dvdZog2XNyThvL1bxC2OZWA8WPCA/r6vZVHnI8aCSgIsPk1InTP+t6l96XlfibulywnIGX Hv4i40lRfcWamC75epDYwRMTY64R7dBhBIEoSwJsu2df79+w8OhBCppHcgzIkIHy5qiTOp8dv u2vg7ahk8X+2vc7R0BH807RLJTWuRf1n3FrGl9J+5TzhQjKkCjvGfunxhpkgV6wtQ0q8kLuQA NfDQc+gQ/8PdUpgDGANdo7l4Qulbvg43QK6GdDn5qYriT4OyhLcz8sqKFvb5VMygOqhIEDReZ +JnqYkCiL54T2JkLR+HcWJZoPgfiiohKvCU+iWLXsdBdBNiB2Ucnj6pyUes0iWQPezzHYDZul tiJXUpCSEd2qcqQTccuUslmR8OjZ1z9K0mHBhMRJY4AvTnaH3EU4hbWldDa32Owxfs30IyPx X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111499 Archived-At: Hello Stefan, > (define-derived-mode kodi-remote-mode tabulated-list-mode "kodi-remote" > "Major mode for remote controlling kodi instance > Key bindings: > \\{kodi-remote-mode-map}" > ;; :group ' > ;; (setq-local line-move-visual nil) > (setq tabulated-list-format [("choice" nil t)]) > (setq tabulated-list-entries (nil ["Series"])) > (tabulated-list-init-header) > (tabulated-list-print) > ) I've never used `tabulated-list-mode' mode, and I just had a very quick look at your example code. There is something wrong with the tabulated-list-* assignments. First, the assignment expression to `tabulated-list-entries' is missing a quote before the given list, so your code raises an error. Secondly, the assigned values don't seem to fit the required format. I guess it should more or less look like this (dunno if it makes sense for your example, but at least, it makes "something happen" here): #+begin_src emacs-lisp (define-derived-mode kodi-remote-mode tabulated-list-mode "kodi-remote" (setq tabulated-list-format [("choice" 10 t)]) (setq tabulated-list-entries '((nil ["Series"]))) (tabulated-list-init-header) (tabulated-list-print)) #+end_src HTH, Michael.