1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Tag uEMACS functions using first character of name string.

This commit is contained in:
2021-07-20 11:24:32 +08:00
parent 695b5d37da
commit 4f90e847f8
7 changed files with 213 additions and 231 deletions

4
exec.c
View File

@@ -97,7 +97,7 @@ int namedcmd( int f, int n) {
return FALSE;
}
if( nbp->tag && (curbp->b_mode & MDVIEW))
if( (bind_tag( nbp) & 1) && (curbp->b_mode & MDVIEW))
return rdonly() ;
/* and then execute the command */
@@ -195,7 +195,7 @@ static int docmd( char *cline) {
return FALSE;
}
if( nbp->tag && (curbp->b_mode & MDVIEW))
if( (bind_tag( nbp) & 1) && (curbp->b_mode & MDVIEW))
status = rdonly() ;
else {
/* save the arguments and go execute the command */