1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-09-26 15:04:04 -04:00

Transition from logger/logwrite/mlwrite to writestr/writefmt.

This commit is contained in:
2015-01-21 21:30:01 +08:00
parent 891f4c3238
commit 15ae2d4135
11 changed files with 70 additions and 66 deletions

15
basic.c
View File

@@ -100,8 +100,10 @@ int gotoline(int f, int n)
/* Get an argument if one doesnt exist. */
if( f == FALSE) {
status = mlreply( "Line to GOTO: ", arg, sizeof arg) ;
if( status != TRUE)
return logger( status, "(Aborted)") ;
if( status != TRUE) {
writestr( "(Aborted)") ;
return status ;
}
n = atoi( arg) ;
}
@@ -313,7 +315,8 @@ int setmark(int f, int n)
{
curwp->w_markp = curwp->w_dotp;
curwp->w_marko = curwp->w_doto;
return logger( TRUE, "(Mark set)") ;
writestr( "(Mark set)") ;
return TRUE ;
}
/*
@@ -327,8 +330,10 @@ int swapmark(int f, int n)
struct line *odotp;
int odoto;
if( curwp->w_markp == NULL)
return logger( FALSE, "No mark in this window") ;
if( curwp->w_markp == NULL) {
writestr( "No mark in this window") ;
return FALSE ;
}
odotp = curwp->w_dotp;
odoto = curwp->w_doto;