From unknown Fri Jun 20 07:19:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Nov 2015 08:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21932@debbugs.gnu.org X-Debbugs-Original-To: Bug-Gnu-Emacs Received: via spool by submit@debbugs.gnu.org id=B.144766169216779 (code B ref -1); Mon, 16 Nov 2015 08:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2015 08:14:52 +0000 Received: from localhost ([127.0.0.1]:39479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyEw7-0004MY-JS for submit@debbugs.gnu.org; Mon, 16 Nov 2015 03:14:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43551) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyEw5-0004MQ-FR for submit@debbugs.gnu.org; Mon, 16 Nov 2015 03:14:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyEw4-0003hw-GW for submit@debbugs.gnu.org; Mon, 16 Nov 2015 03:14:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyEw4-0003hs-DU for submit@debbugs.gnu.org; Mon, 16 Nov 2015 03:14:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyEw3-0000I6-Ay for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 03:14:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyEw0-0003gM-56 for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 03:14:47 -0500 Received: from mail-yk0-x231.google.com ([2607:f8b0:4002:c07::231]:36589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyEvz-0003fl-TT for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 03:14:44 -0500 Received: by ykdr82 with SMTP id r82so226242135ykd.3 for ; Mon, 16 Nov 2015 00:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn_org.20150623.gappssmtp.com; s=20150623; h=from:content-type:content-transfer-encoding:date:subject:to :message-id:mime-version; bh=s7Pyih35KkeS3htYXdz1LURKO1c4Ug/bmKGzR/vbrlA=; b=z/FbWRcYEvJnnFkRGWsp/dMma/5r7M5saAOm5cozn1Ib/yw4nKjCzm8c0SqpxlCT7J zit6hgS9sS2qm1egIax7ZTKA4mWMdwo15Gi/kLMGkZUaX3x2dDK6iunHcEZ2MoJeG+WX Y0xv/cMfDu3jNFfVmbVKlaxA9hGGEmzXQM9f2m/ZdKBUu8sJM/FgQW4/5C9bzrR/wWSR oxtPXciX2w+HGsszU/rq9GhfiAB2eSHO+ePiL/hyP8ySkAD+I6Y1FThe5/Nf1Qx5FlQn QCDbyM6njv+hknj4nmwevKp7o4iB+WyERowkFuvYeBReoNSXgDcP1kIHIkZQBlhkDVoB oXKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding:date :subject:to:message-id:mime-version; bh=s7Pyih35KkeS3htYXdz1LURKO1c4Ug/bmKGzR/vbrlA=; b=O1zLiVNwD/hJ5JC1cwBlF5BcYJC9kvHuPjcVgj5dzgCLfwYv5tzGyV+FsCdCdkxct/ yxrbyu+DPdxQmmmXZXRdPfY84B6hVbl6sU61FEMnpxDH/nM3frEwEXBpktsByGJ/nhcE GYlvBRJ+dIHP2zWK9Ny6f6HqbZaN0Du9FdqtLT67RT6hAviwnxTeKX8amWXDOMr5l4jB I7n80QZeUBmmI2SiLzHPx00OMISEqHG3+XPrvQk8egu+9IDO/5rtwM0+cr4sk42uYd4x MbwWnaSCh2d+Mk+/7Jc2n2ycF19PqY3NaB01KkIsZhi8wIlf1n80jg+DxouKr2fpUzH3 aEBA== X-Gm-Message-State: ALoCoQmGKiQMbsHfoHdWUXIOM1GrCa2W/r3ttelu5wQlgQ2jVmsfS2+xIDMva7TQVcmA0Mtg+HMF X-Received: by 10.13.244.1 with SMTP id d1mr37506115ywf.84.1447661681765; Mon, 16 Nov 2015 00:14:41 -0800 (PST) Received: from [192.168.17.111] (c-66-31-203-101.hsd1.ma.comcast.net. [66.31.203.101]) by smtp.gmail.com with ESMTPSA id h67sm33662065ywe.32.2015.11.16.00.14.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Nov 2015 00:14:41 -0800 (PST) From: Ken Raeburn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Nov 2015 03:14:39 -0500 Message-Id: <4E4694C1-5FE9-4E04-8859-746413B315D9@raeburn.org> Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Tabulated list mode is quite a nice helper for viewing information. = I=E2=80=99ve used it to throw together various simple modes for = debugging other Emacs code or for work =E2=80=94 listing Emacs timers, = listing Emacs frames and which displays they=E2=80=99re on, listing my = Perforce workspaces with descriptions. In using it, I have run across a few minor issues, and have a few = enhancements I=E2=80=99d like to see. 1) Tabulated list mode doesn=E2=80=99t line the columns up properly if = you use C-x C=E2=80=94 or C-x C-+ to alter the text size. The columns = are not lined up consistently, though in the mode I=E2=80=99m writing = right now, some of them do seem to stay lined up with the headers if I = shrink the text. 2) When changing the text size, the text of the header line is = unchanged. If this is intentional, then the number of characters in = each column should be adjusted up or down to compensate, so that entry = columns aren=E2=80=99t too wide, and aren=E2=80=99t truncated to a much = narrower width than necessary. I would guess it=E2=80=99s accidental, = though. 3) Tabulated list mode doesn=E2=80=99t line the columns up properly if = you use variable-pitch-mode. This one is hard, I=E2=80=99m sure, = because the same buffer could simultaneously be displayed on multiple = displays that support different fonts, and on terminals that don=E2=80=99t= support anything but one fixed-width font. If we don=E2=80=99t = truncate each string to the shortest length useable across all frames = displaying the buffer based on font metrics and the specific text to be = displayed, which would probably look kind of ugly (=E2=80=A6but might = not?), then I think we need the display engine to make the choice where = to truncate rather than the Lisp code. 4) On most graphical displays it should be capable of using the Unicode = ellipsis code point U+2026 instead of taking up three columns with dots; = that would give us back two columns of text on such displays. Again, = this would be potentially displaying different amounts of text, as well = as different ellipses, on different displays. 5) Adjustable column widths: Many table-based GUIs I=E2=80=99ve seen let = the user grab the dividing line between headers and drag it left or = right to alter a field=E2=80=99s width, sometimes with limits to how = wide or narrow the field is allowed to be. It wouldn=E2=80=99t work for = every case, but when there is a padding space between column headers, = perhaps it can be given mouse bindings similar to the way = mouse-drag-vertical-line works. Ken= From unknown Fri Jun 20 07:19:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2020 00:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ken Raeburn Cc: 21932@debbugs.gnu.org Received: via spool by 21932-submit@debbugs.gnu.org id=B21932.160306599520043 (code B ref 21932); Mon, 19 Oct 2020 00:07:01 +0000 Received: (at 21932) by debbugs.gnu.org; 19 Oct 2020 00:06:35 +0000 Received: from localhost ([127.0.0.1]:39386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUIh9-0005DD-AJ for submit@debbugs.gnu.org; Sun, 18 Oct 2020 20:06:35 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:37213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUIh7-0005Cy-2z for 21932@debbugs.gnu.org; Sun, 18 Oct 2020 20:06:33 -0400 Received: by mail-ej1-f54.google.com with SMTP id e22so11449522ejr.4 for <21932@debbugs.gnu.org>; Sun, 18 Oct 2020 17:06:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=MdgdNApfOCT4T3ZoXBhYSCFy42WM0LQTUUjcNq3foW8=; b=froDdmdA5v/QCIUBDvju/7afqdcgQdZKEfb8n/p2dSmlmhgBPh3vsZin8a/R/EuFNX Gt2ZHgG3p9AoreOU8B4OAGDMyleQKHoLA9NYmRhUk0D+sPQ+3y+5ya2as7HYbEMsnrOQ qAL6/eA9e3R3PlbeHQrXIFZ682DwOPQZxusvjJeJJ1uEAzWqplu2FrU7huuMRk4lkdjS fyfiQDuWKH/RkI/znR1K/D6UibTsVkXqHnY8hduTit74YHEHNnNDlhFdwGfyyTDprOGx 398lbzWrZ3Q4jDjyfE7bk1vsVQDRjBImD2xtIINcaQ+ZDIx9QAlaAWdQDzPmKLA4cm3+ 0EFg== X-Gm-Message-State: AOAM530+iGw7dHt3KnEQZ/jO4Zl/Adq8NZsfVb4Ho+w0KMhp6LVqiLPF W1kboZh5NVhO8tp8OvzvZCH1Jnc0pLt6tuGONM+c2yiSC8g= X-Google-Smtp-Source: ABdhPJzGNcTzId1IB0Yqo58R0+s0ES93dpN5rEh+2d0VX5L/aV6htT5nrXAJ57b8QysMzNQMGy/aQC+/cW5xhIap3z4= X-Received: by 2002:a17:906:1957:: with SMTP id b23mr14305150eje.312.1603065987306; Sun, 18 Oct 2020 17:06:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 18 Oct 2020 17:06:26 -0700 From: Stefan Kangas In-Reply-To: <4E4694C1-5FE9-4E04-8859-746413B315D9@raeburn.org> (Ken Raeburn's message of "Mon, 16 Nov 2015 03:14:39 -0500") References: <4E4694C1-5FE9-4E04-8859-746413B315D9@raeburn.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Sun, 18 Oct 2020 17:06:26 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Ken Raeburn writes: > 1) Tabulated list mode doesn=E2=80=99t line the columns up properly if yo= u use C-x C=E2=80=94 or > C-x C-+ to alter the text size. This is still an issue. > 2) When changing the text size, the text of the header line is unchanged. See the patch in Bug#41852. Perhaps the work regarding this can continue there. > 3) Tabulated list mode doesn=E2=80=99t line the columns up properly if yo= u use > variable-pitch-mode. This is still an issue. > 4) On most graphical displays it should be capable of using the Unicode e= llipsis > code point U+2026 instead of taking up three columns with dots; This seems to have been fixed since this bug was reported. > 5) Adjustable column widths: Many table-based GUIs I=E2=80=99ve seen let = the user grab > the dividing line between headers and drag it left or right to alter a fi= eld=E2=80=99s > width, sometimes with limits to how wide or narrow the field is allowed t= o be. > It wouldn=E2=80=99t work for every case, but when there is a padding spac= e between > column headers, perhaps it can be given mouse bindings similar to the way > mouse-drag-vertical-line works. We now have the commands `{' (`tabulated-list-narrow-current-column') and `}' (`tabulated-list-widen-current-column'). But it would be nice to also have controls to change the widths using the mouse. I guess the challenge would be to ensure that it worked smoothly, as the mentioned commands are fairly slow (average 0.4 seconds on my machine in `list-packages').