aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* User customizable fill-paragraph behavior.Fabián Ezequiel Gallina2012-05-171-63/+112
| | | | | | | | | | | | | | | | | | | | For this, four new variables which contain the symbol name of the function that specifies the behavior of fill-paragraph on certain conditions were added: * python-fill-comment-function: For comments * python-fill-string-function: For strings * python-fill-decorator-function: For decorators * python-fill-paren-function: For parens All of these variables are safe local variables in the case the value provided is a symbol. Out of the box, they default to these four new functions respectively: * python-fill-comment * python-fill-string * python-fill-decorator * python-fill-paren
* Corrected implementations for python-{beginning,end}-of-defun functions.Fabián Ezequiel Gallina2012-05-171-100/+64
| | | | | | | | | | | | | | | | | | | | When point is at beginning-of-defun, end-of-defun moves to the end of the defun, even if it contains nested defuns. When point is at any inner defun end-of-defun moves to the end of it, if another inner defun exists at the same level point is moved to it. For beginning-of-defun things are funkier, it would move backwards following nested defuns in order. This will be fixed soon. Note: Decorators are considered part of defuns. Removed: * python-use-beginning-of-innermost-defun * python-beginning-of-innermost-defun-regexp Renamed: * python-beginning-of-defun => python-nav-beginning-of-defun * python-beginning-of-defun-regexp => python-nav-beginning-of-defun-regexp
* New variable python-use-beginning-of-innermost-defunFabián Ezequiel Gallina2012-05-171-0/+15
| | | | | Controls if beginning-of-defun function should go to outermost or innermost defun.
* Better indentation handling when inside parens.Fabián Ezequiel Gallina2012-05-171-3/+3
|
* Fixed indentation issue when indenting a python-indent-dedenter from end of lineFabián Ezequiel Gallina2012-05-171-3/+4
|
* new variables python-shell-process-environment and python-shell-exec-pathFabián Ezequiel Gallina2012-05-171-1/+51
| | | | The main reason for these new variables is virtualenv support.
* New variable python-shell-send-setup-max-waitFabián Ezequiel Gallina2012-05-171-1/+9
| | | | Controls the timeout for output just before sending the setup code.
* Documentation enhancementsFabián Ezequiel Gallina2012-05-171-101/+90
|
* Better shell setup using the new python-shell-send-setup-codes function.Fabián Ezequiel Gallina2012-05-171-42/+32
| | | | | At the moment of shell setup, all the pending output is accepted so the prompt is always displayed correctly.
* Added indentation support for continuation of dotted expressionsFabián Ezequiel Gallina2012-05-171-0/+14
| | | | | | | | | | | Expressions like these are now supported and indented correctly: Object.objects.exclude(foo=1)\ .filter(bar=2)\ .values_list('baz') Also added a small fix to python-info-assignment-continuation-line-p to check the match for the operator is not inside some paren.
* Enhancements to python-indent-electric-colon.Fabián Ezequiel Gallina2012-05-171-7/+12
| | | | Only de-indent line if it really closes a block.
* New function python-info-ppss-contextFabián Ezequiel Gallina2012-05-171-27/+48
| | | | | | | Use this function for most syntax-ppss related tasks. While in some parts code could be longer it makes everything more readable. This is the first step for a cleaner indentation machinery.
* Added commentary about installing pyreadline on system that bundles Python ↵Fabián Ezequiel Gallina2012-05-171-0/+6
| | | | without readline
* Remove find-file-noselect invocation in python-shell-send-fileFabián Ezequiel Gallina2012-05-171-1/+0
|
* Use insert instead of insert-stringFabián Ezequiel Gallina2012-05-171-1/+1
|
* Better non-standard shell integration supportFabián Ezequiel Gallina2012-05-171-23/+55
| | | | | | | | | | | | | | | | | | | | | | | Added python-shell-prompt-output-regexp to match the prompts added before output in shells like iPython. With the value of this variable the output generated for python-shell-send-string-no-ouput is cleaned up. Moved completion variables and bindings setup for shell to inferior-python-mode definition. Renamed python-shell-completion-strings-code to python-shell-completion-string-code. improved python-shell-completion--get-completions string splitting. Cleaned up some unecessary messages. Better code sending need test for python-shell-completion-setup python-ffap-setup and python-eldoc-setup. Added example for iPython integration in the commentary section.
* Shell integration improvements and cleanupsFabián Ezequiel Gallina2012-05-171-85/+59
| | | | | | | | | | | | Removed functions python-shell-clear-latest-output and python-shell-send-and-clear-output in favor of python-shell-send-string-no-output. Also python-shell-send-string now supports multiline string statements so you won't have to worry calling python-shell-send-file again. All this changes should make integrations with other Python shells than standard more robust.
* python.el now bytecompiles without warningsFabián Ezequiel Gallina2012-05-171-27/+31
|
* Implemented Skeletons after GNU/Emacs python.elFabián Ezequiel Gallina2012-05-171-2/+156
| | | | | | | | 6 basic skeletons are defined: class, def, for, if, try and while. While these skeletons are strongly based on GNU/Emacs' current python.el a better definition macro, a generic template for try/except/finally/else blocks and a cool menu display is included.
* Explain we have python-indent-electric-colonFabián Ezequiel Gallina2012-05-171-1/+3
|
* Don't deactivate mark after indenting commandsFabián Ezequiel Gallina2012-05-171-30/+33
|
* Small fix to python-indent-electric-colonFabián Ezequiel Gallina2012-05-171-0/+1
| | | | | Check current indentation is greater than the current calculated indentation.
* Implemented python-indent-electric-colonFabián Ezequiel Gallina2012-05-171-0/+14
|
* Fixed indentation of multi-line function call's closing parenthesisFabián Ezequiel Gallina2012-05-171-18/+26
|
* Make inferior-python-mode-current-file be set via convert-standard-filenameFabián Ezequiel Gallina2012-05-171-5/+5
|
* Enhanced python-shell-send-file functionFabián Ezequiel Gallina2012-05-171-16/+23
| | | | | | | | | | | python-shell-send-file function now can be called interactively and will do the right thing. Also the python code that sent the file was improved so the shell considers the correct path when evaluating the file. Removed the inferior-python-mode-current-temp-file variable, after this update inferior-python-mode-current-file is enough.
* Added commentary about auto-indentation on newlines for python-mode.el usersFabián Ezequiel Gallina2012-05-171-1/+16
|
* Use convert-standard-filename to fix temp files pathFabián Ezequiel Gallina2012-05-171-12/+1
|
* Fixed highlighting for dictionary assignmentsFabián Ezequiel Gallina2012-05-171-1/+2
|
* Fixed pdb-track on WindowsFabián Ezequiel Gallina2012-05-171-0/+11
| | | | | make-temp-file is returning the temp file path with the wrong type of slashes.
* Fixed incorrect syntax highlighting for variable assignationsFabián Ezequiel Gallina2012-05-171-1/+2
|
* Fixed indentation guess logic to never accept 0 as a possible valueFabián Ezequiel Gallina2012-05-171-1/+3
|
* Implemented python-eldoc-at-point (python-describe-symbol replacement)Fabián Ezequiel Gallina2012-05-171-11/+42
|
* Implemented python-checkFabián Ezequiel Gallina2012-05-171-2/+35
|
* Small changes to ffap supportFabián Ezequiel Gallina2012-05-171-3/+5
|
* Added ffap supportFabián Ezequiel Gallina2012-05-171-3/+57
|
* Simplified python-eldoc-function using python-shell-send-and-clear-outputFabián Ezequiel Gallina2012-05-171-12/+2
|
* Implemeneted python-shell-clear-latest-output and ↵Fabián Ezequiel Gallina2012-05-171-17/+41
| | | | | | | python-shell-send-and-clear-output Also Simplified python-shell-completion--get-completions using python-shell-send-and-clear-output
* Eldoc integration is now compatible with python 3Fabián Ezequiel Gallina2012-05-171-4/+9
|
* Make shell use completion-at-point for autocompletion.Fabián Ezequiel Gallina2012-05-171-0/+4
|
* Fixed called-interactively-p invocation.Fabián Ezequiel Gallina2012-05-171-1/+1
|
* Cleaned up TODOFabián Ezequiel Gallina2012-05-171-4/+5
|
* Enhanced shell and code autocompletion.Fabián Ezequiel Gallina2012-05-171-82/+54
| | | | | | | | python-shell-completion-complete-at-point and python-completion-complete-at-point now share common code. Also lots of fixes related to the cleanup of shell output has been made so completion code is really robust now.
* Fixes to shell completion at pointFabián Ezequiel Gallina2012-05-171-39/+40
|
* Fixed shell region sendingFabián Ezequiel Gallina2012-05-171-13/+8
|
* Documentation fixesFabián Ezequiel Gallina2012-05-171-8/+9
|
* Do not indent at the beginning of buffer fixFabián Ezequiel Gallina2012-05-171-1/+3
|
* Do not indent at the beginning of bufferFabián Ezequiel Gallina2012-05-171-0/+3
|
* Fixed infinite while loop in python-info-current-defunFabián Ezequiel Gallina2012-05-171-1/+2
| | | | | | Was caused when a beginning of defun was in the beginning of buffer because python-beginning-of-innermost-defun never reached the real start when (bobp)
* Modified autocompletion code setupFabián Ezequiel Gallina2012-05-171-2/+5
| | | | Now it is compatible with python 2.x and python 3.x