1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05: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

10
word.c
View File

@@ -428,7 +428,7 @@ int fillpara(int f, int n)
if (curbp->b_mode & MDVIEW) /* don't allow this command if */
return rdonly(); /* we are in read only mode */
if (fillcol == 0) { /* no fill column set */
logwrite("No fill column set");
writestr( "No fill column set") ;
return FALSE;
}
#if PKCODE
@@ -527,14 +527,14 @@ int justpara(int f, int n)
if (curbp->b_mode & MDVIEW) /* don't allow this command if */
return rdonly(); /* we are in read only mode */
if (fillcol == 0) { /* no fill column set */
logwrite("No fill column set");
writestr( "No fill column set") ;
return FALSE;
}
justflag = TRUE;
leftmarg = curwp->w_doto;
if (leftmarg + 10 > fillcol) {
leftmarg = 0;
logwrite("Column too narrow");
writestr( "Column too narrow") ;
return FALSE;
}
@@ -719,8 +719,8 @@ int wordcount(int f, int n)
else
avgch = 0;
logwrite("Words %D Chars %D Lines %d Avg chars/word %f",
nwords, nchars, nlines + 1, avgch);
writefmt( "Words %D Chars %D Lines %d Avg chars/word %f",
nwords, nchars, nlines + 1, avgch) ;
return TRUE;
}
#endif