From: Benno Schulenberg Date: Fri, 4 Apr 2014 08:38:20 +0000 (+0000) Subject: Making sure the user sees a fatal-error message. X-Git-Tag: v2.3.3~213 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7a254dd1fe42b9e9382bcc6b0a64744d529216d4;p=nano.git Making sure the user sees a fatal-error message. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 3fbc29af..61add1b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * src/{files.c,nano.c}: Avoid two more compilation warnings. * configure.ac: Allow --enable-extra and --enable-multibuffer to override --enable-tiny. + * src/rcfile.c (check_vitals_mapped): Do not allow 'set quiet' + to suppress a fatal-error message, make sure the user sees it. 2014-04-03 Benno Schulenberg * configure.ac: Remove unused '*_support' variables. diff --git a/src/rcfile.c b/src/rcfile.c index 54160891..4ec8eccd 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1001,7 +1001,7 @@ static void check_vitals_mapped(void) if (f->scfunc == vitals[v] && f->menus & inmenus[v]) { const sc *s = first_sc_for(inmenus[v], f->scfunc); if (!s) { - rcfile_error(N_("Fatal error: no keys mapped for function \"%s\""), + fprintf(stderr, _("Fatal error: no keys mapped for function \"%s\".\n"), f->desc); fprintf(stderr, _("Exiting. If needed, use nano with the -I option " "to adjust your nanorc settings.\n"));