mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-19 07:46:24 -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 */
|
pat[cpos] = 0; /* null terminate the buffer */
|
||||||
col = echo_char(c, col); /* Echo the character */
|
col = echo_char(c, col); /* Echo the character */
|
||||||
if (!status) { /* If we lost last time */
|
if (!status) { /* If we lost last time */
|
||||||
TTputc(BELL); /* Feep again */
|
TTbeep() ; /* Feep again */
|
||||||
TTflush(); /* see that the feep feeps */
|
TTflush(); /* see that the feep feeps */
|
||||||
} else /* Otherwise, we must have won */ if (!(status = checknext(c, pat, n))) /* See if match */
|
} else /* Otherwise, we must have won */ if (!(status = checknext(c, pat, n))) /* See if match */
|
||||||
status = scanmore(pat, n); /* or find the next 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 */
|
sts = scanner(patrn, FORWARD, PTEND); /* Nope. Go forward */
|
||||||
|
|
||||||
if (!sts) {
|
if (!sts) {
|
||||||
TTputc(BELL); /* Feep if search fails */
|
TTbeep() ; /* Feep if search fails */
|
||||||
TTflush(); /* see that the feep feeps */
|
TTflush(); /* see that the feep feeps */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
search.c
6
search.c
@ -93,6 +93,9 @@ spat_t rpat ; /* replacement pattern */
|
|||||||
|
|
||||||
|
|
||||||
#if defined(MAGIC)
|
#if defined(MAGIC)
|
||||||
|
|
||||||
|
#define BELL 0x07 /* a bell character */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Defines for the metacharacters in the regular expression
|
* Defines for the metacharacters in the regular expression
|
||||||
* search routines.
|
* search routines.
|
||||||
@ -981,8 +984,7 @@ static int replaces(int kind, int f, int n)
|
|||||||
curwp->w_flag |= WFMOVE;
|
curwp->w_flag |= WFMOVE;
|
||||||
|
|
||||||
case BELL: /* abort! and stay */
|
case BELL: /* abort! and stay */
|
||||||
mlwrite("Aborted!");
|
return logger( FALSE, "Aborted!") ;
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
default: /* bitch and beep */
|
default: /* bitch and beep */
|
||||||
TTbeep();
|
TTbeep();
|
||||||
|
2
search.h
2
search.h
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
|
|
||||||
#define BELL 0x07 /* a bell character */
|
|
||||||
|
|
||||||
typedef char spat_t[ 128] ; /* search pattern type */
|
typedef char spat_t[ 128] ; /* search pattern type */
|
||||||
#define NPAT sizeof( spat_t) /* # of bytes, pattern */
|
#define NPAT sizeof( spat_t) /* # of bytes, pattern */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user