From: "Yue Wu" <vanopen@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to disable mouse click on modeline?
Date: Sun, 12 Jun 2011 10:05:48 +0800 [thread overview]
Message-ID: <op.vwxxfylwxg2sb1@ywuw2k> (raw)
In-Reply-To: 837h8sbxlb.fsf@gnu.org
On Sat, 11 Jun 2011 16:07:12 +0800, Eli Zaretskii wrote:
>> From: "Yue Wu" <vanopen@gmail.com>
>> Date: Sat, 11 Jun 2011 13:22:31 +0800
>>
>> I want to disable mouse left/middle/right click behaviors on the
>> modeline, how to do it?
>
> Does the below help?
>
> (global-set-key [mode-line mouse-1] 'ignore)
> (global-set-key [mode-line mouse-2] 'ignore)
> (global-set-key [mode-line mouse-3] 'ignore)
>
> You will still have problems with parts of the mode line that define
> their own bindings, though. If you want to disable those as well, you
> will have to redefine mode-line-format without the mouse bindings.
>
>
Thanks for pointing out the way, it works mostly, but click on the buffer
name/infos on the modeline still has effects, maybe I have to redefine the
modeline for it, though I don't know elisp at all, an example will be
appreciated :)
--
Regards,
Yue Wu
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University(中國藥科大學)
No.24, Tongjia Xiang Street, Nanjing 210009, China
next prev parent reply other threads:[~2011-06-12 2:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-11 5:22 How to disable mouse click on modeline? Yue Wu
2011-06-11 8:07 ` Eli Zaretskii
2011-06-12 2:05 ` Yue Wu [this message]
2011-06-12 3:01 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.vwxxfylwxg2sb1@ywuw2k \
--to=vanopen@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.