diff options
| author | Eli Zaretskii | 2018-05-29 20:52:17 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-05-29 20:52:17 +0300 |
| commit | 5be83e343f9f0f3487793b54ff95bc89ee6b824a (patch) | |
| tree | de6c30ce8ef10deb795a9d391a9769acda6c92f0 /etc | |
| parent | fd6f08840eb095465dfe555785eee228306ab876 (diff) | |
| download | emacs-5be83e343f9f0f3487793b54ff95bc89ee6b824a.tar.gz emacs-5be83e343f9f0f3487793b54ff95bc89ee6b824a.zip | |
Allow access to MS-Windows Registry from Lisp programs
* src/w32.c (g_b_init_reg_open_key_ex_w)
(g_b_init_reg_query_value_ex_w)
(g_b_init_expand_environment_strings_w): New init flags.
(globals_of_w32): Initialize them at startup.
(RegOpenKeyExW_Proc, RegQueryValueExW_Proc)
(ExpandEnvironmentStringsW_Proc): New function typedefs.
(reg_open_key_ex_w, reg_query_value_ex_w)
(expand_environment_strings_w): New wrapper function.
(w32_read_registry): New function.
* src/w32fns.c (Fw32_read_registry) [WINDOWSNT]: New primitive.
(syms_of_w32fns) [WINDOWSNT]: Defsubr it. DEFSYM "HKLM", "HKCU",
etc. root keys.
* etc/NEWS: Mention the new primitive.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -682,6 +682,13 @@ to 't' would enable the macOS proxy icon has been replaced with a | |||
| 682 | separate variable, 'ns-use-proxy-icon'. 'frame-title-format' will now | 682 | separate variable, 'ns-use-proxy-icon'. 'frame-title-format' will now |
| 683 | work as on other platforms. | 683 | work as on other platforms. |
| 684 | 684 | ||
| 685 | --- | ||
| 686 | ** New primitive 'w32-read-registry'. | ||
| 687 | This primitive lets Lisp programs access the MS-Windows Registry by | ||
| 688 | retrieving values stored under a given key. It is intended to be used | ||
| 689 | for supporting features such as XDG-like location of important files | ||
| 690 | and directories. | ||
| 691 | |||
| 685 | 692 | ||
| 686 | ---------------------------------------------------------------------- | 693 | ---------------------------------------------------------------------- |
| 687 | This file is part of GNU Emacs. | 694 | This file is part of GNU Emacs. |