mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
Insure consistent use of TTbeep for bell (instead of alternative TTputc( BEL)).
This commit is contained in:
parent
fbfaa29497
commit
b101f703c0
@ -300,7 +300,7 @@ static int isearch(int f, int n)
|
||||
pat[cpos] = 0; /* null terminate the buffer */
|
||||
col = echo_char(c, col); /* Echo the character */
|
||||
if (!status) { /* If we lost last time */
|
||||
TTputc(BELL); /* Feep again */
|
||||
TTbeep() ; /* Feep again */
|
||||
TTflush(); /* see that the feep feeps */
|
||||
} else /* Otherwise, we must have won */ if (!(status = checknext(c, pat, n))) /* See if match */
|
||||
status = scanmore(pat, n); /* or find the next match */
|
||||
@ -377,7 +377,7 @@ static int scanmore(char *patrn, int dir) /* search forward or back for a patter
|
||||
sts = scanner(patrn, FORWARD, PTEND); /* Nope. Go forward */
|
||||
|
||||
if (!sts) {
|
||||
TTputc(BELL); /* Feep if search fails */
|
||||
TTbeep() ; /* Feep if search fails */
|
||||
TTflush(); /* see that the feep feeps */
|
||||
}
|
||||
|
||||
|
6
search.c
6
search.c
@ -93,6 +93,9 @@ spat_t rpat ; /* replacement pattern */
|
||||
|
||||
|
||||
#if defined(MAGIC)
|
||||
|
||||
#define BELL 0x07 /* a bell character */
|
||||
|
||||
/*
|
||||
* Defines for the metacharacters in the regular expression
|
||||
* search routines.
|
||||
@ -981,8 +984,7 @@ static int replaces(int kind, int f, int n)
|
||||
curwp->w_flag |= WFMOVE;
|
||||
|
||||
case BELL: /* abort! and stay */
|
||||
mlwrite("Aborted!");
|
||||
return FALSE;
|
||||
return logger( FALSE, "Aborted!") ;
|
||||
|
||||
default: /* bitch and beep */
|
||||
TTbeep();
|
||||
|
Loading…
Reference in New Issue
Block a user