Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!whuts!mtune!rutgers!sri-spam!ames!aurora!labrea!rocky!lewis From: lewis@rocky.STANFORD.EDU (Bil Lewis) Newsgroups: comp.emacs Subject: Re: setq load-path bug in GNU Emacs? - (nf) Message-ID: <993@rocky.STANFORD.EDU> Date: 26 Jan 88 17:49:31 GMT References: <2000001@gmdka.UUCP> Organization: Stanford University Computer Science Department Lines: 21 In-reply-to: fuchs@gmdka's message of 24 Jan 88 17:44:00 GMT Posting-Front-End: GNU Emacs 18.36.1 of Fri Feb 6 1987 on rocky (berkeley-unix) Harald, There is this function: substitute-in-file-name: Substitute environment variables referred to in STRING. A $ begins a request to substitute; the env variable name is the alphanumeric characters after the $, or else is surrounded by braces. If a ~ appears following a /, everything through that / is discarded. On VMS, $ substitution is not done; this function does little and only duplicates what expand-file-name does. which should solve your problem: (setq load-path (cons (substitute-in-file-name "$HOME/emacs") load-path)) => ("/user/lewis/emacs" "/usr/stanford/lib/gnuemacs/lisp") -Bil --