On 22/02/2017 2:12, Chet Ramey wrote:
> On 2/21/17 1:16 AM, Jason Hood wrote:
>> * if show-mode-in-prompt is on, the initial Emacs prompt would
>>   not show the mode;
> 
> I can't reproduce this using bash. Are you using a different application,
> maybe with callback mode?

It was rltest.  Just tested with units and noticed it worked there.
Looking at rltest.c, I see it doesn't have rl_initialize(); adding
that made it work.  So here's a better fix:

diff -urp working/readline.c current/readline.c
--- working/readline.c  2017-02-22 17:00:16 +1000
+++ current/readline.c  2017-02-21 12:44:38 +1000
@@ -363,12 +363,12 @@
     RL_UNSETSTATE (RL_STATE_CALLBACK);
 #endif

-  rl_set_prompt (prompt);
-
   rl_initialize ();
   if (rl_prep_term_function)
     (*rl_prep_term_function) (_rl_meta_flag);

+  rl_set_prompt (prompt);
+
 #if defined (HANDLE_SIGNALS)
   rl_set_signals ();
 #endif

-- 
Jason.

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to