From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to disable mouse click on modeline?
Date: Sun, 12 Jun 2011 06:01:09 +0300 [thread overview]
Message-ID: <83y617ah3e.fsf@gnu.org> (raw)
In-Reply-To: <op.vwxxfylwxg2sb1@ywuw2k>
> From: "Yue Wu" <vanopen@gmail.com>
> Date: Sun, 12 Jun 2011 10:05:48 +0800
>
> > (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 :)
The default definition of mode-line-format is in bindings.el, so I
think you will find there all the examples you need.
prev parent reply other threads:[~2011-06-12 3:01 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
2011-06-12 3:01 ` Eli Zaretskii [this message]
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=83y617ah3e.fsf@gnu.org \
--to=eliz@gnu.org \
--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.