From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: minor enhancements for links: open Info link in new window; mouse-3 menu for buffers with links Date: Sat, 10 Jun 2006 17:29:21 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149985805 9771 80.91.229.2 (11 Jun 2006 00:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2006 00:30:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 11 02:30:01 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 1FpDpz-0007HJ-O9 for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2006 02:29:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpDpz-0001sO-6U for ged-emacs-devel@m.gmane.org; Sat, 10 Jun 2006 20:29:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FpDpn-0001sI-51 for emacs-devel@gnu.org; Sat, 10 Jun 2006 20:29:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FpDpk-0001s6-K0 for emacs-devel@gnu.org; Sat, 10 Jun 2006 20:29:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpDpk-0001s3-ER for emacs-devel@gnu.org; Sat, 10 Jun 2006 20:29:40 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FpDy8-00039S-1c for emacs-devel@gnu.org; Sat, 10 Jun 2006 20:38:20 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k5B0TcSi006405 for ; Sat, 10 Jun 2006 19:29:39 -0500 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-174.vpn.oracle.com [141.144.64.174]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k5B0Tb2F018972 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 10 Jun 2006 18:29:38 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:55819 Archived-At: Some minor link enhancements for consideration after the release. 1. Define commands `Info-follow-nearest-node-new-window' and `Info-mouse-follow-nearest-node-new-window'. These just follow a link in a new Info window (clone). I bind these to `S-RET' and `S-mouse-2'. Both are handy. 2. These could be generalized to follow any link whose destination Emacs understood (e.g. URL). In buffers with links, the same key bindings (`S-RET', `S-mouse-2') might be appropriate. Is there such a generic follow-link command already (one for RET at point and one for mouse click)? Wouldn't that be useful? In Info, it would follow an Info link. It would recognize a URL and follow that. And so on, recognizing as many types of links as possible, depending, for instance, on the buffer mode. 3. In buffers that have links, provide a mouse-3 context menu for a link. In a typical Web browser, you can right-click on a link and get a popup menu appropriate to the link. In IE6 with the Google toolbar, for instance, I see this as the link menu: Open Open In New Window Save Target As... Print Target ------------ Cut Copy Copy Shortcut Paste ------------ Add to Favorites... ------------ Backward Links Cached Snapshot of Page Similar Pages Translate Page into English ------------ Properties Two menu items that it would be particularly good to have are Open In New Window and Backward Links. In Info, Open in New Window would do the same thing as `Info-follow-nearest-node-new-window'. Backward Links is a Google thing that is sometimes quite handy. In Emacs Info, it would open a window of links to other Info nodes that also linked to the destination of the clicked link. The same functionality would be available for the current node (as opposed to the target of a link): show all nodes that link to it. Backward links for the current-node could be bound to a key sequence.