* Completing environmental variable names?
@ 2015-04-01 12:34 Ludwig, Mark
2015-04-01 13:30 ` Óscar Fuentes
[not found] ` <mailman.3129.1427895033.31049.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Ludwig, Mark @ 2015-04-01 12:34 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
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).
I've become accustomed to this behavior in the T C Shell,
and frown when my beloved Emacs is less capable....
Thanks,
--
Mark Ludwig
Lifecycle Coll
Product Lifecycle Management
Siemens Industry Sector
Siemens Product Lifecycle Management Software Inc.
5939 Rice Creek Parkway
Shoreview, MN 55126 United States
Tel. :+1 (651) 855-6140
Fax :+1 (651) 855-6280
ludwig.mark@siemens.com
www.siemens.com/plm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Completing environmental variable names?
2015-04-01 12:34 Completing environmental variable names? Ludwig, Mark
@ 2015-04-01 13:30 ` Óscar Fuentes
[not found] ` <mailman.3129.1427895033.31049.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2015-04-01 13:30 UTC (permalink / raw)
To: help-gnu-emacs
"Ludwig, Mark" <ludwig.mark@siemens.com> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Completing environmental variable names?
[not found] ` <mailman.3129.1427895033.31049.help-gnu-emacs@gnu.org>
@ 2015-04-01 23:12 ` Emanuel Berg
2015-04-01 23:24 ` Ludwig, Mark
[not found] ` <mailman.3166.1427930697.31049.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Emanuel Berg @ 2015-04-01 23:12 UTC (permalink / raw)
To: help-gnu-emacs
Ó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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Completing environmental variable names?
2015-04-01 23:12 ` Emanuel Berg
@ 2015-04-01 23:24 ` Ludwig, Mark
[not found] ` <mailman.3166.1427930697.31049.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Ludwig, Mark @ 2015-04-01 23:24 UTC (permalink / raw)
To: Emanuel Berg, help-gnu-emacs@gnu.org
"Emanuel Berg" wrote:
> 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?
(*Sigh*) Oh, it works just fine! The problem was apparently
between the keyboard and the chair. I don't know what I did
to conclude it didn't work.
I can't believe how stupid my few posts to this list have
been this week. I must seem like a complete n00b. I've
only been using EMACS/Emacs for 35 years....
Hoping to contribute more wheat and less chaff going forward,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Completing environmental variable names?
[not found] ` <mailman.3166.1427930697.31049.help-gnu-emacs@gnu.org>
@ 2015-04-02 0:08 ` Emanuel Berg
0 siblings, 0 replies; 5+ messages in thread
From: Emanuel Berg @ 2015-04-02 0:08 UTC (permalink / raw)
To: help-gnu-emacs
"Ludwig, Mark" <ludwig.mark@siemens.com> writes:
> I can't believe how stupid my few posts to this list
> have been this week. I must seem like a complete
> n00b. I've only been using EMACS/Emacs for 35
> years...
Ha ha :) Yes, it is always a humerus situation when
one looks for something, can't find it, describes it
in great detail and then turns out it was there all
along, and precisely like that, as well!
Luckily collective memory is super-short as it should,
all posts basically both written and read as had it
been the first that day, or decade all the same.
As for me, I'll be back tomorrow night, or a decade
from now, perhaps...
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-02 0:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 12:34 Completing environmental variable names? Ludwig, Mark
2015-04-01 13:30 ` Óscar Fuentes
[not found] ` <mailman.3129.1427895033.31049.help-gnu-emacs@gnu.org>
2015-04-01 23:12 ` Emanuel Berg
2015-04-01 23:24 ` Ludwig, Mark
[not found] ` <mailman.3166.1427930697.31049.help-gnu-emacs@gnu.org>
2015-04-02 0:08 ` Emanuel Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).