From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.help Subject: Re: Any easy way to disable mouse behavior that can change to other buffers? Date: Thu, 13 Nov 2008 16:44:37 +0800 Message-ID: <874p2cxbey.fsf@manatee.domain> References: <87prl0qcu3.fsf@sina.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226567361 2339 80.91.229.12 (13 Nov 2008 09:09:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 09:09:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 10:10:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0YDI-0004MK-OE for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 10:10:09 +0100 Original-Received: from localhost ([127.0.0.1]:43370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0YCA-0001iK-M1 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 04:08:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0YBq-0001h8-9h for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 04:08:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0YBo-0001fk-Il for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 04:08:37 -0500 Original-Received: from [199.232.76.173] (port=42258 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0YBo-0001fa-69 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 04:08:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:46919 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0YBn-0000PV-P3 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 04:08:36 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0YBf-0004yt-Dq for help-gnu-emacs@gnu.org; Thu, 13 Nov 2008 09:08:28 +0000 Original-Received: from 222.212.128.65 ([222.212.128.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 09:08:27 +0000 Original-Received: from lazycat.manatee by 222.212.128.65 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 09:08:27 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 222.212.128.65 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:XXKq/o2VYLhVBM2bePUUqaKBc5w= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59724 Archived-At: Hi, I have a easy way that perhaps can help you. I configuration below in ~/.emacs (mouse-avoidance-mode "banish") to make mouse banish when do any action in Emacs. But I don't like mouse banish to right-top corner of Frame, because that will make mouse above Tabbar. So I rewrite function `mouse-avoidance-banish-destination' to make mouse banish right-bottom corner of Frame. (defun mouse-avoidance-banish-destination () "The position to which Mouse-Avoidance mode `banish' moves the mouse. You can redefine this if you want the mouse banished to a different corner." (let* ((pos (window-edges))) (cons (+ (nth 1 pos) (frame-width) 50) (+ (nth 1 pos) (frame-height) 50)))) ;make mouse hide in bottom of frame Enjoy! -- Andy. anhnmncb writes: > Mouse when on modeline, and popup buffers menu by C- can be > used to change to other buffers, both of which are not what I want, can > I disable it? > > Thank you.