aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMauro Aranda2025-03-09 19:07:40 -0300
committerMauro Aranda2025-03-09 19:07:40 -0300
commit0861da138b91b936a1b307fd59622d98f9b22cc6 (patch)
tree5cd6be7aeea6a4685dd0087b005b264c0bb66d97 /src
parent731af8747cb07aea532d9e9fd246857a88625a44 (diff)
downloademacs-0861da138b91b936a1b307fd59622d98f9b22cc6.tar.gz
emacs-0861da138b91b936a1b307fd59622d98f9b22cc6.zip
Provide better completion for customizing frame parameters
* lisp/frame.el (frame--special-parameters): New const. (frame--complete-parameter-value): New function. (initial-frame-alist, minibuffer-frame-alist): Use them in :type. (Bug#39143) * lisp/cus-start.el (default-frame-alist): Use them here as well. * src/frame.c (frame_parms): Add comment to try to keep frame--special-parameters updated.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 1a5c2f5c3d4..b386839f34c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4392,6 +4392,10 @@ struct frame_parm_table {
4392 int sym; 4392 int sym;
4393}; 4393};
4394 4394
4395/* If you're adding a new frame parameter here, consider if it makes sense
4396 for the user to customize it via `initial-frame-alist' and the like.
4397 If it does, add it to `frame--special-parameters' in frame.el, in order
4398 to provide completion in the Customize UI for the new parameter. */
4395static const struct frame_parm_table frame_parms[] = 4399static const struct frame_parm_table frame_parms[] =
4396{ 4400{
4397 {"auto-raise", SYMBOL_INDEX (Qauto_raise)}, 4401 {"auto-raise", SYMBOL_INDEX (Qauto_raise)},