| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
INTERNET RESOURCES sections based on c.l.py comments.
|
|
|
|
|
| |
convenient to call py-shell before the first Python file has been
visited.
|
|
|
|
|
|
|
| |
(python): Set defgroup :prefix to "py-" to make variable names cleaner.
(py-jpython-command, py-jpython-command-args): Set :tag for proper
capitalization of JPython in variable name display.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
first time a py buffer is visited during the Emacs session. This
ensures that py-which-shells is initialized and also guarantees that
the mode lines reflect the correct shell. First bug found by GvR,
second one has long bugged :) me.
(py-toggle-shells): Programmatically, arg can also take the symbols
`cpython' or `jpython', which makes it easy to call with the value of
py-default-interpreter.
(py-shell): Don't need to initialize py-which-* variables since these
will guarantee to be initialized by python-mode when the first py
buffer is visited.
(py-default-interpreter): Update docstring.
|
|
|
|
| |
regex match actually succeeded!
|
|
|
|
| |
the line's whitespace. back-to-indentation should /follow/ this call.
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
I don't know what its origins are but I think I've seen it
once in a NeXT dictionary application -- not sure whether
anyone owns copyright but I don't see why we should risk it.
|
|
|
|
| |
reported by Fred.
|
| |
|
| |
|
| |
|
|
|
|
| |
switches to pass into the shell process (only on initial startup).
|
|
|
|
|
| |
or JPython is the default interpreter to use when `C-c !' is entered
for the first time.
|
| |
|
| |
|
| |
|
|
|
|
| |
py-newline-and-indent.
|
|
|
|
|
|
|
|
|
|
|
| |
py-newline-and-indent. These ought to get picked up by the mapcar
that follows; any existing binding to newline-and-indent gets shadowed
to py-newline-and-indent.
This will break some people who, e.g. bind C-m or C-j to newline but
still want these bound to py-newline-and-indent in Python mode. On
the other hand, the forced binding pisses off Emacs diehards. So
consider this experimental and see if any tall Dutch guys complain :-)
|
|
|
|
|
|
| |
standard narrow-to-defun but works with Python classes and methods.
With no arg, narrows to most enclosing def/method. With C-u arg,
narrows to most enclosing class.
|
|
|
|
| |
for delete forwardness.
|
|
|
|
| |
(e.g. except: on first line of buffer).
|
|
|
|
| |
affecting subclasses (which Jeremy just found out).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
string we find ourselves in, based on the passed in delimiter.
(py-compute-indentation): Fixes for indentation errors when we land
inside a triple quoted string. For example:
def foo():
if os.path.isfile(o_pri_mbox_file) and os.path.isfile(o_pub_mbox_file):
print """\
I found both a private and a public mbox archive file
private: %s
public : %s
I won't move either file, but you should choose one and move it to
%s
You may want to merge them manually, but be careful about exposing private
correspondences to the public.""" % (
o_pri_mbox_file, o_pub_mbox_file, mbox_file)
*----indentation would be wrong on this line.
|
|
|
|
|
|
| |
The example Makefile.pre.in should also look at Setup.thread and
Setup.local. Otherwise modules such as thread don't get incorporated
in extensions.
|
|
|
|
|
| |
semantics between CPython/JPython when the script source is piped to
stdin.
|
|
|
|
| |
correct Python shell (CPython or JPython).
|
|
|
|
| |
generalize the matching of function arguments.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#simple things. First step: rename the Imenu supportive variables and
#functions in this file to py-imenu-* so I can grok what is part of
#python-mode and what is part of Imenu.
(py-imenu-create-index-engine): Fixed problem with two classes in a
single file, caused by new semantics of py-beginning-of-def-or-class
when called programmatically.
#Note, there are still some problems with Imenu when arguments to
#functions are funky, but it should be much better now.
|
|
|
|
| |
#checkin script.
|
| |
|
| |
|
| |
|
|
|
|
| |
the de-queing of exec files work for NT XEmacs 21.0.
|
|
|
|
| |
when in an interactive session (suggested by B. Wiener).
|
|
|
|
|
|
| |
string in the argument to execfile() so a Windows temp directory
named, e.g. c:\\tmp doesn't get interpreted as a file name with an
embedded tab! (given by C. Waldman).
|
|
|
|
|
|
|
|
| |
this string should not end with whitespace.
(py-compute-indentation): Append whitespace regexp to
py-block-comment-prefix so that any combination of intervening
whitespace will be recognized.
|
| |
|
| |
|