From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#54905: Allow in tabulated lists to resize columns with the mouse Date: Fri, 15 Apr 2022 12:42:57 +0200 Message-ID: <8735ie4oge.fsf@gmail.com> References: <87o813lq1j.fsf@gnus.org> <83tuav3aqy.fsf@gnu.org> <878rs7k4r7.fsf@gnus.org> <83o81337tz.fsf@gnu.org> <87zgknin1d.fsf@gnus.org> <87v8vbimw6.fsf@gnus.org> <877d7q4wol.fsf@gmail.com> <87bkx2iwfe.fsf@gnus.org> <87sfqehd8x.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: laszlomail@protonmail.com, 54905@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 15 12:44:17 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 1nfJR3-0007yi-0Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 12:44:17 +0200 Original-Received: from localhost ([::1]:59894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfJR1-0008Dt-79 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 06:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfJQo-0008C1-V5 for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 06:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfJQo-0005P0-L4 for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 06:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nfJQo-0007Y1-DO for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Apr 2022 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54905 X-GNU-PR-Package: emacs Original-Received: via spool by 54905-submit@debbugs.gnu.org id=B54905.165001938728928 (code B ref 54905); Fri, 15 Apr 2022 10:44:02 +0000 Original-Received: (at 54905) by debbugs.gnu.org; 15 Apr 2022 10:43:07 +0000 Original-Received: from localhost ([127.0.0.1]:58175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfJPv-0007WW-At for submit@debbugs.gnu.org; Fri, 15 Apr 2022 06:43:07 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:41895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfJPt-0007W1-0N for 54905@debbugs.gnu.org; Fri, 15 Apr 2022 06:43:05 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id o20-20020a05600c511400b0038ebbbb2ad8so4846790wms.0 for <54905@debbugs.gnu.org>; Fri, 15 Apr 2022 03:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=dgaQZWZm7xBETg/uIXZ9u/zcdpPQQuQX+OSSg/CIEMo=; b=A2Ij+Is2HZHJFo/yfVqPirgQI1thlWV6STCSojYOi4jUkNp5AguGUx/hO5n7+Mtaqb DdHBFpN3Z9LqhoEQsmBjUHFoRCldadd96lkxVeYbi5lruqpiph8HtbnZWJkGPBDti9CE nD0J0kwvWoUf/wVJMRmqQbUld5ia1B6UXVImhX2xlLlSHq7J9JkEzBn5jz/Lr35XkPS0 TQqXFo0CcfWqeqqzVN33UGyOxKlpv0vWBbKwRg1JBZacihXWFA8z3lep4BCRasBPdqmv whhyJnf33N1UdUNoy57TmFld16opcwC55qq+Bk6Nel4Q/T+1zBHjRCC5Hnoebq123eKp l+ZA== 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:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=dgaQZWZm7xBETg/uIXZ9u/zcdpPQQuQX+OSSg/CIEMo=; b=m5Y922M+i0UaOVcbUqRuBWyxVARLzsgmMsb+hZoGy9ZOJdLOhJupI0zu+grVejMu17 C0xU+LIQNxIF7j9byi67npmSZmnkD/g0qr1huPC/O02+QVtqyPOIUsHrfAnrqr9PsrL2 2SR6HRUerjvoN1LtkojsmbGMNYOGEnsMpOUdw/nO77Q7kgLCCDCEu2d0sK7yQgq4ndo9 w7fkn9p1Z0+F6FuSoRoJW6m397lFYHRbp5fAOCYik7FQgjYukJzmzMMoIf/lo2Bt5Bz/ Hmx/hGzBQkPpVF7a2oH6X2Ou9UspgtMevhPYGSkhdr8e5pqsZZnzGwawg9oViOAH+E56 OYqQ== X-Gm-Message-State: AOAM530IefcNE26mwgFFfImJF6YEm7DQ06C/hQmdM7I0XMzG6pprkCZ+ 89Nvr7RqVAI0I0YPYEX5k803mSKSpAs= X-Google-Smtp-Source: ABdhPJz35roNfT5g9+CmsdWU0tmore95mO151/oNmtdMhcUHf1W4YWR2IcR64donRHbUALIFOBD/Bw== X-Received: by 2002:a1c:7408:0:b0:38e:b7af:c503 with SMTP id p8-20020a1c7408000000b0038eb7afc503mr2810942wmc.58.1650019378610; Fri, 15 Apr 2022 03:42:58 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:6bcf:459f:fd5a:a5e3]) by smtp.gmail.com with ESMTPSA id a11-20020a056000188b00b00204109f7826sm4399869wri.28.2022.04.15.03.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 03:42:58 -0700 (PDT) In-Reply-To: <87sfqehd8x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 15 Apr 2022 12:06:38 +0200") 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:229922 Archived-At: >>>>> On Fri, 15 Apr 2022 12:06:38 +0200, Lars Ingebrigtsen said: Lars> Lars Ingebrigtsen writes: >> And the divider could definitely be >> draggable (and I'll do that now), but in most setups the divider will >> only be a couple of pixels wide, making dragging it very difficult. Lars> Here's the test vtable I'm twiddling now (you need an up-to-date = trunk Lars> to make it work). You can drag the divider, but it's so narrow t= hat Lars> it's very annoying to attempt to do so... Debugger entered--Lisp error: (wrong-type-argument stringp (:background "#3= 03030" :foreground "#ffffff")) xw-color-values((:background "#303030" :foreground "#ffffff") nil) color-values((:background "#303030" :foreground "#ffffff") nil) color-name-to-rgb((:background "#303030" :foreground "#ffffff")) vtable--color-blend((:background "#303030" :foreground "#ffffff") (:backg= round "#202020" :foreground "#00ffff")) vtable--compute-colors(((:background "#303030" :foreground "#ffffff") (:b= ackground "#505050" :foreground "#808080")) ((:background "#202020" :foregr= ound "#00ffff") (:background "#808080" :foreground "#008080"))) make-vtable(:columns ((:name "Name" :width 20) "Size" "File") :objects (#= # # # #<= buffer *info*> # # #= # # # #) :row-colors ((:background "#303= 030" :foreground "#ffffff") (:background "#505050" :foreground "#808080")) = :column-colors ((:background "#202020" :foreground "#00ffff") (:background = "#808080" :foreground "#008080")) :divider-width 0.1 :getter (closure (t) (= object column vtable) (let* ((val (vtable-column vtable column))) (cond ((e= qual val '"Name") (let nil (buffer-name object))) ((equal val '"Size") (let= nil (buffer-size object))) ((equal val '"File") (let nil (or (buffer-file-= name object) ""))))))) (let ((inhibit-read-only t)) (make-vtable :columns '((:name "Name" :width= 20) "Size" "File") :objects (buffer-list) :row-colors '((:background "#303= 030" :foreground "#ffffff") (:background "#505050" :foreground "#808080")) = :column-colors '((:background "#202020" :foreground "#00ffff") (:background= "#808080" :foreground "#008080")) :divider-width 0.1 :getter #'(lambda (ob= ject column vtable) (let* ((val (vtable-column vtable column))) (cond ((equ= al val ...) (let nil ...)) ((equal val ...) (let nil ...)) ((equal val ...)= (let nil ...)))))) nil) test-vtable() eval((test-vtable) t) If I just ignrore the colours: - I don=CA=BCt see a divider at all (this is a GTK build under X). Increasing divider-width had no effect. Actually, that=CA=BCs not true: the divider is just the same colour as the header-line - I can drag to resize the column, but I need to start the drag on the name of the column, not the space next to it - The little triangle indicating the sort order is right next to the name of the column, I=CA=BCd expect it be nearer the divider to the right of the name Robert --=20