mc/edit/editlock.h
Pavel Roskin d88b75838a * editlock.c, editlock.h: New files. Implement file locking in
Emacs style, as documented in JED editor sources.
* Makefile.am: Add those files to build tree.

* edit-widget.c (WEdit): New property 'locked', 0 on edit_init.
* edit.c (edit_modification): Lock buffer on modification.
* editcmd.c (edit_save_cmd, edit_save_as_cmd): Handle locking
during file save.
(edit_load_file_from_filename): Unlock.  Remove 2 duplicate
lines (handled by edit_init).
(edit_quit_cmd): Unlock.
2003-04-02 19:36:10 +00:00

8 lines
147 B
C

#ifndef __EDIT_LOCK_H
#define __EDIT_LOCK_H
int edit_lock_file (char *fname);
int edit_unlock_file (char *fname);
#endif /* !__EDIT_LOCK_H */