From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Bacic Newsgroups: gmane.emacs.help Subject: Re: Dired like functionality on a custom text file Date: Wed, 21 May 2008 21:39:06 +1000 Message-ID: <483409DA.8020508@pobox.com> References: <683a41e6-1009-4c2e-9354-b748c6f7ad95@t12g2000prg.googlegroups.com> <4832BEF9.5020409@pobox.com> <87ve1981be.fsf@newsguy.com> Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211370136 12745 80.91.229.12 (21 May 2008 11:42:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 11:42:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: reader@newsguy.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 13:42:44 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 1JymiD-0000Z9-FZ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 13:42:29 +0200 Original-Received: from localhost ([127.0.0.1]:35516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JymhT-00026r-08 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 07:41:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JymgI-0001ip-Ga for help-gnu-emacs@gnu.org; Wed, 21 May 2008 07:40:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JymgF-0001hX-Sq for help-gnu-emacs@gnu.org; Wed, 21 May 2008 07:40:29 -0400 Original-Received: from [199.232.76.173] (port=47581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JymgF-0001hU-Jn for help-gnu-emacs@gnu.org; Wed, 21 May 2008 07:40:27 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:39306 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JymgF-0000kG-Bd for help-gnu-emacs@gnu.org; Wed, 21 May 2008 07:40:27 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 8EFBC43EB; Wed, 21 May 2008 07:40:21 -0400 (EDT) Original-Received: from PIV2.8 (unknown [202.7.251.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 6EFA243EA; Wed, 21 May 2008 07:40:17 -0400 (EDT) User-Agent: Thunderbird 2.0.0.14 (X11/20080421) In-Reply-To: <87ve1981be.fsf@newsguy.com> X-Pobox-Relay-ID: B1C76096-272A-11DD-992B-80001473D85F-14340206!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:54201 Archived-At: >> 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