history-add-new-input
history-add-new-input is a variable defined in `C source code
'.
Its value is tDocumentation: Non-nil means to add new elements in history. If set to nil, minibuffer reading functions don't add new elements to the history list, so it is possible to do this afterwards by calling `add-to-history' explicitly.