aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2018-05-29 20:52:17 +0300
committerEli Zaretskii2018-05-29 20:52:17 +0300
commit5be83e343f9f0f3487793b54ff95bc89ee6b824a (patch)
treede6c30ce8ef10deb795a9d391a9769acda6c92f0 /etc
parentfd6f08840eb095465dfe555785eee228306ab876 (diff)
downloademacs-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/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5ac803eec4b..ea4a657cba9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -682,6 +682,13 @@ to 't' would enable the macOS proxy icon has been replaced with a
682separate variable, 'ns-use-proxy-icon'. 'frame-title-format' will now 682separate variable, 'ns-use-proxy-icon'. 'frame-title-format' will now
683work as on other platforms. 683work as on other platforms.
684 684
685---
686** New primitive 'w32-read-registry'.
687This primitive lets Lisp programs access the MS-Windows Registry by
688retrieving values stored under a given key. It is intended to be used
689for supporting features such as XDG-like location of important files
690and directories.
691
685 692
686---------------------------------------------------------------------- 693----------------------------------------------------------------------
687This file is part of GNU Emacs. 694This file is part of GNU Emacs.