[Top][All Lists]

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

Re: [Bug-readline] Aborting reverse-i-search with the callback interface

From: Chet Ramey
Subject: Re: [Bug-readline] Aborting reverse-i-search with the callback interface
Date: Thu, 28 May 2015 17:01:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 5/24/15 9:13 PM, Martin Panter wrote:

> A workaround has been proposed for Python
> to unset the RL_STATE_ISEARCH flag and set RL_STATE_DONE flag, but I
> wonder if you think this sort of thing should be done inside the
> rl_free_line_state() function instead?

This approach will work for the time being, but you should be prepared
to change the python code to use a public function when the next version
of readline is released.  Readline's signal handler will also call the
same function, so if you're letting readline handle signal disposition
you won't have to do anything.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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