toggle *toggles = NULL;
#endif
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
filestruct *search_history = NULL;
filestruct *searchage = NULL;
filestruct *searchbot = NULL;
#endif
/* Regular expressions */
-
#ifdef HAVE_REGEX_H
regex_t search_regexp; /* Global to store compiled search regexp */
regmatch_t regmatches[10]; /* Match positions for parenthetical
#ifdef HAVE_REGEX_H
const char *regexp_msg = N_("Regexp");
#endif
+#ifdef ENABLE_NANORC
const char *history_msg = N_("History");
+#endif
#ifdef ENABLE_MULTIBUFFER
const char *new_buffer_msg = N_("New Buffer");
#endif
#ifdef HAVE_REGEX_H
const char *nano_regexp_msg = N_("Use regular expressions");
#endif
+#ifdef ENABLE_NANORC
const char *nano_history_msg =
N_("Edit the previous search/replace strings");
#endif
+#endif /* !NANO_SMALL */
#ifndef DISABLE_BROWSER
const char *nano_tofiles_msg = N_("Go to file browser");
NANO_NO_KEY, VIEW, NULL);
#endif
+#ifdef ENABLE_NANORC
/* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
+#endif
/* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_CUTTILLEND_KEY, cut_till_end_msg,
NANO_NO_KEY, VIEW, NULL);
#endif
+#ifndef ENABLE_NANORC
sc_init_one(&replace_list, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
+#endif
#endif /* !NANO_SMALL */
free_shortcutage(&replace_list_2);
IFHELP(nano_lastline_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_last_line);
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
sc_init_one(&replace_list_2, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);