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: Fri, 25 Feb 2005 11:59:10 -0500 Message-ID: References: <16922.19947.785134.975378@farnswood.snap.net.nz> <16926.51952.150749.303780@farnswood.snap.net.nz> <87bra8iyul.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109350951 10201 80.91.229.2 (25 Feb 2005 17:02:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Feb 2005 17:02:31 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org, rms@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 25 18:02:27 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4ir5-0004ic-Tx for ged-emacs-devel@m.gmane.org; Fri, 25 Feb 2005 18:02:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4j8s-0006Yq-Rx for ged-emacs-devel@m.gmane.org; Fri, 25 Feb 2005 12:20:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D4j8D-0006NW-EU for emacs-devel@gnu.org; Fri, 25 Feb 2005 12:20:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D4j87-0006LM-Af for emacs-devel@gnu.org; Fri, 25 Feb 2005 12:19:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4j86-0006JO-Pa for emacs-devel@gnu.org; Fri, 25 Feb 2005 12:19:54 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D4io6-0005rB-0M; Fri, 25 Feb 2005 11:59:14 -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 89D4D340018; Fri, 25 Feb 2005 11:59:13 -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 5AA4E2CC002; Fri, 25 Feb 2005 11:59:10 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 452414BB66; Fri, 25 Feb 2005 11:59:10 -0500 (EST) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Fri, 25 Feb 2005 17:47:58 +0100") 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.812, 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:33805 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33805 >>> If we have specific problems in certain modes, let's fix those >>> modes (e.g. in grep that you have to click on the file:line >>> part of a line to jump). >> >> AFAICT the specific problem at hand is that a mous-1 click used to >> get focus should not follow a link. No matter what kind of link, no >> matter the major mode. > That's not the only problem. A mouse-1 click not used to get focus > should follow a link. If it doesn't, that is surprising. Now > click-to-focus is strictly a windowmanager and frame thingy. While > one also uses the mouse for the purpose of changing the _window_ > instead of the frame, one would be terribly surprised if this had not > the side effect of setting point, too. Basically, one sets point into > a different window since that is the convenient way to change focus. > It is completely backwards if this side effect of a window change > leads to a link working or not working, namely if we _do_ set point, > but _don't_ follow the link. With a true click-to-focus, we should > not even have the window-point change, merely the selected window. AFAICT, the problem at hand is about frame-focus-changes, not about window-focus-changes (Nick's message said "I might just want to select that window to resize it" suggesting pretty clearly that he's talking about frames rather than windows). >> I think x-mouse-click-focus-ignore-position is pretty much the kind >> of thing we want, although I'd have expected that the window-manager >> would take care of those things (it should eat the "click-to-focus" >> and not pass it on to the application). > You are confusing frame and window. Changing the selected window is > also necessary at times. No, I'm not confusing them, I was talking about frames (and never mentioned the word "window"), tho I didn't make it explicit since I thought the context was sufficiently clear. BTW, in a click-to-focus environment (I'm still talking only about frames's focus), I think it'd indeed also make sense (as Nick's message mentioned) to ignore a click on a sensitive mode-line element if it was used to get focus. Basically, any non-trivially-safe (point movement and window selection is safe, most of the rest isn't) operation should not be triggered by a click-to-focus. Maybe the mouse-face should also be inactive on frames that don't have focus. Stefan