* progmodes/python.el (inferior-python-mode): Fix hang in jit-lock.
Fix end-of-defun misbehavior. * progmodes/python.el (python-nav-beginning-of-defun): Rename from python-beginning-of-defun-function. Handle nested defuns correctly. (python-nav-end-of-defun): Rename from python-end-of-defun-function. Ensure forward movement. (python-info-current-defun): Reimplemented to work as intended with new fixed python-nav-{end,beginning}-of-defun. Stop scanning parent defuns as soon as possible.
Fix Imenu regression. * progmodes/python.el: (python-nav-beginning-of-defun): Fix forward movement when statement(s) separates point from defun. (python-imenu-prev-index-position): New function.
* progmodes/python.el: (python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local.
* progmodes/python.el (python-skeleton-class) (python-skeleton-def): Do not add space after defun name.
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Allow compiler-macros to be lambda expressions. * lisp/progmodes/python.el: Use cl-lib. Move var declarations outside of eval-when-compile. (python-syntax-context): Add compiler-macro. (python-font-lock-keywords): Simplify with De Morgan.
* progmodes/python.el: Remove cl dependency. (python-syntax-count-quotes): Replace incf call. (python-fill-string): Replace setf call.
* progmodes/python.el (python-shell-send-region): Add blank lines for non sent code so backtraces remain correct.
* progmodes/python.el: Support other commands triggering python-indent-line so indentation cycling continues to work. (python-indent-trigger-commands): New defcustom. (python-indent-line): Use it.
* progmodes/python.el: Bump defgroup :version to 24.3.
* progmodes/python.el (python-nav-end-of-statement): Rewrite in order to improve efficiency (Based on Daniel Colascione's <dancol@dancol.org> patch).
Update copyright notices for 2013.
* progmodes/python.el (python-nav-end-of-statement): Fix cornercase when handling multiline strings.
* lisp/progmodes/python.el: Enhancements to header documentation about skeletons.
* progmodes/python.el (python-shell-parse-command): Find python-shell-interpreter with modified environment.
* progmodes/python.el (python-pdbtrack-comint-output-filter-function): Enhancements on stacktrace detection. (thanks @gnovak)
Spelling fixes.
* progmodes/python.el (python-info-current-defun): Fix current defun detection.
* progmodes/python.el: Explain how to restore "cc-mode"-like forward-sexp movement in header documentation. (python-nav--forward-sexp): Behave like emacs-lisp-mode in comments and strings (GH bug 114).
* progmodes/python.el (python-indent-context): Fix python-info-line-ends-backslash-p call. (python-info-line-ends-backslash-p) (python-info-beginning-of-backslash): Respect line-number argument. (python-info-current-line-comment-p): Fix behavior when not at beginning-of-line. (python-util-position): Remove function. (python-util-goto-line): New function.