/* * Ring the bell if ring-bell is set. */ void ding (void) { if (thisflag & FLAG_DEFINING_MACRO) cancel_kbd_macro (); if (get_variable_bool ("ring-bell")) term_beep (); }
/* * Emit an error sound only when the appropriate variable * is set. */ void ding(void) { if (thisflag & FLAG_DEFINING_MACRO) cancel_kbd_macro(); if (lookup_bool_variable("beep")) cur_tp->beep(); thisflag |= FLAG_GOT_ERROR; }