From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: `xterm-mouse-mode' has a bogus Custom group Date: Fri, 8 Apr 2005 13:50:59 +1200 Message-ID: <16981.58243.428189.615765@farnswood.snap.net.nz> References: <200504020351.j323ppS16391@raven.dms.auburn.edu> <16974.11752.332998.125628@farnswood.snap.net.nz> <200504021346.j32Dk3e19471@raven.dms.auburn.edu> <16978.12100.857894.861739@farnswood.snap.net.nz> <200504060000.j3600bm15264@raven.dms.auburn.edu> <16979.20638.871209.55398@farnswood.snap.net.nz> <200504070045.j370j0J27252@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112925293 29166 80.91.229.2 (8 Apr 2005 01:54:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 01:54:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 08 03:54:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJihj-0001gm-Rz for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 03:54:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJiH9-0005y9-Jp for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 21:27:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJiGT-0005nP-EJ for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:26:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJiGP-0005lY-IQ for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:26:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJiGP-0005lF-AY for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:26:25 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJifE-0004Tg-1r for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:52:04 -0400 Original-Received: from farnswood.snap.net.nz (p158-tnt2.snap.net.nz [202.124.108.158]) by viper.snap.net.nz (Postfix) with ESMTP id 80D154AB8D2; Fri, 8 Apr 2005 13:51:14 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 2B74362A99; Fri, 8 Apr 2005 02:51:00 +0100 (BST) Original-To: Luc Teirlinck In-Reply-To: <200504070045.j370j0J27252@raven.dms.auburn.edu> X-Mailer: VM 7.19 under Emacs 22.0.50.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35726 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35726 > The situation is obviously so messy that going for 100 percent > accurate documentation seems hopeless. I include patches below whose > main difference docwise is that they include the word basically to > indicate that no 100 percent accuracy is claimed: "Basically, only > non-modified single clicks are supported." Yes, I think this is enough detail. > The new patch for xt-mouse includes a more fundamental non-doc change, > which I could, of course, easily leave out if it would be deemed > undesirable: get rid of the "Mouse" which appears in the mode line if > the mode is activated. > > The way I understand it, if you want Emacs to handle simple mouse > clicks while running in an xterm, you can simply enable the mode > unconditionally. While you are using a window system, the mode does > nothing anyway. Except for putting the confusing "Mouse" in the mode > line. Also, this is the kind of thing you either enable permanently > or not at all. It does not seem to be the kind of stuff that you > dis/enable all the time. Hence, even while running Emacs in an xterm, > the "Mouse" just seems too waste precious space in the mode line. I only enable xterm-mouse-mode in an xterm: (if (eq window-system 'nil) (if (string= "xterm" (getenv "TERM")) (progn (xterm-mouse-mode 1) (load-library "t-mouse") (t-mouse-mode 1)) ... I've only found it helpful to have "Mouse" in the mode-line so I know it has actually loaded. If it is removed, might it make sense to conditionally load xt-mouse in startup.el to ensure its always loaded when needed? Nick