mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
d88b75838a
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.
8 lines
147 B
C
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 */
|