From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: path completion with file: links? Date: Fri, 09 Jan 2009 10:04:21 +0100 Message-ID: <87k594x33e.fsf@thinkpad.tsdh.de> References: <20090108203845.GG6973@stats.ox.ac.uk> <87wsd5plb7.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLDIE-0002Al-N7 for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 04:04:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLDIC-00029r-Vv for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 04:04:38 -0500 Received: from [199.232.76.173] (port=55618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLDIC-00029X-LN for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 04:04:36 -0500 Received: from main.gmane.org ([80.91.229.2]:38952 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LLDIC-0003GY-2l for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 04:04:36 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LLDIA-0006Bu-W4 for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 09:04:35 +0000 Received: from p54af2712.dip0.t-ipconnect.de ([84.175.39.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2009 09:04:34 +0000 Received: from tassilo by p54af2712.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2009 09:04:34 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matthew Lundin writes: Hi, > Dan Davison writes: > >> When creating a file link with C-c C-l, I appreciate that the initial >> file: specifier is autocompleted for me, but I don't subsequently get >> autocompletion on path names. Is that supposed to happen, and if not >> would it be possible / how difficult would it be? > > Try adding a prefix argument to C-c C-l. > > C-u C-c C-l should do the trick. Or as a side-note not relevant to org-mode: With hippie-expand one can complete path names (and various other things like completing "3 * 2 =" to " 3 * 2 = 6") in every part of emacs. Just put ,----[ C-h f try-complete-file-name-partially RET ] | try-complete-file-name-partially is a compiled Lisp function in | `hippie-exp.el'. | | (try-complete-file-name-partially old) | | Try to complete text as a file name, as many characters as unique. | The argument old has to be nil the first call of this function. It | returns t if a unique, possibly partial, completion is found, nil | otherwise. `---- into `hippie-expand-try-functions-list' and bind `hippie-expand' to some key. Bye, Tassilo