From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: generate 3) S-mouse-2: follow link in new window Date: Sun, 23 Sep 2007 15:00:02 +0300 Organization: JURTA Message-ID: <87k5qha8xp.fsf@jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190548975 26005 80.91.229.12 (23 Sep 2007 12:02:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2007 12:02:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 23 14:02:49 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZQAi-000750-Iy for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 14:02:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZQAg-0003jA-3R for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 08:02:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZQAd-0003hk-3z for emacs-devel@gnu.org; Sun, 23 Sep 2007 08:02:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZQAc-0003gQ-0z for emacs-devel@gnu.org; Sun, 23 Sep 2007 08:02:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZQAb-0003gH-V5 for emacs-devel@gnu.org; Sun, 23 Sep 2007 08:02:41 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZQAb-0006nr-7u for emacs-devel@gnu.org; Sun, 23 Sep 2007 08:02:41 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IZQAZ-000P6i-1w; Sun, 23 Sep 2007 15:02:39 +0300 In-Reply-To: (Drew Adams's message of "Sun\, 23 Sep 2007 02\:47\:55 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 7b1a4900bea4ee3727a65c989d5962bc X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1513 [September 21 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 25 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-Detected-Kernel: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) 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:79568 Archived-At: > 3. It would also be helpful to bind `S-mouse-2' in Info to a command that > follows an Info link in a new window. Or better to use bindings like in Web browsers: `S-mouse-1' to follow a link in a new frame, `C-mouse-1' to follow a link in a new window (or a tab when tabs will be implemented in Emacs). > That way, a user could keep the `L' or the `I' buffer (or a TOC or an > index or any other node) open while visiting its links in another window > (or frame, with non-nil pop-up-frames). > > I have used this definition: > > (defun Info-mouse-follow-nearest-node-new-window (click) > "Open the link at the mouse pointer in a new window." > (interactive "e") > (Info-mouse-follow-nearest-node click t)) ; t no good now > > But that particular implementation no longer works, because someone over the > course of Emacs 22 development removed the optional FORK argument to > `Info-follow-nearest-node' and `Info-mouse-follow-nearest-node'. (Why?) `Info-mouse-follow-nearest-node' never had the FORK argument. `Info-follow-nearest-node' still has it, but there were plans to remove it. > Regardless of how it is implemented, it would be useful. You can do the same > thing by cloning the buffer and then following a link, but it is particulaly > handy to do this with just a mouse click. This is a question of implementation. We can implement a command that will clone the current manual, follow the requested node in a new copy, and display it accordingly to the command arguments. -- Juri Linkov http://www.jurta.org/emacs/