GNU bug report logs - #54905
Allow in tabulated lists to resize columns with the mouse

Previous Next

Package: emacs;

Reported by: Kiss Dénes <laszlomail <at> protonmail.com>

Date: Wed, 13 Apr 2022 12:00:02 UTC

Severity: wishlist

Full log


Message #16 received at 54905 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: laszlomail <at> protonmail.com, 54905 <at> debbugs.gnu.org
Subject: Re: bug#54905: Allow in tabulated lists to resize columns with the
 mouse
Date: Thu, 14 Apr 2022 18:29:32 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> What's wrong with drag-mouse-1 etc.?  Or am I misunderstanding the
> question?

No, that was exactly what I was looking for.  :-/  I was getting some
weird results when I tried using it, so I assumed that it didn't quite
work, but I tried it again now, and it seems to work fine.  I may have
been getting confused by the binding(s) that already exists in
header-line -- there's a bunch of different bindings for down (etc.)
there...

Yes, this doesn't seem to work:

(keymap-local-set "<header-line> <drag-mouse-1>" #'foo)
(defun foo (e)
  (interactive "e")
  (message "Hello %S %S"
	   (posn-x-y (event-start e)) (posn-x-y (event-end e))))

Dragging something in the header line does not call this function.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.