blob: dc1fb0a10cc51f9de54b790b55963693ba186137 [file] [log] [blame]
Bram Moolenaardac13472019-09-16 21:06:21 +02001/* optionstr.c */
2void didset_string_options(void);
zeertzjq269aa2b2022-11-28 11:36:50 +00003void trigger_optionset_string(int opt_idx, int opt_flags, char_u *oldval, char_u *oldval_l, char_u *oldval_g, char_u *newval);
Bram Moolenaardac13472019-09-16 21:06:21 +02004void check_buf_options(buf_T *buf);
5void free_string_option(char_u *p);
6void clear_string_option(char_u **pp);
7void check_string_option(char_u **pp);
8void set_string_option_direct(char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
9void set_string_option_direct_in_win(win_T *wp, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
10void set_string_option_direct_in_buf(buf_T *buf, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
Mike Williams620f0112023-12-05 15:36:06 +010011char *set_string_option(int opt_idx, char_u *value, int opt_flags, char *errbuf, size_t errbuflen);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000012char *did_set_ambiwidth(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010013int expand_set_ambiwidth(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000014char *did_set_background(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010015int expand_set_background(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000016char *did_set_backspace(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010017int expand_set_backspace(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000018char *did_set_backupcopy(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010019int expand_set_backupcopy(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000020char *did_set_backupext_or_patchmode(optset_T *args);
21char *did_set_belloff(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010022int expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches);
zeertzjqeac3fdc2024-02-03 18:08:09 +010023char *did_set_breakat(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000024char *did_set_breakindentopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010025int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000026char *did_set_browsedir(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010027int expand_set_browsedir(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000028char *did_set_bufhidden(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010029int expand_set_bufhidden(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000030char *did_set_buftype(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010031int expand_set_buftype(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000032char *did_set_casemap(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010033int expand_set_casemap(optexpand_T *args, int *numMatches, char_u ***matches);
34int expand_set_clipboard(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananc6ff21e2023-03-02 14:46:48 +000035char *did_set_chars_option(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010036int expand_set_chars_option(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000037char *did_set_cinoptions(optset_T *args);
38char *did_set_colorcolumn(optset_T *args);
39char *did_set_comments(optset_T *args);
40char *did_set_commentstring(optset_T *args);
41char *did_set_complete(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010042int expand_set_complete(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000043char *did_set_completeopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010044int expand_set_completeopt(optexpand_T *args, int *numMatches, char_u ***matches);
glepnirf31cfa22025-03-06 21:59:13 +010045char *did_set_completefuzzycollect(optset_T *args);
zeertzjq53d59ec2025-03-07 19:09:09 +010046int expand_set_completefuzzycollect(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanand2232d72025-03-24 20:36:14 +010047char *did_set_completeitemalign(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000048char *did_set_completepopup(optset_T *args);
49char *did_set_completeslash(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010050int expand_set_completeslash(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000051char *did_set_concealcursor(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010052int expand_set_concealcursor(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000053char *did_set_cpoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010054int expand_set_cpoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000055char *did_set_cryptkey(optset_T *args);
56char *did_set_cryptmethod(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010057int expand_set_cryptmethod(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000058char *did_set_cscopequickfix(optset_T *args);
59char *did_set_cursorlineopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010060int expand_set_cursorlineopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000061char *did_set_debug(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010062int expand_set_debug(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000063char *did_set_diffopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010064int expand_set_diffopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000065char *did_set_display(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010066int expand_set_display(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000067char *did_set_eadirection(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010068int expand_set_eadirection(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananc727b192023-03-03 12:26:15 +000069char *did_set_encoding(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010070int expand_set_encoding(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000071char *did_set_eventignore(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010072int expand_set_eventignore(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000073char *did_set_fileformat(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010074int expand_set_fileformat(optexpand_T *args, int *numMatches, char_u ***matches);
75char_u *get_fileformat_name(expand_T *xp, int idx);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000076char *did_set_fileformats(optset_T *args);
77char *did_set_filetype_or_syntax(optset_T *args);
78char *did_set_foldclose(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010079int expand_set_foldclose(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000080char *did_set_foldexpr(optset_T *args);
81char *did_set_foldignore(optset_T *args);
82char *did_set_foldmarker(optset_T *args);
83char *did_set_foldmethod(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010084int expand_set_foldmethod(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000085char *did_set_foldopen(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010086int expand_set_foldopen(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000087char *did_set_formatoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010088int expand_set_formatoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +000089char *did_set_guicursor(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000090char *did_set_guifont(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010091int expand_set_guifont(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000092char *did_set_guifontset(optset_T *args);
93char *did_set_guifontwide(optset_T *args);
94char *did_set_guiligatures(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000095char *did_set_guioptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010096int expand_set_guioptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000097char *did_set_guitablabel(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000098char *did_set_helpfile(optset_T *args);
99char *did_set_helplang(optset_T *args);
100char *did_set_highlight(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100101int expand_set_highlight(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000102char *did_set_iconstring(optset_T *args);
103char *did_set_imactivatekey(optset_T *args);
Milly5e7a6a42024-10-22 22:27:19 +0200104char *did_set_iskeyword(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000105char *did_set_isopt(optset_T *args);
Yegappan Lakshmanan87018252023-09-20 20:20:04 +0200106char *did_set_jumpoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100107int expand_set_jumpoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000108char *did_set_keymap(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000109char *did_set_keymodel(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100110int expand_set_keymodel(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000111char *did_set_keyprotocol(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100112int expand_set_keyprotocol(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000113char *did_set_lispoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100114int expand_set_lispoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000115char *did_set_matchpairs(optset_T *args);
Christian Brabandt51d4d842024-12-06 17:26:25 +0100116char *did_set_messagesopt(optset_T *args);
117int expand_set_messagesopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000118char *did_set_mkspellmem(optset_T *args);
119char *did_set_mouse(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100120int expand_set_mouse(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000121char *did_set_mousemodel(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100122int expand_set_mousemodel(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000123char *did_set_mouseshape(optset_T *args);
124char *did_set_nrformats(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100125int expand_set_nrformats(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000126char *did_set_optexpr(optset_T *args);
127char *did_set_pastetoggle(optset_T *args);
128char *did_set_previewpopup(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100129int expand_set_popupoption(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000130char *did_set_printencoding(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100131int expand_set_printoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000132char *did_set_renderoptions(optset_T *args);
Yegappan Lakshmanan5da901b2023-02-27 12:47:47 +0000133char *did_set_rightleftcmd(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100134int expand_set_rightleftcmd(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000135char *did_set_rulerformat(optset_T *args);
136char *did_set_scrollopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100137int expand_set_scrollopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000138char *did_set_selection(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100139int expand_set_selection(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000140char *did_set_selectmode(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100141int expand_set_selectmode(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000142char *did_set_sessionoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100143int expand_set_sessionoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000144char *did_set_shortmess(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100145int expand_set_shortmess(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000146char *did_set_showbreak(optset_T *args);
147char *did_set_showcmdloc(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100148int expand_set_showcmdloc(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000149char *did_set_signcolumn(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100150int expand_set_signcolumn(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000151char *did_set_spellcapcheck(optset_T *args);
152char *did_set_spellfile(optset_T *args);
153char *did_set_spelllang(optset_T *args);
154char *did_set_spelloptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100155int expand_set_spelloptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000156char *did_set_spellsuggest(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100157int expand_set_spellsuggest(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000158char *did_set_splitkeep(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100159int expand_set_splitkeep(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000160char *did_set_statusline(optset_T *args);
161char *did_set_swapsync(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100162int expand_set_swapsync(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000163char *did_set_switchbuf(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100164int expand_set_switchbuf(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanand2232d72025-03-24 20:36:14 +0100165char *did_set_tabclose(optset_T *args);
LemonBoy5247b0b2024-07-12 19:30:58 +0200166int expand_set_tabclose(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000167char *did_set_tabline(optset_T *args);
168char *did_set_tagcase(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100169int expand_set_tagcase(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanan5284b232023-03-04 19:57:32 +0000170char *did_set_term(optset_T *args);
Yegappan Lakshmananc727b192023-03-03 12:26:15 +0000171char *did_set_term_option(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000172char *did_set_termwinkey(optset_T *args);
173char *did_set_termwinsize(optset_T *args);
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000174char *did_set_termwintype(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100175int expand_set_termwintype(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000176char *did_set_titlestring(optset_T *args);
177char *did_set_toolbar(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100178int expand_set_toolbar(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000179char *did_set_toolbariconsize(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100180int expand_set_toolbariconsize(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000181char *did_set_ttymouse(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100182int expand_set_ttymouse(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000183char *did_set_varsofttabstop(optset_T *args);
184char *did_set_vartabstop(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000185char *did_set_verbosefile(optset_T *args);
186char *did_set_viewoptions(optset_T *args);
187char *did_set_viminfo(optset_T *args);
188char *did_set_virtualedit(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200189int expand_set_virtualedit(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100190char *did_set_whichwrap(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200191int expand_set_whichwrap(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100192char *did_set_wildmode(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200193int expand_set_wildmode(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100194char *did_set_wildoptions(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200195int expand_set_wildoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100196char *did_set_winaltkeys(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200197int expand_set_winaltkeys(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100198char *did_set_wincolor(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200199int expand_set_wincolor(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100200char *did_set_string_option(int opt_idx, char_u **varp, char_u *oldval, char_u *value, char *errbuf, size_t errbuflen, int opt_flags, set_op_T op, int *value_checked);
Bram Moolenaardac13472019-09-16 21:06:21 +0200201int check_ff_value(char_u *p);
Christian Brabandt9aee8ec2022-12-16 16:41:23 +0000202void save_clear_shm_value(void);
203void restore_shm_value(void);
Christian Brabandt1a741d32025-03-01 16:30:33 +0100204void export_myvimdir(void);
Bram Moolenaardac13472019-09-16 21:06:21 +0200205/* vim: set ft=c : */