unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* tabulated-list-mode image support and what is expected of it
@ 2022-01-26 15:03 Thuna
  0 siblings, 0 replies; only message in thread
From: Thuna @ 2022-01-26 15:03 UTC (permalink / raw)
  To: emacs-devel; +Cc: Lars Ingebrigtsen

For context, see full thread below (bug#53520)


Lars Ingebrigtsen <larsi@gnus.org> writes:
> I think you're trying to use the mode for things it's not really
> suited for, and adding things like this will only be half measures.

Is tabulated-list-mode not a mode to be used by packages with tabular
content to display their contents?  If so, should it not be responsible
for ensuring the contents given to it are displayed properly?

tabulated-list-mode currently fails to adequately handle images
(bug#53520), a feature it supports.  Is it not expected for it to do so
without the need for packages to ensure their images fit their column, a
process they should not be exposed to?


Lars Ingebrigtsen <larsi@gnus.org> writes:
> There's a lot of things the package using the mode could want to have
> done with the contents of the table, and modes can advise
> tabulated-list-print to do these transforms if they want to.

Even should this be the case, the variable `tabulated-list-printer' is
what packages should be using to change tabulated-list-mode's behavior,
not advice.

In fact, images can be handled in very much the same way; by defining a
variable `tabulated-list-image-resizer' (name subject to change) that
contains a function which, given an image and a column width, would fit
the image to the column.  This function could then be changed by
packages that wish to handle image resizing differently to suit their
needs.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-26 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 15:03 tabulated-list-mode image support and what is expected of it Thuna

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