summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1996-05-03 18:19:05 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1996-05-03 18:19:05 +0000
commit648d73eaa9bebf912a723c26d96de91af7135335 (patch)
tree2bd095ad736830e60f8de679b289b793837790e6
parent802dbdbcfc1a0dd01945b045edec5113dd6e312f (diff)
downloademacs-648d73eaa9bebf912a723c26d96de91af7135335.tar.gz
(REG_ROOT): Don't use a trailing backslash.
(env_vars): Rename field emacs_path to emacs_dir. (main): Add link to runemacs instead of emacs.
-rw-r--r--nt/addpm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nt/addpm.c b/nt/addpm.c
index 4255787224f..db492cb8820 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -44,7 +44,7 @@ DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
DdeClientTransaction (str, strlen (str)+1, HConversation, (HSZ)NULL, \
CF_TEXT, XTYP_EXECUTE, 30000, NULL)
-#define REG_ROOT "SOFTWARE\\GNU\\Emacs\\"
+#define REG_ROOT "SOFTWARE\\GNU\\Emacs"
static struct entry
{
@@ -53,14 +53,14 @@ static struct entry
}
env_vars[] =
{
- {"emacs_path", NULL},
- {"EMACSLOADPATH", "%emacs_path%\\lisp"},
+ {"emacs_dir", NULL},
+ {"EMACSLOADPATH", "%emacs_dir%\\lisp"},
{"SHELL", "cmd"},
- {"EMACSDATA", "%emacs_path%\\etc"},
- {"EMACSPATH", "%emacs_path%\\bin"},
- {"EMACSLOCKDIR", "%emacs_path%\\lock"},
- {"INFOPATH", "%emacs_path%\\info"},
- {"EMACSDOC", "%emacs_path%\\etc"},
+ {"EMACSDATA", "%emacs_dir%\\etc"},
+ {"EMACSPATH", "%emacs_dir%\\bin"},
+ {"EMACSLOCKDIR", "%emacs_dir%\\lock"},
+ {"INFOPATH", "%emacs_dir%\\info"},
+ {"EMACSDOC", "%emacs_dir%\\etc"},
{"TERM", "cmd"}
};
@@ -128,7 +128,7 @@ main (argc, argv)
{
DdeCommand ("[CreateGroup (Gnu Emacs)]");
DdeCommand ("[ReplaceItem (Emacs)]");
- sprintf (additem, "[AddItem (%s\\bin\\emacs.%s, Emacs%c%s)]",
+ sprintf (additem, "[AddItem (%s\\bin\\runemacs.%s, Emacs%c%s)]",
argv[1], lpext, (argc>2 ? ',' : ' '),
(argc>2 ? argv[2] : ""));
DdeCommand (additem);