[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d06c2e7: Add a history variable for `read-variable'

From: Charles A. Roelli
Subject: [Emacs-diffs] master d06c2e7: Add a history variable for `read-variable'
Date: Mon, 2 Apr 2018 10:19:23 -0400 (EDT)

branch: master
commit d06c2e7a666fbc7aa0e7a9b134d9e373431d76bf
Author: Charles A. Roelli <address@hidden>
Commit: Charles A. Roelli <address@hidden>

    Add a history variable for `read-variable'
    * src/minibuf.c (Fread_variable): Use the history variable when
    calling Fcompleting_read.
    (syms_of_minibuf): New history variable, custom-variable-history.
 src/minibuf.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/minibuf.c b/src/minibuf.c
index 45cf152..5cb6919 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1090,7 +1090,8 @@ A user option, or customizable variable, is one for which
   name = Fcompleting_read (prompt, Vobarray,
                           Qcustom_variable_p, Qt,
-                          Qnil, Qnil, default_string, Qnil);
+                          Qnil, Qcustom_variable_history,
+                          default_string, Qnil);
   if (NILP (name))
     return name;
   return Fintern (name, Qnil);
@@ -1931,6 +1932,9 @@ syms_of_minibuf (void)
   staticpro (&last_minibuf_string);
   last_minibuf_string = Qnil;
+  DEFSYM (Qcustom_variable_history, "custom-variable-history");
+  Fset (Qcustom_variable_history, Qnil);
   DEFSYM (Qminibuffer_history, "minibuffer-history");
   DEFSYM (Qbuffer_name_history, "buffer-name-history");
   Fset (Qbuffer_name_history, Qnil);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]