| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| |
| |
| |
| |
| | |
* lisp/ChangeLog: Fix Changelog Entry.
* progmodes/python.el (python-imenu-create-flat-index): Remove
leftover `message' call and give credit to old
imenu--flatten-index-alist.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lisp/progmodes/python.el:
(python-imenu-prev-index-position):
(python-imenu-format-item-label-function)
(python-imenu-format-parent-item-label-function)
(python-imenu-format-parent-item-jump-label-function):
New vars.
(python-imenu-format-item-label)
(python-imenu-format-parent-item-label)
(python-imenu-format-parent-item-jump-label)
(python-imenu--put-parent, python-imenu--build-tree)
(python-imenu-create-index, python-imenu-create-flat-index)
(python-util-popn): New functions.
(python-mode): Set imenu-create-index-function to
python-imenu-create-index.
* test/automated/python-tests.el (python-imenu-prev-index-position-1):
Removed test.
(python-imenu-create-index-1, python-imenu-create-flat-index-1):
New tests.
Fixes: debbugs:14058
|
| | |
| |
| |
| |
| |
| |
| |
| | |
and do not care about match data.
* test/automated/python-tests.el (python-nav-backward-defun-2)
(python-nav-backward-defun-3, python-nav-forward-defun-2)
(python-nav-forward-defun-3): New tests.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
* lisp/progmodes/python.el (python-nav--syntactically)
(python-nav--forward-defun, python-nav-backward-defun)
(python-nav-forward-defun): New functions.
* test/automated/python-tests.el (python-nav-backward-defun-1)
(python-nav-forward-defun-1): New tests.
|
| | |
| |
| |
| |
| | |
(python-syntax-context): Use named compiler-macro for backwards
compatibility with Emacs 24.x.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
python-mode-abbrev-table.
(python-skeleton-define): Adjust accordingly.
(python-mode-abbrev-table): New table that inherits from it so that
python-skeleton-autoinsert does not affect non-skeleton abbrevs.
* lisp/abbrev.el (abbrev--symbol): New function, extracted from abbrev-symbol.
(abbrev-symbol): Use it.
(abbrev--before-point): Use it since we already handle inheritance.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lisp/progmodes/python.el (python-indent-block-enders): New var.
(python-indent-calculate-indentation): Use it.
* test/automated/python-tests.el
(python-indent-block-enders): New test.
(python-info-current-defun-2): Fix test.
Fixes: debbugs:13888
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
match-data cluttering prevention.
|
| | |
| |
| |
| | |
defun name retrieval because of unwanted match-data cluttering.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
forward-sexp movement in header documentation.
(python-nav--forward-sexp): Behave like emacs-lisp-mode in
comments and strings (GH bug 114).
Fixes: debbugs:13642
|
| | |
| |
| |
| |
| |
| | |
defun detection.
Fixes: debbugs:13618
|
| | | |
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
(python-pdbtrack-comint-output-filter-function): Enhancements on
stacktrace detection. (thanks @gnovak)
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
python-shell-interpreter with modified environment.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| | |
skeletons.
Fixes: debbugs:5716
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
cornercase when handling multiline strings.
|
| |\ \
| |/ |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
order to improve efficiency (Based on Daniel Colascione's
<dancol@dancol.org> patch).
Fixes: debbugs:13182
|
| | | |
|
| | |
| |
| |
| | |
2012-12-29T12:57:49Z!fgallina@gnu.org from trunk.
|
| | |
| |
| |
| |
| |
| | |
python-indent-line so indentation cycling continues to work.
(python-indent-trigger-commands): New defcustom.
(python-indent-line): Use it.
|
| | |
| |
| |
| | |
for non sent code so backtraces remain correct.
|
| | |
| |
| |
| |
| | |
(python-syntax-count-quotes): Replace incf call.
(python-fill-string): Replace setf call.
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
(python-skeleton-def): Do not add space after defun name.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.
|
| | |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |/
|
|
|
|
|
|
| |
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 (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.
|
| |
|
|
|
|
| |
jit-lock.
Fixes: debbugs:12645
|
| |
|
|
|
| |
subtitute-key-definition with proper command remapping.
(python-nav--up-list): Fix behavior for blocks on the same level.
|
| |
|
|
|
|
|
| |
* progmodes/python.el (python-nav-up-list)
(python-nav-backward-up-list): New functions.
(python-mode-map): Define substitute key for backward-up-list to
python-nav-backward-up-list.
|
| |
|
|
|
|
|
| |
python-fill-paragraph-function. Fixed fill-paragraph for
decorators.
Fixes: debbugs:12605
|
| |
|
|
|
|
| |
carriage return in OSX.
Fixes: debbugs:12409
|
| |
|
|
|
|
|
|
|
| |
* progmodes/python.el (python-rx-constituents): Added
string-delimiter.
(python-syntax-propertize-function): Use it.
(python-shell-output-syntax-table): New var.
(inferior-python-mode): Prevent unbalanced parens/quotes from
previous output mess with current input context.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* progmodes/python.el (python-nav-beginning-of-statement)
(python-nav-end-of-statement): Return point-marker.
(python-nav-forward-sexp): lisp-like forward-sexp behavior.
(python-info-current-symbol)
(python-info-statement-starts-block-p): Rename from
python-info-beginning-of-block-p.
(python-info-statement-ends-block-p): Rename from
python-info-end-of-block-p.
(python-info-beginning-of-statement-p)
(python-info-end-of-statement-p)
(python-info-beginning-of-block-p, python-info-end-of-block-p):
New functions.
|
| |
|
|
|
| |
(python-shell-make-comint): Fixed initialization of local
variables copied from parent buffer.
|
| |
|
|
|
|
|
| |
* lisp/progmodes/python.el (python-indent-context): Give priority to
inside-string context. Make comments indentation markers.
(python-indent-region): Do not mess with strings, unless it's the
enclosing set of quotes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* progmodes/python.el (inferior-python-mode):
(python-shell-make-comint): Fix initialization of
comint-prompt-regexp from copied file local variables.
(python-shell-fetched-lines): Remove var.
(python-shell-output-filter-in-progress): Rename from
python-shell-fetch-lines-in-progress.
(python-shell-output-filter-buffer): Rename from
python-shell-fetch-lines-string.
(python-shell-fetch-lines-filter): Delete function.
(python-shell-output-filter): New function.
(python-shell-send-string-no-output): Use them.
|