From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: Dired like functionality on a custom text file Date: Wed, 21 May 2008 09:10:38 -0500 Message-ID: <87r6bvsq75.fsf@newsguy.com> References: <683a41e6-1009-4c2e-9354-b748c6f7ad95@t12g2000prg.googlegroups.com> <4832BEF9.5020409@pobox.com> <87ve1981be.fsf@newsguy.com> <483409DA.8020508@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211388016 16149 80.91.229.12 (21 May 2008 16:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 16:40:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 18:40:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JyrMk-0008EG-VE for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 18:40:39 +0200 Original-Received: from localhost ([127.0.0.1]:48463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyrM0-00041d-Mg for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 12:39:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jyp1t-0003ow-7C for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:10:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jyp1s-0003nw-49 for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:10:56 -0400 Original-Received: from [199.232.76.173] (port=40572 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jyp1r-0003nl-SS for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:10:55 -0400 Original-Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:53501) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jyp1r-00016V-Ft for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:10:55 -0400 Original-Received: from OMTA03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id UCJw1Z00M0b6N64AA04w00; Wed, 21 May 2008 14:10:44 +0000 Original-Received: from reader.local.lan ([67.162.73.42]) by OMTA03.emeryville.ca.mail.comcast.net with comcast id UEAe1Z00A0ukaez8P00000; Wed, 21 May 2008 14:10:43 +0000 X-Authority-Analysis: v=1.0 c=1 a=HJv72IQ1bfoA:10 a=Zyp_gGaeyoQA:10 a=9N3sZnn2YEHoR0vrHxUA:9 a=S4f15oOXwd1YDQTc054k-6GiRdQA:4 a=qIVjreYYsbEA:10 a=zoKOyUDlhksA:10 Original-Received: from reader.local.lan (reader.local.lan [127.0.0.1]) by reader.local.lan (8.14.2/8.14.2) with ESMTP id m4LEAcSF018548; Wed, 21 May 2008 09:10:38 -0500 Original-Received: (from reader@localhost) by reader.local.lan (8.14.2/8.14.1/Submit) id m4LEAcc1018547; Wed, 21 May 2008 09:10:38 -0500 X-Authentication-Warning: reader.local.lan: reader set sender to reader@newsguy.com using -f In-Reply-To: <483409DA.8020508@pobox.com> (Bernardo Bacic's message of "Wed, 21 May 2008 21:39:06 +1000") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Wed, 21 May 2008 12:36:38 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54206 Archived-At: Bernardo Bacic writes: >>> could it be that find-file-at-point (M-x ffap) is what you are looking for here? >> >> I don't see much of anything happen using that... >> >> First compile a list of files >> >> find dir -type f >dir/file >> >> Now load file into emacs. >> >> With cursor on this line: >> dir/new.txt >> >> Pressing M-x ffap shows >> Find file or URL: ~/dir/ >> >> And that's it. Completion doesn't go anywhere either. >> >> I thought this was supposed to load the file name. > i'm only guessing - it could be due to relative path names; > try changing your command to: > find `pwd`/dir -type f >dir/file > > or just manually edit entries in your 'dir/file' and see if that makes > any difference Yup, that was it .. thanks