* Mouse press events (on mode line, etc) when programming a new major mode
@ 2008-09-06 14:27 joao
2008-09-08 10:23 ` Nikolaj Schumacher
0 siblings, 1 reply; 2+ messages in thread
From: joao @ 2008-09-06 14:27 UTC (permalink / raw
To: help-gnu-emacs
Hi all,
I am programming a new major mode, and I'm having trouble redefining some of
the usual mouse actions :
- when I split the windows side-by-side, and my window is on the left, I can
no longer drag the vertical separator between windows, to change window size
- when I split the windows above and below, and my window is above, I can no
longer drag the mode line to change window size
I created a keymap with make-sparse-keymap, and I've added a few commands. I
can catch a mouse click inside my window, but how do I handle the above cases
?
Thanks,
Joao
--
Joao Moreira de Sa Coutinho
joao@teaser.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mouse press events (on mode line, etc) when programming a new major mode
2008-09-06 14:27 Mouse press events (on mode line, etc) when programming a new major mode joao
@ 2008-09-08 10:23 ` Nikolaj Schumacher
0 siblings, 0 replies; 2+ messages in thread
From: Nikolaj Schumacher @ 2008-09-08 10:23 UTC (permalink / raw
To: joao; +Cc: help-gnu-emacs
joao <joao@teaser.fr> wrote:
> I am programming a new major mode, and I'm having trouble redefining some of
> the usual mouse actions :
>
> - when I split the windows side-by-side, and my window is on the left,
> I can no longer drag the vertical separator between windows, to change
> window size
This doesn't work at all in my Emacs (Carbon backend), so I can't help
you here. But I don't think that this can be modified per-buffer.
> - when I split the windows above and below, and my window is above, I can no
> longer drag the mode line to change window size
You'd need to locally modify the mode line (`mode-line-format') to not include
its keymap properties. But I'd advise against such invasive action,
unless you have a very good reason for it.
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-08 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-06 14:27 Mouse press events (on mode line, etc) when programming a new major mode joao
2008-09-08 10:23 ` Nikolaj Schumacher
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).