1. 12 Oct, 2014 1 commit
  2. 01 Oct, 2014 1 commit
  3. 30 Sep, 2014 1 commit
  4. 01 Sep, 2014 1 commit
  5. 18 Aug, 2014 1 commit
  6. 27 Jul, 2014 1 commit
  7. 21 Jul, 2014 1 commit
  8. 20 Jul, 2014 3 commits
  9. 19 Jul, 2014 2 commits
    • Fabián Ezequiel Gallina's avatar
      Fix Python shell prompts detection for remote hosts. · eb8cb39e
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-prompt-detect): Replace
      call-process with process-file and make it more robust.
      eb8cb39e
    • Fabián Ezequiel Gallina's avatar
      Autodetect Python shell prompts. · d949ade3
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el:
      (python-shell-interpreter-interactive-arg)
      (python-shell-prompt-detect-enabled)
      (python-shell-prompt-detect-failure-warning)
      (python-shell-prompt-input-regexps)
      (python-shell-prompt-output-regexps): New vars.
      (python-shell-prompt-calculated-input-regexp)
      (python-shell-prompt-calculated-output-regexp): New vars.
      (python-shell-get-process-name)
      (python-shell-internal-get-process-name)
      (python-shell-output-filter)
      (python-shell-completion-get-completions): Use them.
      (python-shell-prompt-detect)
      (python-shell-prompt-validate-regexps): New functions.
      (python-shell-prompt-set-calculated-regexps): New function.
      (inferior-python-mode): Use it.  Also honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-make-comint): Honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-get-or-create-process): Make it testable by allowing
      to call run-python non-interactively.
      (python-util-valid-regexp-p): New function.
      (python-shell-prompt-regexp, python-shell-prompt-block-regexp)
      (python-shell-prompt-output-regexp)
      (python-shell-prompt-pdb-regexp): Use it as defcustom :safe.
      
      * test/automated/python-tests.el (python-shell-make-comint-1):
      (python-shell-make-comint-2): Fix indentation.
      (python-shell-make-comint-3)
      (python-shell-make-comint-4): New tests.
      (python-shell-get-or-create-process-1): Fix test.
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): New tests.
      (python-shell-internal-get-or-create-process-1): Fix test.
      (python-shell-prompt-detect-1): New test.
      (python-shell-prompt-detect-2): New test.  (Bug#17370)
      (python-shell-prompt-detect-3)
      (python-shell-prompt-detect-4)
      (python-shell-prompt-detect-5)
      (python-shell-prompt-detect-6)
      (python-shell-prompt-validate-regexps-1)
      (python-shell-prompt-validate-regexps-2)
      (python-shell-prompt-validate-regexps-3)
      (python-shell-prompt-validate-regexps-4)
      (python-shell-prompt-validate-regexps-5)
      (python-shell-prompt-validate-regexps-6)
      (python-shell-prompt-validate-regexps-7)
      (python-shell-prompt-set-calculated-regexps-1)
      (python-shell-prompt-set-calculated-regexps-2)
      (python-shell-prompt-set-calculated-regexps-3)
      (python-shell-prompt-set-calculated-regexps-4)
      (python-shell-prompt-set-calculated-regexps-5)
      (python-shell-prompt-set-calculated-regexps-6)
      (python-util-valid-regexp-p-1): New tests.
      d949ade3
  10. 09 Jul, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      Fix dedenters and electric colon handling. · fded0b4a
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el
      (python-rx-constituents): Add dedenter and block-ender.
      (python-indent-dedenters, python-indent-block-enders): Delete.
      (python-indent-context): Return new case for dedenter-statement.
      (python-indent-calculate-indentation): Handle new case.
      (python-indent-calculate-levels): Fix levels calculation for
      dedenter statements.
      (python-indent-post-self-insert-function): Fix colon handling.
      (python-info-dedenter-opening-block-message): New function.
      (python-indent-line): Use it.
      (python-info-closing-block)
      (python-info-closing-block-message): Remove.
      (python-info-dedenter-opening-block-position)
      (python-info-dedenter-opening-block-positions)
      (python-info-dedenter-statement-p): New functions.
      
      * test/automated/python-tests.el
      (python-indent-block-enders-1)
      (python-indent-block-enders-2): Fix tests.
      (python-indent-block-enders-3)
      (python-indent-block-enders-4)
      (python-indent-block-enders-5)
      (python-indent-dedenters-1)
      (python-indent-dedenters-2): Remove tests.
      (python-indent-dedenters-1)
      (python-indent-dedenters-2)
      (python-indent-dedenters-3)
      (python-indent-dedenters-4)
      (python-indent-dedenters-5)
      (python-indent-dedenters-6)
      (python-indent-dedenters-7)
      (python-info-dedenter-opening-block-position-1)
      (python-info-dedenter-opening-block-position-2)
      (python-info-dedenter-opening-block-position-3)
      (python-info-dedenter-opening-block-positions-1)
      (python-info-dedenter-opening-block-positions-2)
      (python-info-dedenter-opening-block-positions-3)
      (python-info-dedenter-opening-block-positions-4)
      (python-info-dedenter-opening-block-positions-5)
      (python-info-dedenter-opening-block-message-1)
      (python-info-dedenter-opening-block-message-2)
      (python-info-dedenter-opening-block-message-3)
      (python-info-dedenter-opening-block-message-4)
      (python-info-dedenter-opening-block-message-5)
      (python-info-dedenter-statement-p-1)
      (python-info-dedenter-statement-p-2)
      (python-info-dedenter-statement-p-3)
      (python-info-dedenter-statement-p-4)
      (python-info-dedenter-statement-p-5): New tests.
      
      Fixes: debbugs:15163
      fded0b4a
  11. 01 Jul, 2014 1 commit
  12. 21 Jun, 2014 2 commits
  13. 06 Apr, 2014 1 commit
    • João Távora's avatar
      Fix triple-quoting electricity in python-mode · 7aecc2f6
      João Távora authored
      * lisp/progmodes/python.el (python-electric-pair-string-delimiter): Fix
      triple-quoting electricity. 
      
      * test/automated/python-tests.el (python-triple-quote-pairing): New test.
      (python-syntax-after-python-backspace): New test.
      
      Fixes: debbugs:17192
      7aecc2f6
  14. 15 Mar, 2014 1 commit
    • Juanma Barranquero's avatar
      lisp/progmodes/python.el: Fix docstring typos. · fd16b061
      Juanma Barranquero authored
      (defconst, python-syntax-count-quotes)
      (python-indent-region, python-indent-shift-right)
      (python-indent-dedent-line-backspace, python-nav-backward-sexp)
      (python-nav-backward-sexp-safe, python-nav-backward-up-list)
      (python-shell-prompt-block-regexp, python-shell-prompt-output-regexp)
      (python-shell-prompt-pdb-regexp, python-shell-enable-font-lock)
      (inferior-python-mode, python-shell-make-comint, run-python-internal)
      (python-shell-buffer-substring, python-shell-send-buffer)
      (python-pdbtrack-activate, python-pdbtrack-stacktrace-info-regexp)
      (python-completion-complete-at-point, python-fill-docstring-style)
      (python-eldoc-function, python-imenu-format-item-label)
      (python-imenu-format-parent-item-label)
      (python-imenu-format-parent-item-jump-label)
      (python-imenu--build-tree, python-imenu-create-index)
      (python-imenu-create-flat-index): Fix docstring typos.
      (python-indent-context, python-shell-prompt-regexp, run-python):
      Remove superfluous backslashes.
      (python-indent-line, python-nav-beginning-of-defun)
      (python-shell-get-buffer, python-shell-get-process)
      (python-info-current-defun, python-info-current-line-comment-p)
      (python-info-current-line-empty-p, python-util-popn): Doc fixes.
      (python-indent-post-self-insert-function, python-shell-send-file)
      (python-shell-completion-get-completions)
      (python-shell-completion-complete-or-indent)
      (python-eldoc--get-doc-at-point): Reflow docstrings.
      fd16b061
  15. 10 Feb, 2014 1 commit
  16. 04 Feb, 2014 1 commit
  17. 01 Jan, 2014 1 commit
  18. 26 Dec, 2013 1 commit
  19. 25 Dec, 2013 1 commit
    • Fabián Ezequiel Gallina's avatar
      * lisp/progmodes/python.el: · 01379221
      Fabián Ezequiel Gallina authored
      (python-nav--lisp-forward-sexp): New function.
      (python-nav--lisp-forward-sexp-safe): Use it.  Rename from
      python-nav-lisp-forward-sexp-safe.
      (python-nav--forward-sexp): New argument SAFE allows switching
      forward sexp movement behavior for parens.
      (python-nav-forward-sexp): Throw errors on unterminated parens.
      (python-nav-backward-sexp, python-nav-forward-sexp-safe)
      (python-nav-backward-sexp-safe): New functions.
      (python-shell-buffer-substring): Use
      `python-nav-forward-sexp-safe'.
      
      * test/automated/python-tests.el
      (python-nav-lisp-forward-sexp-safe-1): Remove test.
      (python-nav-forward-sexp-safe-1): New test.
      
      Fixes: debbugs:16191
      01379221
  20. 24 Dec, 2013 1 commit
  21. 13 Dec, 2013 1 commit
  22. 12 Dec, 2013 3 commits
  23. 29 Nov, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el (python-mode-map): Remove binding for ":". · bd15d9d1
      Stefan Monnier authored
      (python-indent-electric-colon): Remove command.
      (python-indent-post-self-insert-function): Integrate the previous code
      of python-indent-electric-colon.  Make it conditional on
      electric-indent-mode.
      (python-mode): Add ?: to electric-indent-chars.
      Move python-indent-post-self-insert-function to the end of
      post-self-insert-hook.
      bd15d9d1
  24. 26 Nov, 2013 1 commit
  25. 23 Nov, 2013 3 commits
  26. 05 Nov, 2013 1 commit
  27. 04 Nov, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el: Fix up last change. · e5afbcac
      Stefan Monnier authored
      (python-shell--save-temp-file): New function.
      (python-shell-send-string): Use it.  Remove `msg' arg.  Don't assume
      `string' comes from the current buffer.
      (python-shell-send-string-no-output): Remove `msg' arg.
      (python--use-fake-loc): New var.
      (python-shell-buffer-substring): Obey it.  Try to compensate for the
      extra coding line added by python-shell--save-temp-file.
      (python-shell-send-region): Use python-shell--save-temp-file and
      python-shell-send-file directly.  Add `nomain' argument.
      (python-shell-send-buffer): Use python-shell-send-region.
      (python-electric-pair-string-delimiter): New function.
      (python-mode): Use it.
      e5afbcac
  28. 30 Oct, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el (python-shell-get-buffer): New function. · 195ee2f0
      Stefan Monnier authored
      (python-shell-get-process): Use it.
      (python-shell-send-string): Always use utf-8 and add a cookie to tell
      Python which encoding was used.  Don't split-string since we only care
      about the first line.  Return the temp-file, if applicable.
      (python-shell-send-region): Tell compile.el how to turn locations in
      the temp-file into locations in the source buffer.
      195ee2f0
  29. 07 Oct, 2013 1 commit
  30. 11 Sep, 2013 1 commit
    • Glenn Morris's avatar
      Improve previous interpreter-mode-alist change · 2a08047a
      Glenn Morris authored
      * lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
      (set-auto-mode): Don't regexp-quote elements.
      
      * lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
      
      * lisp/progmodes/cc-mode.el (interpreter-mode-alist):
      * lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
      Revert previous change.
      
      * etc/NEWS: Update.
      2a08047a
  31. 10 Sep, 2013 2 commits