From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: opening a filename that appears in a buffer? Date: Tue, 20 May 2008 23:52:38 +0200 Organization: A noiseless patient Spider Message-ID: References: <01bc057a-47b6-4f3c-9685-648babebe7c3@h1g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211323279 18277 80.91.229.12 (20 May 2008 22:41:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 22:41:19 +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 00:41:56 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 1JyaWG-0003gI-4G for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 00:41:20 +0200 Original-Received: from localhost ([127.0.0.1]:35218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyaVV-00008K-Vr for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 18:40:34 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1/jXJU/IiPlP1z5JzhLFdMP8oCedeEO5QlhcQ0CDIWhyk5NHdTegobGV0FxiDGOqIKEm3sUGRb2jKniCLHQXd4ZnHGLa9wYfAQVa9xV7gtSHKy+77/tN4a6gg2BMKYBAKBcb6rR+0qYdw== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Tue, 20 May 2008 21:52:39 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18yKFQoRPOZeyS7vlNkTH7By8vFVkCvwitVSCM+KKFHAw== Cancel-Lock: sha1:oXrlGRVXhE/dcPNMqfAbs2U6I5E= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:158821 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:54184 Archived-At: ljp writes: > Hello all, > > I'm relatively new to emacs, and it is gradually becoming the central > fixture through which I do all of my programming. One thing I find > myself doing often is executing a shell command in a shell buffer, and > then wanting to open a file that was listed in the output of the shell > command. To do this right now I manually select the filename and > paste it into the minibuffer for C-x C-f. Is there an easier way? > Like, maybe, a command that is able to pick out a filename from the > buffer when the cursor is in (but not necessarily at the start of) > that filename, and then open the file in a new buffer? > > Thanks! I've looked through documentation, but I haven't found > anything like this. directly from my .emacs and its been there for a while so I dont know if its the best way: ;; open file/url at point (require 'ffap) (ffap-bindings) (add-to-list 'ffap-c-path "/usr/src/linux/include") (add-to-list 'ffap-c-path "/usr/src/linux/include/linux") (add-to-list 'ffap-c-path "/usr/include") (add-to-list 'ffap-c-path "/usr/include/gtk-2.0")