Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
926cd98c
Commit
926cd98c
authored
Aug 19, 2010
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nt/addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
parent
cc477da7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
nt/ChangeLog
nt/ChangeLog
+4
-0
nt/addpm.c
nt/addpm.c
+4
-3
No files found.
nt/ChangeLog
View file @
926cd98c
2010-08-19 Juanma Barranquero <lekktu@gmail.com>
* addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
2010-08-12 Jason Rumney <jasonr@gnu.org>
* addpm.c (add_registry): Set path for runemacs.exe to use.
...
...
nt/addpm.c
View file @
926cd98c
...
...
@@ -113,7 +113,7 @@ add_registry (char *path)
emacs_path
=
(
char
*
)
alloca
(
len
);
sprintf
(
emacs_path
,
"%s
\\
bin
\\
emacs.exe"
,
path
);
RegSetValueEx
(
hrootkey
,
NULL
,
0
,
REG_SZ
,
emacs_path
,
len
);
RegSetValueEx
(
hrootkey
,
NULL
,
0
,
REG_
EXPAND_
SZ
,
emacs_path
,
len
);
/* Look for a GTK installation. If found, add it to the library search
path for Emacs so that the image libraries it provides are available
...
...
@@ -135,7 +135,8 @@ add_registry (char *path)
len
=
strlen
(
path
)
+
5
+
size
;
dll_paths
=
(
char
*
)
alloca
(
size
+
strlen
(
path
)
+
1
);
sprintf
(
dll_paths
,
"%s
\\
bin;%s"
,
path
,
gtk_path
);
RegSetValueEx
(
hrootkey
,
"Path"
,
0
,
REG_SZ
,
dll_paths
,
len
);
RegSetValueEx
(
hrootkey
,
"Path"
,
0
,
REG_EXPAND_SZ
,
dll_paths
,
len
);
/* Set the same path for runemacs.exe, as the Explorer shell
looks this up, so the above does not take effect when
...
...
@@ -145,7 +146,7 @@ add_registry (char *path)
KEY_WRITE
,
NULL
,
&
runemacs_key
,
NULL
)
==
ERROR_SUCCESS
)
{
RegSetValueEx
(
runemacs_key
,
"Path"
,
0
,
REG_SZ
,
RegSetValueEx
(
runemacs_key
,
"Path"
,
0
,
REG_
EXPAND_
SZ
,
dll_paths
,
len
);
RegCloseKey
(
runemacs_key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment