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:
parent
731af8747c
commit
0861da138b
3 changed files with 93 additions and 10 deletions
|
|
@ -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)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue