unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests
@ 2015-11-16  8:14 Ken Raeburn
  2020-10-19  0:06 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Raeburn @ 2015-11-16  8:14 UTC (permalink / raw)
  To: 21932

Tabulated list mode is quite a nice helper for viewing information.  I’ve used it to throw together various simple modes for debugging other Emacs code or for work — listing Emacs timers, listing Emacs frames and which displays they’re on, listing my Perforce workspaces with descriptions.

In using it, I have run across a few minor issues, and have a few enhancements I’d like to see.

1) Tabulated list mode doesn’t line the columns up properly if you use C-x C— or C-x C-+ to alter the text size.  The columns are not lined up consistently, though in the mode I’m 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’t too wide, and aren’t truncated to a much narrower width than necessary.  I would guess it’s accidental, though.

3) Tabulated list mode doesn’t line the columns up properly if you use variable-pitch-mode.  This one is hard, I’m sure, because the same buffer could simultaneously be displayed on multiple displays that support different fonts, and on terminals that don’t support anything but one fixed-width font.  If we don’t 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 (…but 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’ve seen let the user grab the dividing line between headers and drag it left or right to alter a field’s width, sometimes with limits to how wide or narrow the field is allowed to be.  It wouldn’t 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests
  2015-11-16  8:14 bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests Ken Raeburn
@ 2020-10-19  0:06 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2020-10-19  0:06 UTC (permalink / raw)
  To: Ken Raeburn; +Cc: 21932

Ken Raeburn <raeburn@raeburn.org> writes:

> 1) Tabulated list mode doesn’t line the columns up properly if you use C-x C— 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’t line the columns up properly if you use
> variable-pitch-mode.

This is still an issue.

> 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;

This seems to have been fixed since this bug was reported.

> 5) Adjustable column widths: Many table-based GUIs I’ve seen let the user grab
> the dividing line between headers and drag it left or right to alter a field’s
> width, sometimes with limits to how wide or narrow the field is allowed to be.
> It wouldn’t 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.

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').





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-19  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-16  8:14 bug#21932: 24.3.1; tabulated-list-mode minor bugs and feature requests Ken Raeburn
2020-10-19  0:06 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).