bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#45474: Icomplete exhibiting in recursive minibuffer when it shouldn’


From: Gregory Heytings
Subject: bug#45474: Icomplete exhibiting in recursive minibuffer when it shouldn’t
Date: Thu, 22 Apr 2021 14:08:03 +0000


diff --git a/src/minibuf.c b/src/minibuf.c
index c9831fd50f..6d4c2848f6 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -862,6 +862,12 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, 
Lisp_Object prompt,
   if (STRINGP (input_method) && !NILP (Ffboundp (Qactivate_input_method)))
     call1 (Qactivate_input_method, input_method);

+  if (! EQ (Vminibuffer_local_completion_table, Qnil)) {
+    Fmake_local_variable (Qminibuffer_completion_table);
+    Fset (Qminibuffer_completion_table, Vminibuffer_local_completion_table);
+    specbind (Qminibuffer_local_completion_table, Qnil);
+  }
+
   run_hook (Qminibuffer_setup_hook);

I'm afraid this will suffer a similar problem to the one Juri spotted in my code.


I'm glad to tell you that it does not ;-) I tested this thoroughly, of course it's possible that something is still wrong, but I tried many combinations and it seems to Just Work^TM.





reply via email to

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