From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#6695: 24.0.50; thing-at-point-url-at-point and ffap-guesser problem Date: Thu, 14 Jul 2011 15:25:09 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310652222 2066 80.91.229.12 (14 Jul 2011 14:03:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 14:03:42 +0000 (UTC) Cc: 6695@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 16:03:38 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhMVt-0001Lf-Ck for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 16:03:37 +0200 Original-Received: from localhost ([::1]:55552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMVr-00074G-S4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 10:03:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMVR-00073C-K9 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 10:03:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhMVN-0001NW-G1 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 10:03:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMVN-0001NJ-6Y for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2011 10:03:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QhMVL-00043H-4W; Thu, 14 Jul 2011 10:03:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2011 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6695-submit@debbugs.gnu.org id=B6695.131065214515443 (code B ref 6695); Thu, 14 Jul 2011 14:03:02 +0000 Original-Received: (at 6695) by debbugs.gnu.org; 14 Jul 2011 14:02:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhMUf-00040v-45 for submit@debbugs.gnu.org; Thu, 14 Jul 2011 10:02:25 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhMUZ-00040S-Gv for 6695@debbugs.gnu.org; Thu, 14 Jul 2011 10:02:19 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QhMUO-00071T-2U; Thu, 14 Jul 2011 16:02:04 +0200 In-Reply-To: (Drew Adams's message of "Wed, 21 Jul 2010 11:16:25 -0700") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Depeche Mode's _Black Celebration_ X-Hashcash: 1:23:110714:6695@debbugs.gnu.org::WEo1TVePx03LqOT4:00000000000000000000000000000000000000000u/pv X-Hashcash: 1:23:110714:drew.adams@oracle.com::QEBmBlo1jMbYew3d:0000000000000000000000000000000000000001pW1+ X-MailScanner-ID: 1QhMUO-00071T-2U MailScanner-NULL-Check: 1311256924.26677@eWMAfL5HLG4ehOJyjGk0yw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 14 Jul 2011 10:03:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48989 Archived-At: "Drew Adams" writes: > Load thingatpt.el and ffap.el. Use this test line of text: > > ;; c:/Documents and Settings/foobar/My Documents/MyStuff/foo.pdf > > 1. Put the cursor on the g of Settings. > M-: (thing-at-point-url-at-point) => "http://Settings/foobar/My" > > 2. Put the cursor on the S of MyStuff. > M-: (thing-at-point-url-at-point) => > "http://Documents/MyStuff/foo.pdf" These both return nil for me in Emacs 24. > Neither of those is remotely correct. > > 3. Put the cursor on the g of Settings. > M-: (ffap-guesser) => nil [...] > What should happen: > > `ffap-guesser' should return > "c:/Documents and Settings/foobar/My Documents/MyStuff/foo.pdf" > > `thing-at-point-url-at-point should return > "http://c:/Documents and Settings/foobar/My Documents/MyStuff/foo.pdf" I don't really see how guessing that these things are file names is feasible. Unless one adds special matches for Windows where [letter]:/ matches stuff until the end of the line or something... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/