From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: browse-url and "non-webish" URLs Date: Wed, 22 Aug 2007 11:11:09 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187795541 11990 80.91.229.12 (22 Aug 2007 15:12:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 15:12:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 17:12:19 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 1INrsX-0002PZ-Qe for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 17:12:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INrsX-0007Kg-2X for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 11:12:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INrsT-0007HC-58 for emacs-devel@gnu.org; Wed, 22 Aug 2007 11:12:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INrsS-0007Fe-C0 for emacs-devel@gnu.org; Wed, 22 Aug 2007 11:12:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INrsS-0007FM-5Z for emacs-devel@gnu.org; Wed, 22 Aug 2007 11:12:12 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INrsR-0005Ot-RT for emacs-devel@gnu.org; Wed, 22 Aug 2007 11:12:12 -0400 Original-Received: from ceviche.home (vpn-132-204-232-183.acd.umontreal.ca [132.204.232.183]) by pruche.dit.umontreal.ca (8.13.7/8.13.7) with ESMTP id l7MFCAsk021901 for ; Wed, 22 Aug 2007 11:12:10 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 87E28B4123; Wed, 22 Aug 2007 11:11:09 -0400 (EDT) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-NAI-Spam-Score: -2.5 X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HAS_X_HELO=0 X-Detected-Kernel: Linux 2.6 (newer, 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:76964 Archived-At: I haven't had time to look into it yet, but I'd like to see the following in browse-url: if the URL refers to a "text file" then use url-insert-file-contents (or if url-handler-mode is ON, just use find-file-other-window). I often see this when someone posts a URL to an elisp package, which is much better displayed in an Emacs buffer with highlighting and all than in a Firefox/w3m. This also true of URL to patch files, or tarballs. One problem is that it's generally not easy to tell what is what and automatically DTRT, so maybe the browse-url buttons should simply offer the user the choice to pass the URL to an external app, or pass it to the URL package. Patches welcome, Stefan