| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Tim, after adding some bracket smarts to AutoIndent.py]
> ...
> What it can't possibly do without reparsing large gobs of text is
> suggest a reasonable indent level after you've *closed* a bracket
> left open on some previous line.
> ...
The attached can, and actually fast enough to use -- most of the time. The
code is tricky beyond belief to achieve that, but it works so far; e.g.,
return len(string.expandtabs(str[self.stmt_start :
^ indents to caret
i],
^ indents to caret
self.tabwidth)) + 1
^ indents to caret
It's about as smart as pymode now, wrt both bracket and backslash
continuation rules. It does require reparsing large gobs of text, and if it
happens to find something that looks like a "def" or "class" or sys.ps1
buried in a multiline string, but didn't suck up enough preceding text to
see the start of the string, it's completely hosed. I can't repair that --
it's just too slow to reparse from the start of the file all the time.
AutoIndent has grown a new num_context_lines tuple attribute that controls
how far to look back, and-- like other params --this could/should be made
user-overridable at startup and per-file on the fly.
|
|
|
|
|
|
| |
One new file in the attached, PyParse.py. The LineStudier (whatever it was
called <wink>) class was removed from AutoIndent; PyParse subsumes its
functionality.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removed "New tabwidth" menu binding.
Added "a tab means how many spaces?" dialog to block tabify and untabify. I
think prompting for this is good now: they're usually at-most-once-per-file
commands, and IDLE can't let them change tabwidth from the Tk default
anymore, so IDLE can no longer presume to have any idea what a tab means.
Irony: for the purpose of keeping comments aligned via tabs, Tk's
non-default approach is much nicer than the Emacs/Notepad/Codewright/vi/etc
approach.
|
|
|
|
| |
Here's the correct patch!
|
|
|
|
|
|
| |
these happen to be 'closed' and 'softspace', which may change!
Noted by Dave Ascher (with slightly different solution).
|
|
|
|
|
|
|
|
| |
2. No longer need to reset pyclbr cache and show watch cursor when calling
ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget
takes care of the watch cursor.
3. Reset the focus to the current window after error message about class
browser on buffer without filename.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
for Windows using win32pipe.
|
| |
|
| |
|
| |
|
|
|
|
| |
arguments. [Slightly changed from submitted patch.]
|
|
|
|
|
|
| |
posix_error_with_filename() instead of posix_error(), passing in the
name argument, so you get information on which directory was being
listed.
|
|
|
|
| |
that there's a Global Module Index; there can be only one!
|
|
|
|
| |
navigation bars in the HTML output.
|
|
|
|
| |
description.
|
|
|
|
|
| |
Use memberdesc instead of datadesc to document object attributes.
This gets the index right.
|
|
|
|
|
|
|
| |
items -> item
The returned list will then have one more items than the number of
non-overlapping occurrences of the separator in the string.
|
|
|
|
|
|
| |
empty comments trigger a bug in LaTeX2HTML.
Problem reported by Gerry Wiener <gerry@ucar.edu>.
|
|
|
|
|
| |
to use `getconf LFS_CFLAGS`. Steve Clift (the author of the section
and large file support) agrees that this is the right thing to do.
|
|
|
|
|
| |
there is "su" top level domain still maintained in ex-USSR. at
least "*.msk.su" zone (Moscow, USSR) is still in use.
|
|
|
|
| |
Added some index entries.
|
|
|
|
|
|
| |
casing when py-honor-comment-indentation is nil, but this could be a
religious issue with some. Seems to me we should still be dedenting
such comment lines one level.
|
|
|
|
|
|
| |
buffer-syntactic-context -- just short circuit the TQS test by jumping
to point-min and doing the test from there. For long files, this will
be faster than looping with a re-search-backwards.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
indentation when the return value is a multiline sexp:
def bug():
try:
if 2>1:
return (11+
12)
else: #XXX
return 12
except:
return 13
|
|
|
|
|
|
|
| |
"""Despite the best intentions of Anarchie and Internet Explorer, I often end
up with Python source files (and other text files that I'd like to edit with
PythonIDE) that use '\n' instead of '\r' as a line separator (and therefore
sh
|
|
|
|
| |
to the libs variable. Reported by Albert Chin-A-Young.
|
|
|
|
|
|
|
|
|
| |
I noticed while watching (with lsof) my forking SocketServer app running
that I would get multiple processes listening to the socket. For the most
part, this doesn't hurt things, but if you terminate the server, this can
prevent it from restarting because it cannot bind to the port due to any
running children which also have the socket open. The following one-liner
fixes this.
|
|
|
|
| |
Add isatty() to pseudo files.
|
| |
|
| |
|
|
|
|
| |
by Tim Peters.
|
| |
|
|
|
|
|
|
| |
_begin_macro_rx: Fixed RE that didn't properly allow a space after
the name of the macro. This affects the conversion
of the tutorial.
|
|
|
|
|
| |
verbatim-like environments. The list of verbatim-like environments is
a defined by a variable in main().
|
|
|
|
| |
environments. Move the conversion to esis2sgml.py.
|
|
|
|
| |
Reported by Corran Webster <cwebster@math.tamu.edu>.
|
|
|
|
| |
Updated comments on the documentation.
|
|
|
|
| |
to make it easier for people to find what they're looking for.
|
|
|
|
|
|
| |
Add a few more comments about mkhowto.
Based on comments from Albert <hat@se-46.wpa.wtb.tue.nl>.
|
|
|
|
| |
documents probably aren't written by Guido. ;-)
|
|
|
|
|
|
|
|
| |
Michael Hudson's documentation for bytecodehacks exhibits incorrect
usage.
Added some comments about how to set up the mkhowto script for use
with documents not contained in the documentation source tree.
|
|
|
|
|
| |
This reflects the changes made in
../texinputs/python.sty.
|
| |
|