unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: laszlomail@protonmail.com, 54905@debbugs.gnu.org
Subject: bug#54905: Allow in tabulated lists to resize columns with the mouse
Date: Fri, 15 Apr 2022 12:42:57 +0200	[thread overview]
Message-ID: <8735ie4oge.fsf@gmail.com> (raw)
In-Reply-To: <87sfqehd8x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 15 Apr 2022 12:06:38 +0200")

>>>>> On Fri, 15 Apr 2022 12:06:38 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Lars Ingebrigtsen <larsi@gnus.org> 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 that
    Lars> it's very annoying to attempt to do so...

Debugger entered--Lisp error: (wrong-type-argument stringp (:background "#303030" :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") (:background "#202020" :foreground "#00ffff"))
  vtable--compute-colors(((:background "#303030" :foreground "#ffffff") (:background "#505050" :foreground "#808080")) ((:background "#202020" :foreground "#00ffff") (:background "#808080" :foreground "#008080")))
  make-vtable(:columns ((:name "Name" :width 20) "Size" "File") :objects (#<buffer *vtable*> #<buffer *scratch*> #<buffer  *Minibuf-1*> #<buffer 1> #<buffer *info*> #<buffer *Help*> #<buffer  *Minibuf-0*> #<buffer *Messages*> #<buffer  *Echo Area 0*> #<buffer  *Echo Area 1*> #<buffer  *eldoc for test-vtable*> #<buffer  *string-pixel-width*>) :row-colors ((:background "#303030" :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 ((equal 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 "#303030" :foreground "#ffffff") (:background "#505050" :foreground "#808080")) :column-colors '((:background "#202020" :foreground "#00ffff") (:background "#808080" :foreground "#008080")) :divider-width 0.1 :getter #'(lambda (object column vtable) (let* ((val (vtable-column vtable column))) (cond ((equal 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ʼt see a divider at all (this is a GTK build under
  X). Increasing divider-width had no effect. Actually, thatʼs 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ʼd expect it be nearer the divider to the right
  of the name

Robert
-- 





  reply	other threads:[~2022-04-15 10:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13 11:59 bug#54905: Allow in tabulated lists to resize columns with the mouse Kiss Dénes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-14 14:04 ` Lars Ingebrigtsen
2022-04-14 16:12   ` Eli Zaretskii
2022-04-14 16:29     ` Lars Ingebrigtsen
2022-04-14 17:15       ` Eli Zaretskii
2022-04-14 17:37         ` Lars Ingebrigtsen
2022-04-14 17:40           ` Lars Ingebrigtsen
2022-04-15  7:45             ` Robert Pluim
2022-04-15  8:27               ` Lars Ingebrigtsen
2022-04-15 10:06                 ` Lars Ingebrigtsen
2022-04-15 10:42                   ` Robert Pluim [this message]
2022-04-15 10:54                     ` Lars Ingebrigtsen
2022-04-15 11:18                     ` Lars Ingebrigtsen
2022-04-15 12:02                       ` Lars Ingebrigtsen
2022-04-15 12:23                         ` Robert Pluim
2022-04-16  9:11                           ` Lars Ingebrigtsen
2022-04-15 16:46               ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8735ie4oge.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=54905@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=laszlomail@protonmail.com \
    /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 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).