all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Completing environmental variable names?
Date: Wed, 01 Apr 2015 15:30:15 +0200	[thread overview]
Message-ID: <87mw2sasd4.fsf@wanadoo.es> (raw)
In-Reply-To: BC5672F8AD4C054BAF167C9801500D1A010AD9D20F@USSLMMBX003.net.plm.eds.com

"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.




  reply	other threads:[~2015-04-01 13:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 12:34 Completing environmental variable names? Ludwig, Mark
2015-04-01 13:30 ` Óscar Fuentes [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mw2sasd4.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.