From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Need an enabler for a bad habit. Date: Fri, 3 Nov 2006 09:59:02 -0800 Message-ID: References: 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 1162576891 1157 80.91.229.2 (3 Nov 2006 18:01:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2006 18:01:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 03 19:01:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gg3Ll-00063l-EL for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Nov 2006 19:01:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gg3Lk-0000JA-Rj for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Nov 2006 13:01:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gg3LV-0000Es-HN for help-gnu-emacs@gnu.org; Fri, 03 Nov 2006 13:00:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gg3LQ-00006S-Vd for help-gnu-emacs@gnu.org; Fri, 03 Nov 2006 13:00:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gg3LQ-00006E-RL for help-gnu-emacs@gnu.org; Fri, 03 Nov 2006 13:00:44 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gg3LP-0007Wk-R4 for help-gnu-emacs@gnu.org; Fri, 03 Nov 2006 13:00:44 -0500 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id kA3D2624007361 for ; Fri, 3 Nov 2006 11:00:40 -0700 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-240.vpn.oracle.com by rcsmt251.oracle.com with ESMTP id 2168368621162576744; Fri, 03 Nov 2006 10:59:04 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Whitelist: TRUE 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:38537 Archived-At: FYI - I've added something similar to what Martin suggested previously to library mouse+.el: http://www.emacswiki.org/cgi-bin/wiki/mouse%2b.el. The doc is here: http://www.emacswiki.org/cgi-bin/wiki/MousePlus. Because Emacs 22 shows buffer *Messages* when you click mouse-1 in the echo area (which can useful or annoying!), and mouse-2 does nothing in the echo area except show this message: "Minibuffer window is not active", I bind the mouse M-x command to `down-mouse-2', not to `down-mouse-1'. The command, `mouse-flash-position-or-M-x', keeps the original buffer and window current while `M-x' is executed, and it uses whatever command you have bound to `M-x' (in my case, `icicle-execute-extended-command'). `mouse-flash-position-or-M-x' is a general replacement for `mouse-yank-at-click'. More precisely, you bind it to `down-mouse-2', leaving `mouse-yank-at-click' bound to `mouse-2'. `mouse-flash-position-or-M-x' has another feature, which is unrelated to the echo-area use described above: It temporarily highlights the exact mouse position, so you can correct your aim or cancel clicking (e.g. yanking) if you haven't aimed well. This highlighting occurs regardless of which command is bound to `mouse-2' (the up stroke), so, for instance, it works in Dired also (where `mouse-2' is bound to `dired-mouse-find-file-other-window'). Its main utility, however, is for yanking.