diff --git a/config.h.in b/config.h.in index 44c95ba..bb1388e 100644 --- a/config.h.in +++ b/config.h.in @@ -3,9 +3,6 @@ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID -/* Define to enable terminal bell on completion. */ -#undef CONFIG_ANNOYING_NOISE - /* Define to include ANSI arrow keys support. */ #undef CONFIG_ANSI_ARROWS @@ -21,6 +18,9 @@ /* Define to enable SIGSTOP (Ctrl-Z) key. */ #undef CONFIG_SIGSTOP +/* Define to enable terminal bell on completion. */ +#undef CONFIG_TERMINAL_BELL + /* Define to skip duplicate lines in the scrollback history. */ #undef CONFIG_UNIQUE_HISTORY diff --git a/configure b/configure index 96640ac..69ecd66 100755 --- a/configure +++ b/configure @@ -12078,7 +12078,7 @@ fi # Check whether --enable-terminal-bell was given. if test "${enable_terminal_bell+set}" = set; then : enableval=$enable_terminal_bell; -$as_echo "#define CONFIG_ANNOYING_NOISE 1" >>confdefs.h +$as_echo "#define CONFIG_TERMINAL_BELL 1" >>confdefs.h fi diff --git a/configure.ac b/configure.ac index 1f5dda6..f1e8a70 100644 --- a/configure.ac +++ b/configure.ac @@ -78,7 +78,7 @@ AC_ARG_ENABLE(sigstop, AC_ARG_ENABLE(terminal-bell, [AS_HELP_STRING([--enable-terminal-bell], [Enable terminal bell on completion.])], - AC_DEFINE([CONFIG_ANNOYING_NOISE], 1, [Define to enable terminal bell on completion.])) + AC_DEFINE([CONFIG_TERMINAL_BELL], 1, [Define to enable terminal bell on completion.])) AC_ARG_ENABLE(termcap, [AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.])], diff --git a/src/editline.c b/src/editline.c index 1805f34..320cfaf 100644 --- a/src/editline.c +++ b/src/editline.c @@ -1390,7 +1390,7 @@ static el_status_t c_complete(void) if (len > 0) { s = insert_string(string); -#ifdef CONFIG_ANNOYING_NOISE +#ifdef CONFIG_TERMINAL_BELL if (!unique) el_ring_bell(); #endif