Mercurial > vim
annotate src/proto/undo.pro @ 2280:941ff1cd317a vim73
Add file save counter to undo information. Add undotree() function.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 27 Jun 2010 01:15:55 +0200 |
parents | 3d0a7beb0d75 |
children | e41433ea71df |
rev | line source |
---|---|
7 | 1 /* undo.c */ |
2231
aa6412cab544
Various improvements to undo file code to make it more robust.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2 void u_check __ARGS((int newhead_may_be_NULL)); |
1136 | 3 int u_save_cursor __ARGS((void)); |
4 int u_save __ARGS((linenr_T top, linenr_T bot)); | |
5 int u_savesub __ARGS((linenr_T lnum)); | |
6 int u_inssub __ARGS((linenr_T lnum)); | |
7 int u_savedel __ARGS((linenr_T lnum, long nlines)); | |
8 int undo_allowed __ARGS((void)); | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
1136
diff
changeset
|
9 void u_compute_hash __ARGS((char_u *hash)); |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2231
diff
changeset
|
10 char_u *u_get_undo_file_name __ARGS((char_u *buf_ffname, int reading)); |
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2231
diff
changeset
|
11 void u_write_undo __ARGS((char_u *name, int forceit, buf_T *buf, char_u *hash)); |
2238
3d0a7beb0d75
Made reading/writing undo info a bit more robust.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
12 void u_read_undo __ARGS((char_u *name, char_u *hash, char_u *orig_name)); |
1136 | 13 void u_undo __ARGS((int count)); |
14 void u_redo __ARGS((int count)); | |
15 void undo_time __ARGS((long step, int sec, int absolute)); | |
16 void u_sync __ARGS((int force)); | |
17 void ex_undolist __ARGS((exarg_T *eap)); | |
18 void ex_undojoin __ARGS((exarg_T *eap)); | |
19 void u_unchanged __ARGS((buf_T *buf)); | |
20 void u_clearall __ARGS((buf_T *buf)); | |
21 void u_saveline __ARGS((linenr_T lnum)); | |
22 void u_clearline __ARGS((void)); | |
23 void u_undoline __ARGS((void)); | |
24 void u_blockfree __ARGS((buf_T *buf)); | |
25 int bufIsChanged __ARGS((buf_T *buf)); | |
26 int curbufIsChanged __ARGS((void)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2238
diff
changeset
|
27 void u_eval_tree __ARGS((u_header_T *first_uhp, list_T *list)); |
7 | 28 /* vim: set ft=c : */ |