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: RE: [sdl.web@gmail.com: 23.0.0; (thing-at-point 'url) returns invalid urls] Date: Fri, 31 Aug 2007 09:18:45 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188577264 1088 80.91.229.12 (31 Aug 2007 16:21:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 16:21:04 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 31 18:21:01 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 1IR9Es-0001R5-4z for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2007 18:20:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR9Er-0003LE-5u for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2007 12:20:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IR9En-0003Jl-9e for emacs-devel@gnu.org; Fri, 31 Aug 2007 12:20:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IR9El-0003HT-Gw for emacs-devel@gnu.org; Fri, 31 Aug 2007 12:20:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR9El-0003HL-E3 for emacs-devel@gnu.org; Fri, 31 Aug 2007 12:20:47 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IR9Ek-0000cC-W2 for emacs-devel@gnu.org; Fri, 31 Aug 2007 12:20:47 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l7VGKhOO028218 for ; Fri, 31 Aug 2007 11:20:43 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l7V9YpEX013189 for ; Fri, 31 Aug 2007 10:20:43 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-199.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3174648121188577124; Fri, 31 Aug 2007 09:18:44 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 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:77496 Archived-At: > >> Would someone please DTRT and ack? > > There's no problem here and nothing to do. The URLs returned are > > perfectly valid. See the discussion that followed the original email. > > Maybe the docstring (and or behavior) should be adjusted to make the > distinction clear between "assuming there's a URL at point, return it" and > "check if there's a URL at point, and if there is, return it". > > This is often a somewhat subtle but important difference. When the user > does M-x browse-url RET, it makes perfect sense to place as default in the > minibuffer the best URL we could come up with, even if it doesn't > look very > likely to a good one. > > OTOH if we create a command which can do two different thing depending on > whether there's a URL at point, we would want to be much more stringent on > what we consider as an acceptable "URL at point". Seconded. The doc can distinguish between the URL itself being valid (syntactically) and the URL having a live target. The first is a property of the URL; the second is a property of its target.