From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thuna Newsgroups: gmane.emacs.bugs Subject: bug#53520: [PATCH] tabulated-list gradually truncate image Date: Tue, 25 Jan 2022 19:04:15 +0300 Message-ID: <87czkf3ips.fsf@gmail.com> References: <87sftc2nel.fsf@gmail.com> <87wniovswv.fsf@gnus.org> <87fspb3ocy.fsf@gmail.com> <87ilu7vq2x.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53520@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 25 17:28:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCOgR-0003y4-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 17:28:39 +0100 Original-Received: from localhost ([::1]:44676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCOgQ-0006Nq-IU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 11:28:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCOJa-0008PU-Sw for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 11:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCOJa-0007uf-Is for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCOJa-0008Gw-EN for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 11:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thuna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jan 2022 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53520-submit@debbugs.gnu.org id=B53520.164312666531734 (code B ref 53520); Tue, 25 Jan 2022 16:05:02 +0000 Original-Received: (at 53520) by debbugs.gnu.org; 25 Jan 2022 16:04:25 +0000 Original-Received: from localhost ([127.0.0.1]:49797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCOIz-0008Fl-9d for submit@debbugs.gnu.org; Tue, 25 Jan 2022 11:04:25 -0500 Original-Received: from mail-ed1-f46.google.com ([209.85.208.46]:34352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCOIx-0008FZ-Vp for 53520@debbugs.gnu.org; Tue, 25 Jan 2022 11:04:24 -0500 Original-Received: by mail-ed1-f46.google.com with SMTP id r10so33251041edt.1 for <53520@debbugs.gnu.org>; Tue, 25 Jan 2022 08:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=CnpjU1Rt2Mvv1SZJw/fUVT+uvbgXVMQUTktGOhDbbp8=; b=RqVfHMWrf8WCl6ZQPqQTKzMgs1DBCLlHkwq+/VZRf8oLQRpvSEUkhzwiUBs9UBPJR0 3iGcEX++9wlty00fM8N4IpeGF87iEHy65Vqfn9gCIXSRRjjQ7/DMEojIFo7ZgKfH8xM8 I5M3H9c9xpum21DuLJRjka3cvmoIYv8PLYy1jNxCGG1zpUUqh5o7ews6HI41Ek8IP7mU r43WWeTqSMotvURTNrG1CQeHG1ViDzj46B7q2Yn/Z6jeWABEnao12JnmQHs1jCMvTQBg 57jZuEnPU/ZMA3jhtSlKakeF6QiMtcW4QeaeJoFgZQGL5JaL4QoZedKhCQlUL2ZnxfEw BQ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=CnpjU1Rt2Mvv1SZJw/fUVT+uvbgXVMQUTktGOhDbbp8=; b=BdxRq9j9fu0JsvWUUDFSo1uzGO1pKsyXeKembUJbRMm/6nidMerTwAHMLY/DFpSriu E3VvJVxBhNoq6YwYbR1EaEMirptkaWQ5qHw5kHY1nyGcotbVcefokJdZhcggBtIfRYs2 s+01elJ4Z4DFvo9fxCYOtwRKzwm9LCooaQvwmq5KIC2WNJrGeMXxJZ93t/WT/8XpSF82 v6DDdBBVdKlnchfne8KnAYPQV8/fqL6CSHLkqn7pXUPYEKKgPc+sCqHgxbG2l7LfSkK+ AzeqSod8eMFaxHJDfxvgax8p+FQ5GWISoxbVB/YcPKby/zGbEuzs+36Yxxo9ZHwFngGK rKIA== X-Gm-Message-State: AOAM531NLnxPDAd1p391/Ut6kzlCIdbSvsOBISXvkgnGfHO/w7ArrtyE 2YdENggu0SzkJWzZNpkRkVPWlVFcA4c= X-Google-Smtp-Source: ABdhPJzSrz+EoZuVodT+IcxMjeHoYP1pSdnFvVLy309ewG9uJHu/6LMUUE1HWwb69Y6xg1yqQDm66w== X-Received: by 2002:a05:6402:4487:: with SMTP id er7mr20826673edb.63.1643126657803; Tue, 25 Jan 2022 08:04:17 -0800 (PST) Original-Received: from Thuna ([78.161.73.233]) by smtp.gmail.com with ESMTPSA id g9sm6265855ejf.33.2022.01.25.08.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 08:04:17 -0800 (PST) In-Reply-To: <87ilu7vq2x.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225199 Archived-At: > 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?