| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
organize it better...
|
|
|
|
|
|
|
| |
"3.67 fixes Imenu as far as classes are concerned, but some default
values for function arguments are still not supported."
This ought to fix that problem.
|
|
|
|
|
|
|
|
|
|
|
| |
indetnation of normal statements: The regular expression that searches
for indenting comment lines has been changed to not require a
space/tab after the first `#'. We then explicitly look for
py-block-comment-prefix depending on the value of
py-honor-comment-indentation.
I think this more accurately reflects the documentation for
py-honor-comment-indentation.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
conformations, etc., etc. inspired and given by Michael Ernst. These
include error string fixes, moving of comments to docstrings, some
other non-related typos, terminology standardizing (b/w TP and myself,
and b/w myself and myself :-) although more can still be done.
E.g. "outdenting" => "dedenting".
|
|
|
|
|
|
| |
serial number isn't enough to uniquify the temp file name -- what if
two users are on the same machine? Add in the (emacs-pid) to help
further. Should never be tickled on Emacs 20, XEmacs 20, 21.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
py-mark-def-or-class): Integrated Michael Ernst latest patches.
Primarily, it allows functions that search or mark defs/classes based
on programmatic specification, to take an 'either flag value which
allows searching for both classes and defs (stopping at the nearest
construct).
Also clean up some docstrings.
|
|
|
|
|
|
|
|
|
|
|
|
| |
comment-indent-function's default lambda value (in simple.el), this
version finally kills this nit: auto-filling a comment that starts in
column zero with filladapt turned off would cascade the #'s to the
right.
Now auto-filling seems to work with or without filladapt, and with the
comment starting in any column.
(python-mode): Set comment-indent-function.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
py-execute-import-or-reload. Same semantics as
compilation-ask-about-save.
|
| |
|
|
|
|
|
| |
(single and double quoted triple quoted strings :-) with embedded
single like-quotes. Also recognizes raw prefix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(py-execute-import-or-reload): Cool new command that imports or
reloads the current file as a module, so as not to clutter the global
namespace. Bound to C-c C-m.
(py-execute-def-or-class): New command that sends the current def or
class to the interpreter. Bound to C-M-x.
(py-execute-string): New command that sends arbitrary string to the
interpreter. Not bound by default.
(py-describe-mode): Doco updates.
|
|
|
|
|
|
|
|
|
| |
py-beginning-of-def-or-class, and defaliased for backwards
compatibility. ME patch to add optional second argument, count.
(end-of-python-def-or-class): Renamed to py-end-of-def-or-class, and
defaliased for backwards compatibility. ME patch to add optional
second argument, count.
|
|
|
|
|
|
|
|
| |
(py-shell): Recognize the Python debugger prompt
(py-jump-to-exception): Force into python-mode any buffer that gets
jumped to on exception. Cope with py-exception-buffer possibly a
cons.
|
|
|
|
| |
#of his patches to follow.
|
| |
|
|
|
|
| |
whitespace and comment noise.
|
| |
|
| |
|
|
|
|
|
| |
The sections are now in a more useful order: the most recent changes
are listed first.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
JPython interpreters. This implementation may suck.
(py-jpython-command, py-jpython-command-args): New variables.
(py-mode-map): py-toggle-shells bound to C-c C-t
(py-toggle-shells): Command to toggle between using CPython (the
default) and JPython. This is buffer local, and notice the mode-name
change.
(py-shell): Use either CPython or JPython. Note that py-execute-*
still needs to be modified.
|
| |
|
|
|
|
| |
inheritance list.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
an open paren, do a better job of reindenting the line. For example:
def foo():
print 'hello %s, %d' % (
a, b)
Hit TAB on the line starting with `a'. Without this patch this line
will never be reindented.
|
|
|
|
|
|
|
|
|
| |
(py-compute-indentation): int-to-char isn't defined in Emacs, but we
don't really need it anyway, so just remove this conversion. XEmacs
is happy either way.
(py-parse-state): The Emacs branch (i.e. w/o buffer-syntactic-context)
wasn't adjusting point correctly.
|
|
|
|
|
|
|
|
|
|
| |
otherwise return nil.
(py-execute-region): When executing the buffer asynchronously in a
subprocess, if an exception occurred, show both the output buffer and
the file containing the exception, leaving point on the source line
containing bottom-most error in the traceback. If no exception
occurred, jump to the output buffer (no change).
|
|
|
|
| |
zero sized output buffer.
|
|
|
|
|
| |
it at first seems. I think we've got a good idea of what to do, but
it'll be a bit of work... for later.
|
|
|
|
|
|
| |
(python-font-lock-keywords): Better regexp given by Sjoerd. This
matches only mixed indentation which is probably more useful than
matching all tabs.
|
|
|
|
|
|
|
|
| |
from CC Mode.
(py-guess-indent-offset): Teach it about colons in `literals'
(e.g. comments and strings). Don't false hit colons in literals; keep
searching for a real block introducing line.
|
|
|
|
|
| |
#custom.el and have an up-to-date version (i.e. one that defines
#defcustom -- which Emacs 19.34's by default does not).
|
|
|
|
|
|
|
| |
of a line in py-tab-face to aid in seeing mixed tab/space indentation.
This face defaults to the `default' face so it is unobtrusive until
you `M-x customize-face' py-tab-face to something obnoxious like
"Yellow".
|
|
|
|
|
| |
(python-mode): Implement new policy: never turn indent-tabs-mode on.
Only turn it off if tab-width != py-indent-offset.
|
| |
|
|
|
|
|
| |
magic comment. Now Guido only has to worry about the northern
Wisconsin Braces Freedom Fighter Militia.
|
|
|
|
|
|
|
|
|
|
| |
setting of py-indent-offset and indent-tabs-mode.
(python-mode): After python-mode-hook is run, do the automagic
calculation if py-smart-indentation is non-nil.
(py-parse-state): Get rid of unused variable to quiet the
byte-compiler.
|