From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Holger Sparr Newsgroups: gmane.emacs.help Subject: Re: Two questions.... Date: Mon, 02 Jun 2003 10:22:07 +0200 Organization: Dresden University of Technology, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054542972 7246 80.91.224.249 (2 Jun 2003 08:36:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 08:36:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 10:36:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Mkna-0001si-00 for ; Mon, 02 Jun 2003 10:36:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Mkmr-0001kq-Og for gnu-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 04:35:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!news-mue1.dfn.de!news-ber1.dfn.de!news.urz.tu-dresden.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: mfkpc34.mw.tu-dresden.de Mail-Copies-To: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:JWXadurNcAKKFHZQojkArmKiF0Y= Original-Xref: shelby.stanford.edu gnu.emacs.help:113972 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10466 On Mon, 2 Jun 2003, Urban Gabor wrote: > 1. I would like to set up an Emacs-variable, that stores the > contents of an environment variable. The reason is, tha I > want to insert the $(HOSTNAME) into edited files with one > keystroke... You can use: ,----[ C-h f getenv RET ] | getenv is an interactive compiled Lisp function in `env'. | (getenv VARIABLE) | | Get the value of environment variable VARIABLE. | VARIABLE should be a string. Value is nil if VARIABLE is undefined in | the environment. Otherwise, value is a string. | | This function consults the variable `process-environment' | for its value. `---- --