all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thuna <thuna.cing@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 53520@debbugs.gnu.org
Subject: bug#53520: [PATCH] tabulated-list gradually truncate image
Date: Tue, 25 Jan 2022 19:04:15 +0300	[thread overview]
Message-ID: <87czkf3ips.fsf@gmail.com> (raw)
In-Reply-To: <87ilu7vq2x.fsf@gnus.org>


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

A clarification on what exactly is expected of tabulated-list-mode with
regards to the current issue and how it fails to (in an unamendable way)
fulfill those expectations would be appreciated.

---

> There's a lot of things the package using the mode could want to have
> done with the contents of the table,

Image resizing can be handled the same way `tabulated-list-printer' is
currently handled; as a variable that points to a function, whose
built-in value supports most common needs.  That would solve the issue
of packages being incapable of controlling the process.

> and modes can advise tabulated-list-print to do these transforms if
> they want to.

As it stands, the variable `tabulated-list-printer' is used to control
the way printing is done and any package that wants to print differently
should be setting that variable to their own printing function.
Packages should not be exposed to the printing process unless they are
offering functionality that /cannot/ be handled by tabulated-list.

---

PS: The actual point of the previous message, which went unanswered was:
> Considering the width of a column can be changed arbitrarily by the user
> is it not expected for tabulated-list to handle images in a way that
> works for all widths?

---

PPS: I am thinking of carrying this conversation over to emacs-devel.
     Are you okay with that?





  reply	other threads:[~2022-01-25 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25  9:08 bug#53520: [PATCH] tabulated-list gradually truncate image Thuna
2022-01-25 13:36 ` Lars Ingebrigtsen
2022-01-25 14:02   ` Thuna
2022-01-25 14:37     ` Lars Ingebrigtsen
2022-01-25 16:04       ` Thuna [this message]
2022-01-26 13:11         ` Lars Ingebrigtsen
2022-09-08 13:38           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czkf3ips.fsf@gmail.com \
    --to=thuna.cing@gmail.com \
    --cc=53520@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.