From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: follow-link in grep buffer Date: Mon, 21 Feb 2005 16:19:30 -0500 Message-ID: References: <16922.19947.785134.975378@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109022457 31639 80.91.229.2 (21 Feb 2005 21:47:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 21:47:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 21 22:47:37 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3LOX-0005ts-Oj for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 22:47:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3LfY-00018k-T8 for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 17:04:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3LfL-00017G-8A for emacs-devel@gnu.org; Mon, 21 Feb 2005 17:04:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3LV5-0006lI-HN for emacs-devel@gnu.org; Mon, 21 Feb 2005 16:54:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3LV1-0006bV-Cu for emacs-devel@gnu.org; Mon, 21 Feb 2005 16:53:51 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3Kxr-0001gC-84 for emacs-devel@gnu.org; Mon, 21 Feb 2005 16:19:35 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 053C0828003; Mon, 21 Feb 2005 16:19:34 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1D9D92CC002; Mon, 21 Feb 2005 16:19:31 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id ECFB44BB66; Mon, 21 Feb 2005 16:19:30 -0500 (EST) Original-To: Nick Roberts In-Reply-To: <16922.19947.785134.975378@farnswood.snap.net.nz> (Nick Roberts's message of "Tue, 22 Feb 2005 10:08:59 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.807, requis 5, autolearn=not spam, AWL 0.09, BAYES_00 -4.90) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33684 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33684 > I realise that applications like web browsers use mouse-1 to follow links, so > it is a good idea for Emacs to provide some consistency and it works well with > Info pages. However, I am not sure if it is always appropriate as Emacs users > understand that mouse-1 just generally moves the cursor, while mouse-2 might > jump to another buffer. The grep buffer is an example. If I try to place the > cursor anywhere on a line before the end of a match, the associated file > pops up in another buffer. However I might just want to select that window > to resize it. I could select the window by clicking on the modeline but if I > click on the wrong part I get a different buffer. All this functionality must > be daunting for the new user, so I suggest the following: > 1) Mouse-1 is not used to follow links in the grep or compilation buffers. > 2) If it has to be used for this purpose, then it only works where the match > occurs (this must be easy to implement as it already has a different face) > and the match is also underlined so that it looks like a link. Based on your example, I'd say another option might be: - if the click is used to give focus, then don't follow the link. Stefan "who uses focus-follows-mouse and thus doesn't suffer from this problem (or suffers from it all the time and thus doesn't expect such things not to happen)"