help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: complete file at point in buffer - solution and questions


From: Stefan Monnier
Subject: Re: complete file at point in buffer - solution and questions
Date: Wed, 08 Dec 2010 15:08:53 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> in minibuffer it is easy to complete a file at point. Just press tab
> if you don't know how to continue. But when I was looking in internet
> if this feature is also available for a normal buffer I did not find
> a solution.  So I decided to write one on my own.

You you may want to start with the following piece of code:

   (completion-in-region START END 'read-file-name-internal)

Also you may want to write your code such that it can be hooked into
completion-at-point-functions (so it can be triggered by TAB if you
(setq tab-always-indent 'complete)).


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]