| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
|
| |
|
|
|
|
| |
applications changing the rl_completer_word_break_characters global variable.
Initial patch by Bradley Froehle.
|
| |
|
|
| |
readline use.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87356 | r.david.murray | 2010-12-17 22:48:32 -0500 (Fri, 17 Dec 2010) | 11 lines
#9907: call rl_initialize early when using editline on OSX
editline rl_initialize apparently discards any mappings done before it
is called, which makes tab revert to file completion instead of inserting
a tab. So now on OSX we call rl_initialize first if we are using
readline, and then re-read the users .editrc (if any) afterward so they
can still override our defaults.
Patch by Ned Deily, modified by Ronald Oussoren.
........
|
| |
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83670 | mark.dickinson | 2010-08-03 17:49:49 +0100 (Tue, 03 Aug 2010) | 3 lines
Issue #8065: Fix another memory leak in readline module, from failure to free
the result of a call to history_get_history_state.
........
|
| |
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83667 | mark.dickinson | 2010-08-03 17:08:16 +0100 (Tue, 03 Aug 2010) | 2 lines
Issue #9450: Fix memory leaks in readline.remove/replace_history_entry.
........
|
| | |
|
| |
|
|
|
| |
passed to free() and make a `char *` to a `const char *` as found by Clang's
static analyzer.
|
| |
|
|
| |
compilition with libedit on OSX 10.5
|
| |
|
|
|
|
| |
rl_completion_suppress_append.
Reported by Mark D.
|
| |
|
|
| |
GNU readline library version 6.0.
|
| |
|
|
|
|
|
|
| |
to the libedit emulation of the readline API on OSX 10.5 or later.
This also adds a minimal testsuite for readline to check that the
history manipuation functions have the same interface with both
C libraries.
|
| |
|
|
| |
to avoid compiler warnings.
|
| | |
|
| |
|
|
|
|
|
| |
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
|
| | |
|
| |
|
|
|
|
|
|
| |
fixed indention to tabs
use Py_RETURN_NONE macro
added more error checks to on_completion_display_matches_hook
open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
|
| |
|
|
| |
is a Python hook function. Fixes #1425.
|
| |
|
|
| |
get_completion_type to readline.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
timeout on the select()
if an input hook has been defined. Patch by Richard Boulton.
This select() code is only executed with readline 2.1, or if
READLINE_CALLBACKS is defined.
Backport candidate for 2.5, 2.4, probably earlier versions too.
|
| |
|
|
| |
Reported by Klocwork #152.
|
| |
|
|
| |
Probably should be backported.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python. Argh!
Backport candidate.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 1166660 ] The readline module can cause python to segfault
It seems to me that the code I'm rewriting here attempted to call any
user-supplied hook functions using the thread state of the thread that
called the hook-setting function, as opposed to that of the thread
that is currently executing. This doesn't work, in general.
Fix this by using the PyGILState API (It wouldn't be that hard to
define a dummy version of said API when #ifndef WITH_THREAD, would
it?).
Also, check the conversion to integer of the return value of a hook
function for errors (this problem was mentioned in the ipython bug
report linked to in the above bug).
|
| | |
|
| |
|
|
| |
this module any more.
|
| |
|
|
| |
remove_history and replace_history. Will backport to 2.4.
|
| |
|
|
|
| |
GNU readline exports a global variable that has such a name already
and the collision makes gcc4 doesn't compile the source.
|
| |
|
|
|
|
| |
[ 1030629 ] PyOS_InputHook broken
with a couple of utterly inconsequential changes by me.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
module. Closes patch #675551. My apologies to Michal Vitecek for taking so
long to process this.
|
| |
|
|
| |
[ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 960406 ] unblock signals in threads
although the changes do not correspond exactly to any patch attached to
that report.
Non-main threads no longer have all signals masked.
A different interface to readline is used.
The handling of signals inside calls to PyOS_Readline is now rather
different.
These changes are all a bit scary! Review and cross-platform testing
much appreciated.
|
| |
|
|
| |
readline module is loaded.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
PyOS_InputHook and PyOS_ReadlineFunctionPointer).
The inaccuracies were causing problems in framework builds on Mac OS X.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
METH_NOARGS functions are still called with two arguments, one NULL,
so put that back into the function definitions (I didn't know this
until recently).
Make get_history_length() METH_NOARGS.
|