[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d2bbea2: Document what the `t' value for HIST in `r
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master d2bbea2: Document what the `t' value for HIST in `read-string' means |
Date: |
Sun, 23 Jun 2019 08:06:02 -0400 (EDT) |
branch: master
commit d2bbea23fa02c09a22e654f4127c234606d64fea
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Document what the `t' value for HIST in `read-string' means
* src/minibuf.c (syms_of_minibuf): Say that `t' means "no history"
(bug#36324).
(Fread_from_minibuffer): Say the same for HIST.
---
src/minibuf.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/minibuf.c b/src/minibuf.c
index 2bf6bc2..d932dbe 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -875,7 +875,8 @@ Fifth arg HIST, if non-nil, specifies a history list and
optionally
HISTPOS is the initial position for use by the minibuffer history
commands. For consistency, you should also specify that element of
the history as the value of INITIAL-CONTENTS. Positions are counted
- starting from 1 at the beginning of the list.
+ starting from 1 at the beginning of the list. If HIST is the symbol
+ `t', history is not recorded.
Sixth arg DEFAULT-VALUE, if non-nil, should be a string, which is used
as the default to `read' if READ is non-nil and the user enters
@@ -2037,8 +2038,11 @@ If the value is `confirm-after-completion', the user may
exit with an
doc: /* History list symbol to add minibuffer values to.
Each string of minibuffer input, as it appears on exit from the minibuffer,
is added with
+
(set minibuffer-history-variable
- (cons STRING (symbol-value minibuffer-history-variable))) */);
+ (cons STRING (symbol-value minibuffer-history-variable)))
+
+ If the variable is the symbol `t', no history is recorded. */);
XSETFASTINT (Vminibuffer_history_variable, 0);
DEFVAR_LISP ("minibuffer-history-position", Vminibuffer_history_position,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d2bbea2: Document what the `t' value for HIST in `read-string' means,
Lars Ingebrigtsen <=