From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to disable mouse click on modeline? Date: Sat, 11 Jun 2011 11:07:12 +0300 Message-ID: <837h8sbxlb.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1307779742 15510 80.91.229.12 (11 Jun 2011 08:09:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2011 08:09:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 11 10:08:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QVJFa-0004Bg-V9 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2011 10:08:59 +0200 Original-Received: from localhost ([::1]:59581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVJFZ-0002Nb-9n for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2011 04:08:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVJDq-0002ND-Jr for help-gnu-emacs@gnu.org; Sat, 11 Jun 2011 04:07:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVJDp-0000pF-JK for help-gnu-emacs@gnu.org; Sat, 11 Jun 2011 04:07:10 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVJDp-0000pB-59 for help-gnu-emacs@gnu.org; Sat, 11 Jun 2011 04:07:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LMM004007NP5K00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 11 Jun 2011 11:07:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.164.125]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LMM004O097U9F20@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 11 Jun 2011 11:07:07 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81330 Archived-At: > From: "Yue Wu" > 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.