Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* option.c */ |
Bram Moolenaar | 0726870 | 2018-03-01 21:57:32 +0100 | [diff] [blame] | 2 | void set_init_1(int clean_arg); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 3 | void set_string_default(char *name, char_u *val); |
| 4 | void set_number_default(char *name, long val); |
Bram Moolenaar | 4645104 | 2019-08-24 15:50:46 +0200 | [diff] [blame] | 5 | void set_local_options_default(win_T *wp, int do_buffer); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 6 | void free_all_options(void); |
| 7 | void set_init_2(void); |
| 8 | void set_init_3(void); |
| 9 | void set_helplang_default(char_u *lang); |
| 10 | void init_gui_options(void); |
| 11 | void set_title_defaults(void); |
| 12 | int do_set(char_u *arg, int opt_flags); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 13 | void did_set_option(int opt_idx, int opt_flags, int new_value, int value_checked); |
Bram Moolenaar | dbe948d | 2017-07-23 22:50:51 +0200 | [diff] [blame] | 14 | int string_to_key(char_u *arg, int multi_byte); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 15 | char *check_cedit(void); |
| 16 | void did_set_title(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 17 | void set_options_bin(int oldval, int newval, int opt_flags); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 18 | void check_options(void); |
Bram Moolenaar | 35bc7d6 | 2018-10-02 14:45:10 +0200 | [diff] [blame] | 19 | int get_term_opt_idx(char_u **p); |
| 20 | int set_term_option_alloced(char_u **p); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 21 | int was_set_insecurely(char_u *opt, int opt_flags); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 22 | void redraw_titles(void); |
Bram Moolenaar | e677df8 | 2019-09-02 22:31:11 +0200 | [diff] [blame] | 23 | int valid_name(char_u *val, char *allowed); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 24 | char *check_clipboard_option(void); |
| 25 | void set_option_sctx_idx(int opt_idx, int opt_flags, sctx_T script_ctx); |
Bram Moolenaar | 35bc7d6 | 2018-10-02 14:45:10 +0200 | [diff] [blame] | 26 | void set_term_option_sctx_idx(char *name, int opt_idx); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 27 | void check_redraw(long_u flags); |
| 28 | int findoption(char_u *arg); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 29 | int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags); |
| 30 | int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from); |
Bram Moolenaar | 010ee96 | 2019-09-25 20:37:36 +0200 | [diff] [blame] | 31 | char_u *option_iter_next(void **option, int opt_type); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 32 | long_u get_option_flags(int opt_idx); |
| 33 | void set_option_flag(int opt_idx, long_u flag); |
| 34 | void clear_option_flag(int opt_idx, long_u flag); |
| 35 | int is_global_option(int opt_idx); |
| 36 | int is_global_local_option(int opt_idx); |
| 37 | int is_window_local_option(int opt_idx); |
| 38 | int is_hidden_option(int opt_idx); |
| 39 | int is_crypt_key_option(int opt_idx); |
Bram Moolenaar | f9e3e09 | 2019-01-13 23:38:42 +0100 | [diff] [blame] | 40 | char *set_option_value(char_u *name, long number, char_u *string, int opt_flags); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 41 | char_u *get_term_code(char_u *tname); |
| 42 | char_u *get_highlight_default(void); |
| 43 | char_u *get_encoding_default(void); |
| 44 | int makeset(FILE *fd, int opt_flags, int local_only); |
| 45 | int makefoldset(FILE *fd); |
| 46 | void clear_termoptions(void); |
| 47 | void free_termoptions(void); |
| 48 | void free_one_termoption(char_u *var); |
| 49 | void set_term_defaults(void); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 50 | int istermoption_idx(int opt_idx); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 51 | void unset_global_local_option(char_u *name, void *from); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 52 | char_u *get_option_varp_scope(int opt_idx, int opt_flags); |
| 53 | char_u *get_option_var(int opt_idx); |
| 54 | char_u *get_option_fullname(int opt_idx); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 55 | char_u *get_equalprg(void); |
| 56 | void win_copy_options(win_T *wp_from, win_T *wp_to); |
Bram Moolenaar | 010ee96 | 2019-09-25 20:37:36 +0200 | [diff] [blame] | 57 | void after_copy_winopt(win_T *wp); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 58 | void copy_winopt(winopt_T *from, winopt_T *to); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 59 | void clear_winopt(winopt_T *wop); |
| 60 | void buf_copy_options(buf_T *buf, int flags); |
| 61 | void reset_modifiable(void); |
| 62 | void set_iminsert_global(void); |
| 63 | void set_imsearch_global(void); |
| 64 | void set_context_in_set_cmd(expand_T *xp, char_u *arg, int opt_flags); |
| 65 | int ExpandSettings(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file); |
| 66 | int ExpandOldSetting(int *num_file, char_u ***file); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 67 | int has_format_option(int x); |
| 68 | int shortmess(int x); |
| 69 | void vimrc_found(char_u *fname, char_u *envname); |
| 70 | void change_compatible(int on); |
| 71 | int option_was_set(char_u *name); |
Bram Moolenaar | fe8ef98 | 2018-09-13 20:31:54 +0200 | [diff] [blame] | 72 | int reset_option_was_set(char_u *name); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 73 | void fill_breakat_flags(void); |
| 74 | int check_opt_wim(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 75 | int can_bs(int what); |
| 76 | void save_file_ff(buf_T *buf); |
| 77 | int file_ff_differs(buf_T *buf, int ignore_empty); |
Bram Moolenaar | 375e339 | 2019-01-31 18:26:10 +0100 | [diff] [blame] | 78 | long get_scrolloff_value(void); |
| 79 | long get_sidescrolloff_value(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 80 | void find_mps_values(int *initc, int *findc, int *backwards, int switchit); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 81 | int briopt_check(win_T *wp); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 82 | unsigned int get_bkc_value(buf_T *buf); |
Bram Moolenaar | 95ec9d6 | 2016-08-12 18:29:59 +0200 | [diff] [blame] | 83 | int signcolumn_on(win_T *wp); |
Bram Moolenaar | b5ae48e | 2016-08-12 22:23:25 +0200 | [diff] [blame] | 84 | dict_T *get_winbuf_options(int bufopt); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 85 | int fill_culopt_flags(char_u *val, win_T *wp); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 86 | /* vim: set ft=c : */ |