From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#37179: 27.0.50; tabulated-list-mode creates obsolete empty line on the end Date: Sun, 25 Aug 2019 11:20:29 +0200 Message-ID: <86a7bxy52a.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="40374"; mail-complaints-to="usenet@blaine.gmane.org" To: 37179@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 25 11:21:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1ohz-000ANK-OD for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 11:21:11 +0200 Original-Received: from localhost ([::1]:41430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1ohy-0004Ku-Kr for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 05:21:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43547) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1ohs-0004KZ-2j for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:21:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1ohq-0004Ip-Gv for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34750) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1ohq-0004Ij-Cn for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1ohq-0007Ix-6S for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Aug 2019 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37179 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156672484228028 (code B ref -1); Sun, 25 Aug 2019 09:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Aug 2019 09:20:42 +0000 Original-Received: from localhost ([127.0.0.1]:43571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1ohV-0007I0-Vp for submit@debbugs.gnu.org; Sun, 25 Aug 2019 05:20:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1ohT-0007Hs-DA for submit@debbugs.gnu.org; Sun, 25 Aug 2019 05:20:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1ohR-0004KI-V9 for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:20:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1ohQ-00049R-9Y for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:20:37 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:38401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i1ohP-00048y-PF for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 05:20:36 -0400 Original-Received: from protected.rcdrun.com ([::ffff:31.223.149.228]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000320EB.000000005D6252E1.00002AD3; Sun, 25 Aug 2019 02:20:33 -0700 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000C2264.000000005D6252E0.0000706F; Sun, 25 Aug 2019 11:20:32 +0200 X-Hashcash: 1:20:190825:bug-gnu-emacs@gnu.org::Cwqg8CKoSrFGEPLW:00000000000000000000000000000000000000007odF X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165815 Archived-At: Here is sample demonstration: (define-derived-mode my-mode tabulated-list-mode "My Mode" "My mode" (setq tabulated-list-format [("ID" 5 t . (:right-align t)) ("Hyperlink" 30 t) ("Type" 10 t)]) (setq tabulated-list-padding 1) (setq tabulated-list-sort-key (cons "ID" nil)) (tabulated-list-init-header)) (defun my-set-list (&optional parent) (interactive) (let ((buffer "*Hyperspace*")) (pop-to-buffer buffer nil) (read-only-mode 0) (erase-buffer) (read-only-mode 1) (my-mode) (hl-line-mode) (setq tabulated-list-entries (list (list "1" ["1" "Link 1" "Type"]) (list "2" ["2" "Link 2" "Type"]))) (tabulated-list-print t))) When it is defined the M-x my-set-list allows me to go after the last line. Yet that is not logical, and empty line shall not be displayed, as it does not exist in the tabulated-list-entries variable. Video demonstration 1MB: https://gnu.support/images/2019/08/2019-08-25/2019-08-25-11:15:46.ogv In GNU Emacs 27.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-08-04 built on protected.rcdrun.com Repository revision: 01661f33c11654d1fe5fe1013332db2500b7f449 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Hyperbola GNU/Linux-libre Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=/package/text/emacs-2019-08-04 --with-modules --without-gpm --with-x-toolkit=lucid' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: de_DE.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45501 4860) (symbols 48 6060 1) (strings 32 16251 1822) (string-bytes 1 520282) (vectors 16 9853) (vector-slots 8 127249 7718) (floats 8 22 16) (intervals 56 242 0) (buffers 992 12)) -- Thanks, Jean Louis