[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Readline 7.0 minor bugs
From: |
Jason Hood |
Subject: |
Re: [Bug-readline] Readline 7.0 minor bugs |
Date: |
Wed, 22 Feb 2017 17:51:03 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
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.