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: Info-mouse-follow-nearest-node should take prefix arg to fork Date: Sun, 22 Jan 2006 02:43:44 +0200 Organization: JURTA Message-ID: <87hd7xduev.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137894358 1834 80.91.229.2 (22 Jan 2006 01:45:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 01:45:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 02:45:58 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 1F0UIm-0002fq-KD for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2006 02:45:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0ULL-0007ee-G3 for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 20:48:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0UGq-0002Vr-7O for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0UGo-0002Tv-CJ for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0UGm-0002TL-K8 for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:43:53 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0ULG-00059j-8B for emacs-devel@gnu.org; Sat, 21 Jan 2006 20:48:30 -0500 Original-Received: from mail.neti.ee (80-235-32-6-dsl.mus.estpak.ee [80.235.32.6]) by Relayhost1.neti.ee (Postfix) with ESMTP id 166885301; Sun, 22 Jan 2006 03:41:10 +0200 (EET) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 8 Jan 2006 10:37:17 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:49374 Archived-At: > Why not add an optional FORK arg to Info-mouse-follow-nearest-node, so it > opens the node in a separate window? The only change is to add the arg and > pass it to Info-try-follow-nearest-node. > > (defun Info-mouse-follow-nearest-node (click &optional fork) > "... > With a prefix argument, open the node in a separate window." > (interactive "e\nP") > (mouse-set-point click) > (and (not (Info-try-follow-nearest-node fork)) > (save-excursion (forward-line 1) (eobp)) > (Info-next-preorder))) IIRC, using an optional FORK arg is a deprecated feature. You can use M-n instead. -- Juri Linkov http://www.jurta.org/emacs/