blob: cfd1982d108bd01a57698a378beec57c489afc21 [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);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000023char *did_set_breakindentopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010024int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000025char *did_set_browsedir(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010026int expand_set_browsedir(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000027char *did_set_bufhidden(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010028int expand_set_bufhidden(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000029char *did_set_buftype(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010030int expand_set_buftype(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000031char *did_set_casemap(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010032int expand_set_casemap(optexpand_T *args, int *numMatches, char_u ***matches);
33int expand_set_clipboard(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananc6ff21e2023-03-02 14:46:48 +000034char *did_set_chars_option(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010035int expand_set_chars_option(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000036char *did_set_cinoptions(optset_T *args);
37char *did_set_colorcolumn(optset_T *args);
38char *did_set_comments(optset_T *args);
39char *did_set_commentstring(optset_T *args);
40char *did_set_complete(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010041int expand_set_complete(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000042char *did_set_completeopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010043int expand_set_completeopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000044char *did_set_completepopup(optset_T *args);
45char *did_set_completeslash(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010046int expand_set_completeslash(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000047char *did_set_concealcursor(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010048int expand_set_concealcursor(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000049char *did_set_cpoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010050int expand_set_cpoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000051char *did_set_cryptkey(optset_T *args);
52char *did_set_cryptmethod(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010053int expand_set_cryptmethod(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000054char *did_set_cscopequickfix(optset_T *args);
55char *did_set_cursorlineopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010056int expand_set_cursorlineopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000057char *did_set_debug(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010058int expand_set_debug(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000059char *did_set_diffopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010060int expand_set_diffopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000061char *did_set_display(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010062int expand_set_display(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000063char *did_set_eadirection(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010064int expand_set_eadirection(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananc727b192023-03-03 12:26:15 +000065char *did_set_encoding(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010066int expand_set_encoding(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000067char *did_set_eventignore(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010068int expand_set_eventignore(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000069char *did_set_fileformat(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010070int expand_set_fileformat(optexpand_T *args, int *numMatches, char_u ***matches);
71char_u *get_fileformat_name(expand_T *xp, int idx);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000072char *did_set_fileformats(optset_T *args);
73char *did_set_filetype_or_syntax(optset_T *args);
74char *did_set_foldclose(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010075int expand_set_foldclose(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000076char *did_set_foldexpr(optset_T *args);
77char *did_set_foldignore(optset_T *args);
78char *did_set_foldmarker(optset_T *args);
79char *did_set_foldmethod(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010080int expand_set_foldmethod(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000081char *did_set_foldopen(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010082int expand_set_foldopen(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000083char *did_set_formatoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010084int expand_set_formatoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +000085char *did_set_guicursor(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000086char *did_set_guifont(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010087int expand_set_guifont(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000088char *did_set_guifontset(optset_T *args);
89char *did_set_guifontwide(optset_T *args);
90char *did_set_guiligatures(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000091char *did_set_guioptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010092int expand_set_guioptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +000093char *did_set_guitablabel(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000094char *did_set_helpfile(optset_T *args);
95char *did_set_helplang(optset_T *args);
96char *did_set_highlight(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +010097int expand_set_highlight(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +000098char *did_set_iconstring(optset_T *args);
99char *did_set_imactivatekey(optset_T *args);
100char *did_set_isopt(optset_T *args);
Yegappan Lakshmanan87018252023-09-20 20:20:04 +0200101char *did_set_jumpoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100102int expand_set_jumpoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000103char *did_set_keymap(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000104char *did_set_keymodel(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100105int expand_set_keymodel(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000106char *did_set_keyprotocol(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100107int expand_set_keyprotocol(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000108char *did_set_lispoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100109int expand_set_lispoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000110char *did_set_matchpairs(optset_T *args);
111char *did_set_mkspellmem(optset_T *args);
112char *did_set_mouse(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100113int expand_set_mouse(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000114char *did_set_mousemodel(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100115int expand_set_mousemodel(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000116char *did_set_mouseshape(optset_T *args);
117char *did_set_nrformats(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100118int expand_set_nrformats(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000119char *did_set_optexpr(optset_T *args);
120char *did_set_pastetoggle(optset_T *args);
121char *did_set_previewpopup(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100122int expand_set_popupoption(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000123char *did_set_printencoding(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100124int expand_set_printoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000125char *did_set_renderoptions(optset_T *args);
Yegappan Lakshmanan5da901b2023-02-27 12:47:47 +0000126char *did_set_rightleftcmd(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100127int expand_set_rightleftcmd(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000128char *did_set_rulerformat(optset_T *args);
129char *did_set_scrollopt(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100130int expand_set_scrollopt(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000131char *did_set_selection(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100132int expand_set_selection(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000133char *did_set_selectmode(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100134int expand_set_selectmode(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000135char *did_set_sessionoptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100136int expand_set_sessionoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000137char *did_set_shortmess(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100138int expand_set_shortmess(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000139char *did_set_showbreak(optset_T *args);
140char *did_set_showcmdloc(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100141int expand_set_showcmdloc(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000142char *did_set_signcolumn(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100143int expand_set_signcolumn(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000144char *did_set_spellcapcheck(optset_T *args);
145char *did_set_spellfile(optset_T *args);
146char *did_set_spelllang(optset_T *args);
147char *did_set_spelloptions(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100148int expand_set_spelloptions(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000149char *did_set_spellsuggest(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100150int expand_set_spellsuggest(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000151char *did_set_splitkeep(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100152int expand_set_splitkeep(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000153char *did_set_statusline(optset_T *args);
154char *did_set_swapsync(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100155int expand_set_swapsync(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000156char *did_set_switchbuf(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100157int expand_set_switchbuf(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000158char *did_set_tabline(optset_T *args);
159char *did_set_tagcase(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100160int expand_set_tagcase(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmanan5284b232023-03-04 19:57:32 +0000161char *did_set_term(optset_T *args);
Yegappan Lakshmananc727b192023-03-03 12:26:15 +0000162char *did_set_term_option(optset_T *args);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000163char *did_set_termwinkey(optset_T *args);
164char *did_set_termwinsize(optset_T *args);
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000165char *did_set_termwintype(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100166int expand_set_termwintype(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000167char *did_set_titlestring(optset_T *args);
168char *did_set_toolbar(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100169int expand_set_toolbar(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000170char *did_set_toolbariconsize(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100171int expand_set_toolbariconsize(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000172char *did_set_ttymouse(optset_T *args);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100173int expand_set_ttymouse(optexpand_T *args, int *numMatches, char_u ***matches);
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000174char *did_set_varsofttabstop(optset_T *args);
175char *did_set_vartabstop(optset_T *args);
Yegappan Lakshmananad608982023-03-01 12:44:06 +0000176char *did_set_verbosefile(optset_T *args);
177char *did_set_viewoptions(optset_T *args);
178char *did_set_viminfo(optset_T *args);
179char *did_set_virtualedit(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200180int expand_set_virtualedit(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100181char *did_set_whichwrap(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200182int expand_set_whichwrap(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100183char *did_set_wildmode(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200184int expand_set_wildmode(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100185char *did_set_wildoptions(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200186int expand_set_wildoptions(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100187char *did_set_winaltkeys(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200188int expand_set_winaltkeys(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100189char *did_set_wincolor(optset_T *args);
Yee Cheng Chin900894b2023-09-29 20:42:32 +0200190int expand_set_wincolor(optexpand_T *args, int *numMatches, char_u ***matches);
Christian Brabandt6a950da2024-01-01 20:18:36 +0100191char *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 +0200192int check_ff_value(char_u *p);
Christian Brabandt9aee8ec2022-12-16 16:41:23 +0000193void save_clear_shm_value(void);
194void restore_shm_value(void);
Bram Moolenaardac13472019-09-16 21:06:21 +0200195/* vim: set ft=c : */