From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Urban Gabor Newsgroups: gmane.emacs.help Subject: Two questions.... Date: Mon, 2 Jun 2003 09:02:14 +0200 (CEST) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2 X-Trace: main.gmane.org 1054537825 20945 80.91.224.249 (2 Jun 2003 07:10:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 07:10:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 09:10:24 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 19MjSZ-0005Rd-00 for ; Mon, 02 Jun 2003 09:10:23 +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 19MjSc-00065Z-C6 for gnu-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 03:10:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19MjRv-0005KE-Mi for help-gnu-emacs@gnu.org; Mon, 02 Jun 2003 03:09:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MjRS-0004ie-KF for help-gnu-emacs@gnu.org; Mon, 02 Jun 2003 03:09:15 -0400 Original-Received: from fmx4.freemail.hu ([195.228.242.224]) by monty-python.gnu.org with smtp (Exim 4.20) id 19MjRJ-0004Jp-1d for help-gnu-emacs@gnu.org; Mon, 02 Jun 2003 03:09:05 -0400 Original-Received: (qmail 28291 invoked from network); 2 Jun 2003 09:08:57 +0200 Original-Received: from fm1.freemail.hu (195.228.242.201) by fmx4.freemail.hu with SMTP; 2 Jun 2003 09:08:57 +0200 Original-Received: (qmail 97914 invoked by uid 336993); 2 Jun 2003 09:02:14 +0200 Original-To: Emacs mailing list X-Originating-IP: [193.226.228.149] X-HTTP-User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 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:10462 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10462 Hi, I have two questions.... 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... 2. I generaly do C/C++ and Perl editing with emacs. It would be very convenient to ha a generic macro, which insert an empty comment in the code. My problem is, that the formar of the comment is dependig on the programming language (mode) you use. Is there a genereal solution? Thanks in advance... Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside!