From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: `xterm-mouse-mode' has a bogus Custom group Date: Wed, 6 Apr 2005 19:45:00 -0500 (CDT) Message-ID: <200504070045.j370j0J27252@raven.dms.auburn.edu> 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> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112835069 18340 80.91.229.2 (7 Apr 2005 00:51:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2005 00:51:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 07 02:51:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJLEG-0001aK-Qn for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 02:50:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJKnT-0004DP-5g for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 20:22:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJKms-00041O-7X for emacs-devel@gnu.org; Wed, 06 Apr 2005 20:22:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJKmr-0003zg-DJ for emacs-devel@gnu.org; Wed, 06 Apr 2005 20:22:21 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJLAk-0005Ca-3M for emacs-devel@gnu.org; Wed, 06 Apr 2005 20:47:02 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j370kL9N020530; Wed, 6 Apr 2005 19:46:21 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j370j0J27252; Wed, 6 Apr 2005 19:45:00 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: nickrob@snap.net.nz In-reply-to: <16979.20638.871209.55398@farnswood.snap.net.nz> (message from Nick Roberts on Wed, 6 Apr 2005 14:59:42 +1200) 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:35667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35667 Nick Roberts wrote: Its a bit more quirky than that, mouse-save-then-kill doesn't kill text if you click with mouse-3 twice (this is not a double-click). Also xterm mouse functionality is still available for double/triple mouse clicks by holding down the SHIFT key while pressing the mouse button. Maybe the previous documentation was deliberately vague for that reason. 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." 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. ===File ~/xt-mouse-diff-b=================================== *** xt-mouse.el 03 Apr 2005 19:34:53 -0500 1.25 --- xt-mouse.el 06 Apr 2005 14:47:20 -0500 *************** *** 156,165 **** With prefix arg, turn XTerm mouse mode on iff arg is positive. Turn it on to use Emacs mouse commands, and off to use xterm mouse commands. ! This works in terminal emulators compatible with xterm. Only single clicks ! are supported. When turned on, the normal xterm mouse functionality is still ! available by holding down the SHIFT key while pressing the mouse button." ! nil " Mouse" nil :global t :group 'mouse (if xterm-mouse-mode ;; Turn it on (unless window-system --- 156,167 ---- With prefix arg, turn XTerm mouse mode on iff arg is positive. Turn it on to use Emacs mouse commands, and off to use xterm mouse commands. ! This works in terminal emulators compatible with xterm. It only ! works for simple uses of the mouse. Basically, only non-modified ! single clicks are supported. When turned on, the normal xterm ! mouse functionality for such clicks is still available by holding ! down the SHIFT key while pressing the mouse button." ! :global t :group 'mouse (if xterm-mouse-mode ;; Turn it on (unless window-system ============================================================ ===File ~/man-frames.texi-diff-b============================ *** frames.texi 04 Apr 2005 16:06:35 -0500 1.77 --- frames.texi 06 Apr 2005 14:33:02 -0500 *************** *** 1056,1064 **** Some terminal emulators under X support mouse clicks in the terminal window. In a terminal emulator which is compatible with @code{xterm}, you can use @kbd{M-x xterm-mouse-mode} to enable simple use of the ! mouse---only single clicks are supported. The normal @code{xterm} mouse ! functionality is still available by holding down the @kbd{SHIFT} key ! when you press the mouse button. @ignore arch-tag: 7dcf3a31-a43b-45d4-a900-445b10d77e49 --- 1056,1064 ---- Some terminal emulators under X support mouse clicks in the terminal window. In a terminal emulator which is compatible with @code{xterm}, you can use @kbd{M-x xterm-mouse-mode} to enable simple use of the ! mouse---basically, only non-modified single clicks are supported. The normal ! @code{xterm} mouse functionality for such clicks is still available by ! holding down the @kbd{SHIFT} key when you press the mouse button. @ignore arch-tag: 7dcf3a31-a43b-45d4-a900-445b10d77e49 ============================================================