mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -05:00
Remove Spell buffer mode as it is not connected to any implemented functionality.
This commit is contained in:
parent
3af4ee19a2
commit
8c968322f6
6
buffer.c
6
buffer.c
@ -29,7 +29,7 @@ struct buffer *bheadp ; /* Head of list of buffers */
|
|||||||
struct buffer *blistp ; /* Buffer for C-X C-B */
|
struct buffer *blistp ; /* Buffer for C-X C-B */
|
||||||
|
|
||||||
const char *modename[] = { /* name of modes */
|
const char *modename[] = { /* name of modes */
|
||||||
"Wrap", "Cmode", "Spell", "Exact", "View", "Over",
|
"Wrap", "Cmode", "Exact", "View", "Over",
|
||||||
"Magic",
|
"Magic",
|
||||||
#if CRYPT
|
#if CRYPT
|
||||||
"Crypt",
|
"Crypt",
|
||||||
@ -41,7 +41,7 @@ const char *modename[] = { /* name of modes */
|
|||||||
|
|
||||||
int gmode = 0 ; /* global editor mode */
|
int gmode = 0 ; /* global editor mode */
|
||||||
|
|
||||||
static const char modecode[] = "WCSEVOMYAUD" ; /* letters to represent modes */
|
static const char modecode[] = "WCEVOMYAUD" ; /* letters to represent modes */
|
||||||
|
|
||||||
|
|
||||||
static int makelist( int iflag) ;
|
static int makelist( int iflag) ;
|
||||||
@ -333,7 +333,7 @@ static int makelist( int iflag)
|
|||||||
int i;
|
int i;
|
||||||
long nbytes; /* # of bytes in current buffer */
|
long nbytes; /* # of bytes in current buffer */
|
||||||
long nlines ; /* # of lines in current buffer */
|
long nlines ; /* # of lines in current buffer */
|
||||||
char b[ 8 + 1] ;
|
char b[ 9 + 1] ;
|
||||||
char line[MAXLINE];
|
char line[MAXLINE];
|
||||||
|
|
||||||
blistp->b_flag &= ~BFCHG; /* Don't complain! */
|
blistp->b_flag &= ~BFCHG; /* Don't complain! */
|
||||||
|
19
buffer.h
19
buffer.h
@ -50,21 +50,20 @@ extern struct buffer *blistp ; /* Buffer for C-X C-B */
|
|||||||
#define BFTRUNC 0x04 /* buffer was truncated when read */
|
#define BFTRUNC 0x04 /* buffer was truncated when read */
|
||||||
|
|
||||||
/* mode flags */
|
/* mode flags */
|
||||||
#define NUMMODES 11 /* # of defined modes */
|
#define NUMMODES 10 /* # of defined modes */
|
||||||
|
|
||||||
#define MDWRAP 0x0001 /* word wrap */
|
#define MDWRAP 0x0001 /* word wrap */
|
||||||
#define MDCMOD 0x0002 /* C indentation and fence match */
|
#define MDCMOD 0x0002 /* C indentation and fence match */
|
||||||
#define MDSPELL 0x0004 /* spell error parcing */
|
#define MDEXACT 0x0004 /* Exact matching for searches */
|
||||||
#define MDEXACT 0x0008 /* Exact matching for searches */
|
#define MDVIEW 0x0008 /* read-only buffer */
|
||||||
#define MDVIEW 0x0010 /* read-only buffer */
|
#define MDOVER 0x0010 /* overwrite mode */
|
||||||
#define MDOVER 0x0020 /* overwrite mode */
|
#define MDMAGIC 0x0020 /* regular expresions in search */
|
||||||
#define MDMAGIC 0x0040 /* regular expresions in search */
|
|
||||||
#if CRYPT
|
#if CRYPT
|
||||||
#define MDCRYPT 0x0080 /* encrytion mode active */
|
#define MDCRYPT 0x0040 /* encrytion mode active */
|
||||||
#endif
|
#endif
|
||||||
#define MDASAVE 0x0100 /* auto-save mode */
|
#define MDASAVE 0x0080 /* auto-save mode */
|
||||||
#define MDUTF8 0x0200 /* utf8 mode */
|
#define MDUTF8 0x0100 /* utf8 mode */
|
||||||
#define MDDOS 0x0400 /* CRLF eol mode */
|
#define MDDOS 0x0200 /* CRLF eol mode */
|
||||||
|
|
||||||
|
|
||||||
extern const char *modename[] ; /* text names of modes */
|
extern const char *modename[] ; /* text names of modes */
|
||||||
|
Loading…
Reference in New Issue
Block a user