version 1.102, 2019/06/22 15:03:43 |
version 1.103, 2023/03/08 04:43:11 |
|
|
* Insert a file into the current buffer. Real easy - just call the |
* Insert a file into the current buffer. Real easy - just call the |
* insertfile routine with the file name. |
* insertfile routine with the file name. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
fileinsert(int f, int n) |
fileinsert(int f, int n) |
{ |
{ |
|
|
* if you can find it, just switch to the buffer. If you cannot find the |
* if you can find it, just switch to the buffer. If you cannot find the |
* file, create a new buffer, read in the text, and switch to the new buffer. |
* file, create a new buffer, read in the text, and switch to the new buffer. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
filevisit(int f, int n) |
filevisit(int f, int n) |
{ |
{ |
|
|
* buffer is killed before the switch. If the kill fails, or is aborted, |
* buffer is killed before the switch. If the kill fails, or is aborted, |
* revert to the original file. |
* revert to the original file. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
filevisitalt(int f, int n) |
filevisitalt(int f, int n) |
{ |
{ |
|
|
* Pop to a file in the other window. Same as the last function, but uses |
* Pop to a file in the other window. Same as the last function, but uses |
* popbuf instead of showbuffer. |
* popbuf instead of showbuffer. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
poptofile(int f, int n) |
poptofile(int f, int n) |
{ |
{ |
|
|
* This handling of file names is different from the earlier versions and |
* This handling of file names is different from the earlier versions and |
* is more compatible with Gosling EMACS than with ITS EMACS. |
* is more compatible with Gosling EMACS than with ITS EMACS. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
filewrite(int f, int n) |
filewrite(int f, int n) |
{ |
{ |
|
|
*/ |
*/ |
static int makebackup = TRUE; |
static int makebackup = TRUE; |
|
|
/* ARGSUSED */ |
|
int |
int |
filesave(int f, int n) |
filesave(int f, int n) |
{ |
{ |
|
|
* is given, sets makebackup to true, so backups are made. If an argument is |
* is given, sets makebackup to true, so backups are made. If an argument is |
* given, no backup files are made when saving a new version of a file. |
* given, no backup files are made when saving a new version of a file. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
makebkfile(int f, int n) |
makebkfile(int f, int n) |
{ |
{ |