From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: mouse-1-click-follows-link and mime messages Date: Fri, 10 Feb 2006 02:32:52 +0100 Message-ID: <85fymsxakb.fsf@lola.goethe.zz> References: <87acd48bhi.fsf@stupidchicken.com> <87acd3mx3u.fsf@pacem.orebokech.com> <877j86929j.fsf@stupidchicken.com> <87y80lo9q0.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139582241 26344 80.91.229.2 (10 Feb 2006 14:37:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2006 14:37:21 +0000 (UTC) Cc: Chong Yidong , romain@orebokech.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 15:37:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7ZLs-00035t-VM for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 15:34:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7ZLe-0003Y7-Up for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 09:34:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7YPG-0003ea-QQ for emacs-devel@gnu.org; Fri, 10 Feb 2006 08:33:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7YPD-0003de-Jl for emacs-devel@gnu.org; Fri, 10 Feb 2006 08:33:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7YPB-0003dL-WC for emacs-devel@gnu.org; Fri, 10 Feb 2006 08:33:46 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7YSy-0000mN-7G for emacs-devel@gnu.org; Fri, 10 Feb 2006 08:37:40 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1F7YP4-0004mF-CP; Fri, 10 Feb 2006 08:33:38 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 9C74E1C00382; Fri, 10 Feb 2006 02:32:52 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Thu, 09 Feb 2006 20:12:07 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:50325 Archived-At: "Richard M. Stallman" writes: > I figured out the problem. We should only change the selected window > if we are translating to mouse-2. The `follow-link' property can also > specify translation to, e.g., "\C-m" (in the case of the link widget); > in that case, we shouldn't change the window. > > I've checked in a fix. > > Thanks. While I think the fix reasonable, I'd suggest that follow-link should, when feasible, try to map through a mouse event. Link-like fields sometimes have an interactive spec not containing "@" which means that they will not switch the selected window while doing their action through a mouse click. A translation to a mouse event can keep those semantics; a translation to a keyboard event does not seem to make sense without changing the selected window. So as a rule of thumb, follow-link should probably not revert to a keyboard event when this can be avoided in favor of an interactive form or event intended for the mouse. In particular when mouse-2 does not do "@" in its interactive spec. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum