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

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

Re: Completing environmental variable names?


From: Emanuel Berg
Subject: Re: Completing environmental variable names?
Date: Thu, 02 Apr 2015 01:12:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Óscar Fuentes <ofv@wanadoo.es> writes:

>> Has anyone written a hook to complete environmental
>> variable names? Imagine that I have a variable
>> named LONG_ENV_VAR_NAME, and one called
>> LONG_FOO_VAR_NAME. If I'm finding a file (typing
>> its name in the minibuffer, the usual way), and
>> after typing "$LONG_E" I want to press TAB, and
>> have it to complete it to $LONG_ENV_VAR_NAME and
>> then to expand its value (as it does already).
>
> It works for me on GNU Emacs 25.0.50.1
> (x86_64-unknown-linux-gnu, X toolkit) of 2015-03-05
>
> emacs -Q C-x C-f $HO [TAB]
>
> expands to $HOME.

Yes, it works for me as well in:

    GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+
    Version 3.14.5) of 2015-03-07 on trouble, modified
    by Debian

Try env(1) (/usr/bin/env on Debian) - perhaps your
long foos aren't there to being with?

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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