1
0
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:
Renaud 2015-01-21 14:48:03 +08:00
parent fbfaa29497
commit b101f703c0
3 changed files with 6 additions and 6 deletions

View File

@ -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 */
}

View File

@ -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();

View File

@ -5,8 +5,6 @@
#include "line.h"
#define BELL 0x07 /* a bell character */
typedef char spat_t[ 128] ; /* search pattern type */
#define NPAT sizeof( spat_t) /* # of bytes, pattern */