* Looking for a package filename expansion in a buffer (ala dabbrev)
@ 2003-05-05 16:49 bigfaceworm
2003-05-05 17:13 ` Edward O'Connor
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bigfaceworm @ 2003-05-05 16:49 UTC (permalink / raw)
All,
I'm sure someone has written this, but my google searches have turned
up nothing.
I'm just looking for a package that will let me expand filenames when
I'm inside a buffer.
e.g. I'd be typing /a/path/to<KEY>
and KEY would expand (or give me options) the path/filename
/a/path/to/a/unique/file
or something like that.
Just trying not to re-invent the wheel.
tia,
BFW
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a package filename expansion in a buffer (ala dabbrev)
2003-05-05 16:49 Looking for a package filename expansion in a buffer (ala dabbrev) bigfaceworm
@ 2003-05-05 17:13 ` Edward O'Connor
2003-05-05 17:53 ` Martin Lorentzson
2003-05-06 7:34 ` Klaus Berndl
2 siblings, 0 replies; 4+ messages in thread
From: Edward O'Connor @ 2003-05-05 17:13 UTC (permalink / raw)
> I'm just looking for a package that will let me expand filenames when
> I'm inside a buffer.
>
> e.g. I'd be typing /a/path/to<KEY>
>
> and KEY would expand (or give me options) the path/filename
>
> /a/path/to/a/unique/file
>
> or something like that.
Maybe M-x comint-dynamic-complete-filename RET does what you want?
,----[ C-h f comint-dynamic-complete-filename RET ]
| comint-dynamic-complete-filename is an interactive compiled Lisp function in `comint'.
| (comint-dynamic-complete-filename)
|
| Dynamically complete the filename at point.
| Completes if after a filename. See `comint-match-partial-filename' and
| `comint-dynamic-complete-as-filename'.
| This function is similar to `comint-replace-by-expanded-filename', except that
| it won't change parts of the filename already entered in the buffer; it just
| adds completion characters to the end of the filename. A completions listing
| may be shown in a help buffer if completion is ambiguous.
|
| Completion is dependent on the value of `comint-completion-addsuffix',
| `comint-completion-recexact' and `comint-completion-fignore', and the timing of
| completions listing is dependent on the value of `comint-completion-autolist'.
|
| Returns t if successful.
`----
Ted
--
Edward O'Connor
oconnor@soe.ucsd.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a package filename expansion in a buffer (ala dabbrev)
2003-05-05 16:49 Looking for a package filename expansion in a buffer (ala dabbrev) bigfaceworm
2003-05-05 17:13 ` Edward O'Connor
@ 2003-05-05 17:53 ` Martin Lorentzson
2003-05-06 7:34 ` Klaus Berndl
2 siblings, 0 replies; 4+ messages in thread
From: Martin Lorentzson @ 2003-05-05 17:53 UTC (permalink / raw)
bigfaceworm@hotmail.com (bigfaceworm) writes:
> I'm just looking for a package that will let me expand filenames
> when I'm inside a buffer.
The following two lines in your ~/.emacs will place just such a
feature on your F5 key:
(require 'comint)
(global-set-key [f5] #'comint-dynamic-complete-filename)
/Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a package filename expansion in a buffer (ala dabbrev)
2003-05-05 16:49 Looking for a package filename expansion in a buffer (ala dabbrev) bigfaceworm
2003-05-05 17:13 ` Edward O'Connor
2003-05-05 17:53 ` Martin Lorentzson
@ 2003-05-06 7:34 ` Klaus Berndl
2 siblings, 0 replies; 4+ messages in thread
From: Klaus Berndl @ 2003-05-06 7:34 UTC (permalink / raw)
On 5 May 2003, bigfaceworm@hotmail.com wrote:
> All,
>
> I'm sure someone has written this, but my google searches have turned
> up nothing.
>
> I'm just looking for a package that will let me expand filenames when
> I'm inside a buffer.
>
> e.g. I'd be typing /a/path/to<KEY>
>
> and KEY would expand (or give me options) the path/filename
>
> /a/path/to/a/unique/file
>
> or something like that.
>
> Just trying not to re-invent the wheel.
Not necessary...try hippie-expand (hippie-exp.el) which is part of Emacs.
See option `hippie-expand-try-functions-list'...AFAIK the default value of
this option contains already what you want (functions
`try-complete-file-name-partially' and 'try-complete-file-name')
Klaus
>
> tia,
>
> BFW
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-06 7:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05 16:49 Looking for a package filename expansion in a buffer (ala dabbrev) bigfaceworm
2003-05-05 17:13 ` Edward O'Connor
2003-05-05 17:53 ` Martin Lorentzson
2003-05-06 7:34 ` Klaus Berndl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.