unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: laszlomail@protonmail.com, 54905@debbugs.gnu.org
Subject: bug#54905: Allow in tabulated lists to resize columns with the mouse
Date: Thu, 14 Apr 2022 18:29:32 +0200	[thread overview]
Message-ID: <878rs7k4r7.fsf@gnus.org> (raw)
In-Reply-To: <83tuav3aqy.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Apr 2022 19:12:05 +0300")

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	other threads:[~2022-04-14 16:29 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 [this message]
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
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=878rs7k4r7.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54905@debbugs.gnu.org \
    --cc=eliz@gnu.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).