Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add guard around the prototype for completion_matches to enable | Ronald Oussoren | 2010-02-11 | 1 | -0/+3 |
| | | | | compilition with libedit on OSX 10.5 | ||||
* | Some platforms have rl_completion_append_character but not ↵ | Antoine Pitrou | 2009-10-26 | 1 | -0/+2 |
| | | | | | | rl_completion_suppress_append. Reported by Mark D. | ||||
* | Issue #5833: Fix extra space character in readline completion with the | Antoine Pitrou | 2009-10-19 | 1 | -3/+4 |
| | | | | GNU readline library version 6.0. | ||||
* | Issue 6877: this patch makes it possible to link the readline extension | Ronald Oussoren | 2009-09-20 | 1 | -0/+70 |
| | | | | | | | | 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. | ||||
* | Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' | Matthias Klose | 2009-04-05 | 1 | -2/+2 |
| | | | | to avoid compiler warnings. | ||||
* | Issue #4204: Fixed module build errors on FreeBSD 4. | Martin v. Löwis | 2008-11-04 | 1 | -0/+8 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -5/+5 |
| | | | | | | | 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. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -5/+5 |
| | |||||
* | readline module cleanup | Christian Heimes | 2007-11-12 | 1 | -99/+90 |
| | | | | | | | | 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? | ||||
* | Only set rl_completion_display_matches_hook if there | Martin v. Löwis | 2007-11-12 | 1 | -31/+38 |
| | | | | is a Python hook function. Fixes #1425. | ||||
* | Patch #1388440: Add set_completion_display_matches_hook and | Martin v. Löwis | 2007-09-04 | 1 | -0/+77 |
| | | | | get_completion_type to readline. | ||||
* | SF #1703270, add missing declaration in readline.c to avoid compiler warning. | Neal Norwitz | 2007-04-19 | 1 | -1/+3 |
| | |||||
* | [Bug #1552726] Avoid repeatedly polling in interactive mode -- only put a ↵ | Andrew M. Kuchling | 2006-09-07 | 1 | -1/+7 |
| | | | | | | | | | | | 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. | ||||
* | Fix memory leaks in some conditions. | Neal Norwitz | 2006-07-16 | 1 | -9/+11 |
| | | | | Reported by Klocwork #152. | ||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | Fix parse errors in readline module when compiling without threads. | Georg Brandl | 2005-09-29 | 1 | -0/+2 |
| | |||||
* | In a threads-disabled build, typing Ctrl-C into a raw_input() crashed, | Michael W. Hudson | 2005-04-07 | 1 | -0/+4 |
| | | | | | | | | | 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. | ||||
* | Fixes for | Michael W. Hudson | 2005-03-30 | 1 | -26/+23 |
| | | | | | | | | | | | | | | | | | [ 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). | ||||
* | Be a bit more accurate. | Michael W. Hudson | 2005-03-30 | 1 | -1/+2 |
| | |||||
* | I don't think it's particularly accurate to say Guido is maintaining | Michael W. Hudson | 2005-03-30 | 1 | -3/+0 |
| | | | | this module any more. | ||||
* | Patch #1093585: raise a ValueError for negative history items in | Martin v. Löwis | 2005-02-27 | 1 | -0/+10 |
| | | | | remove_history and replace_history. Will backport to 2.4. | ||||
* | Rename a static variable "history_length" to "_history_length". | Hye-Shik Chang | 2004-11-25 | 1 | -6/+6 |
| | | | | | GNU readline exports a global variable that has such a name already and the collision makes gcc4 doesn't compile the source. | ||||
* | This is Michiel de Hoon's patch, as attached to the bug report: | Michael W. Hudson | 2004-10-07 | 1 | -7/+13 |
| | | | | | | [ 1030629 ] PyOS_InputHook broken with a couple of utterly inconsequential changes by me. | ||||
* | SF #1015517, get readline to compile with older compilers | Neal Norwitz | 2004-08-25 | 1 | -3/+4 |
| | |||||
* | Fail fatally if strdup fails. | Martin v. Löwis | 2004-08-20 | 1 | -0/+4 |
| | |||||
* | Patch #914291: Restore locale while readline is running. | Martin v. Löwis | 2004-08-18 | 1 | -0/+8 |
| | |||||
* | fix a couple problems with the last patch picked up by Michael Hudson | Skip Montanaro | 2004-08-16 | 1 | -12/+8 |
| | |||||
* | Add get_history_item and replace_history_item functions to the readline | Skip Montanaro | 2004-08-15 | 1 | -0/+67 |
| | | | | | module. Closes patch #675551. My apologies to Michal Vitecek for taking so long to process this. | ||||
* | PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes | Michael W. Hudson | 2004-07-08 | 1 | -1/+1 |
| | | | | [ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt | ||||
* | This closes patch: | Michael W. Hudson | 2004-07-07 | 1 | -8/+89 |
| | | | | | | | | | | | | | | | | | [ 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. | ||||
* | stupid, stupid, stupid... raw_input() already supports readline() if the | Skip Montanaro | 2004-05-24 | 1 | -23/+0 |
| | | | | readline module is loaded. | ||||
* | Exposed readline() function from the readline module. | Skip Montanaro | 2004-05-23 | 1 | -0/+23 |
| | |||||
* | A few more PyThreadState_Get to PyThreadState_GET conversions | Nicholas Bastin | 2004-03-25 | 1 | -1/+1 |
| | |||||
* | remove support for missing ANSI C header files (limits.h, stddef.h, etc). | Skip Montanaro | 2004-02-10 | 1 | -1/+1 |
| | |||||
* | Patch #804543: strdup saved locales. Backported to 2.3. | Martin v. Löwis | 2003-11-13 | 1 | -1/+2 |
| | |||||
* | Patch #800697: Add readline.clear_history. | Martin v. Löwis | 2003-09-20 | 1 | -0/+21 |
| | |||||
* | Remove inaccurate (and it turns out, entirely superfluous) declarations of | Michael W. Hudson | 2003-07-17 | 1 | -4/+0 |
| | | | | | | PyOS_InputHook and PyOS_ReadlineFunctionPointer). The inaccuracies were causing problems in framework builds on Mac OS X. | ||||
* | Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros | Neal Norwitz | 2003-07-01 | 1 | -2/+2 |
| | |||||
* | get_completer() takes no args | Neal Norwitz | 2003-03-01 | 1 | -1/+1 |
| | |||||
* | flex_complete looks like a private (but callback) function, so make it static | Neal Norwitz | 2003-02-21 | 1 | -1/+1 |
| | |||||
* | I was in this module anyway, so I did some janitorial things. | Michael W. Hudson | 2003-01-30 | 1 | -17/+14 |
| | | | | | | | | 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. | ||||
* | Add the get_completer() function based on Michael Stone's patch in | Michael W. Hudson | 2003-01-30 | 1 | -0/+17 |
| | | | | | | [ 676342 ] after using pdb readline does not work correctly which is required to fix that bug. So maaybe a bugfix candidate. | ||||
* | Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread | Guido van Rossum | 2003-01-07 | 1 | -13/+7 |
| | | | | state swaps in readline). | ||||
* | A few more whitespace normalizations. | Guido van Rossum | 2003-01-07 | 1 | -1/+4 |
| | |||||
* | Various cleanups: | Guido van Rossum | 2003-01-07 | 1 | -45/+80 |
| | | | | | | | | - Whitespace normalization. - Cleaned up some comments. - Broke long lines. | ||||
* | Patch 659834 by Magnus Lie Hetland: | Guido van Rossum | 2002-12-30 | 1 | -0/+4 |
| | | | | | | | | | Check for readline 2.2 features. This should make it possible to compile readline.c again with GNU readline versions 2.0 or 2.1; this ability was removed in readline.c rev. 2.49. Apparently the older versions are still in widespread deployment on older Solaris installations. With an older readline, completion behavior is subtly different (a space is always added). | ||||
* | Patch #512981: Update readline input stream on sys.stdin/out change. | Martin v. Löwis | 2002-10-26 | 1 | -7/+13 |
| | |||||
* | GNU readline() mistakenly sets the LC_CTYPE locale. | Guido van Rossum | 2002-10-09 | 1 | -0/+17 |
| | | | | | This is evil. Only the user or the app's main() should do this! We must save and restore the locale around the rl_initialize() call. | ||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -73/+59 |
| |