bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54905: Allow in tabulated lists to resize columns with the mouse


From: Lars Ingebrigtsen
Subject: bug#54905: Allow in tabulated lists to resize columns with the mouse
Date: Thu, 14 Apr 2022 18:29:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]