Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* mark.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | int setmark(int c); |
| 3 | int setmark_pos(int c, pos_T *pos, int fnum); |
| 4 | void setpcmark(void); |
| 5 | void checkpcmark(void); |
| 6 | pos_T *movemark(int count); |
| 7 | pos_T *movechangelist(int count); |
| 8 | pos_T *getmark_buf(buf_T *buf, int c, int changefile); |
| 9 | pos_T *getmark(int c, int changefile); |
| 10 | pos_T *getmark_buf_fnum(buf_T *buf, int c, int changefile, int *fnum); |
| 11 | pos_T *getnextmark(pos_T *startpos, int dir, int begin_line); |
Bram Moolenaar | a7e18d2 | 2018-02-11 14:29:49 +0100 | [diff] [blame] | 12 | void fname2fnum(xfmark_T *fm); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 13 | void fmarks_check_names(buf_T *buf); |
| 14 | int check_mark(pos_T *pos); |
| 15 | void clrallmarks(buf_T *buf); |
| 16 | char_u *fm_getname(fmark_T *fmark, int lead_len); |
| 17 | void do_marks(exarg_T *eap); |
| 18 | void ex_delmarks(exarg_T *eap); |
| 19 | void ex_jumps(exarg_T *eap); |
Bram Moolenaar | 2d35899 | 2016-06-12 21:20:54 +0200 | [diff] [blame] | 20 | void ex_clearjumps(exarg_T *eap); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 21 | void ex_changes(exarg_T *eap); |
| 22 | void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); |
Bram Moolenaar | 88d298a | 2017-03-14 21:53:58 +0100 | [diff] [blame] | 23 | void mark_adjust_nofold(linenr_T line1, linenr_T line2, long amount, long amount_after); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 24 | void mark_col_adjust(linenr_T lnum, colnr_T mincol, long lnum_amount, long col_amount); |
| 25 | void copy_jumplist(win_T *from, win_T *to); |
| 26 | void free_jumplist(win_T *wp); |
Bram Moolenaar | 4867974 | 2018-02-13 13:33:29 +0100 | [diff] [blame] | 27 | void cleanup_jumplist(win_T *wp, int loadfiles); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 28 | void set_last_cursor(win_T *win); |
| 29 | void free_all_marks(void); |
| 30 | int read_viminfo_filemark(vir_T *virp, int force); |
Bram Moolenaar | 2d35899 | 2016-06-12 21:20:54 +0200 | [diff] [blame] | 31 | void prepare_viminfo_marks(void); |
| 32 | void finish_viminfo_marks(void); |
| 33 | void handle_viminfo_mark(garray_T *values, int force); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 34 | void write_viminfo_filemarks(FILE *fp); |
| 35 | int removable(char_u *name); |
Bram Moolenaar | ab9c89b | 2016-07-03 17:47:26 +0200 | [diff] [blame] | 36 | void write_viminfo_marks(FILE *fp_out, garray_T *buflist); |
| 37 | void copy_viminfo_marks(vir_T *virp, FILE *fp_out, garray_T *buflist, int eof, int flags); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 38 | /* vim: set ft=c : */ |