1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00

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.
This commit is contained in:
Mauro Aranda 2025-03-09 19:07:40 -03:00
parent 731af8747c
commit 0861da138b
3 changed files with 93 additions and 10 deletions

View file

@ -4392,6 +4392,10 @@ struct frame_parm_table {
int sym;
};
/* If you're adding a new frame parameter here, consider if it makes sense
for the user to customize it via `initial-frame-alist' and the like.
If it does, add it to `frame--special-parameters' in frame.el, in order
to provide completion in the Customize UI for the new parameter. */
static const struct frame_parm_table frame_parms[] =
{
{"auto-raise", SYMBOL_INDEX (Qauto_raise)},