aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* New function python-clone-local-variablesFabián Ezequiel Gallina2012-05-171-40/+16
| | | | | | Copied from org.el: it allows the `python-shell-make-comint' to be simplified. It copies all local variables from a buffer to the current.
* Fix typo enviroment => environmentFabián Ezequiel Gallina2012-05-171-7/+7
| | | | | | | | Removed function: * python-shell-calculate-process-enviroment New function: * python-shell-calculate-process-environment
* Make shells inherit variables from parent buffer and internal shells not ↵Fabián Ezequiel Gallina2012-05-171-11/+52
| | | | | | | | | | show by default. python-shell-make-comint now passes all parent buffer variables to the comint buffer created ensuring local variables work as intended. Also, this function now receives a third optional argument called POP that establishes if the created comint buffer should be displayed or not after its creation.
* Use defcustom with :safe whenever is possible.Fabián Ezequiel Gallina2012-05-171-27/+58
|
* Refactored run-python and run-python-internal.Fabián Ezequiel Gallina2012-05-171-23/+22
| | | | | | | | Created new function python-shell-make-comint that takes care of creating comint processes. New Function: * python-shell-make-comint
* Fixed cornercase for normal lines when indentation was triggered in the ↵Fabián Ezequiel Gallina2012-05-171-2/+3
| | | | middle of them
* Make python-info-continuation-line-p to check context type matchesFabián Ezequiel Gallina2012-05-171-17/+38
| | | | | | | | In order for a line to be continuation of another, they must be on the same context. New Function: * python-info-ppss-context-type
* Implemented simple virtualenv setup via python-shell-virtualenv-path variable.Fabián Ezequiel Gallina2012-05-171-30/+59
| | | | | | | | | | | | | when set to a string, makes the values stored in `python-shell-process-environment' and `python-shell-exec-path' to be modified properly so shells are started with the specified virtualenv. New Variables: * python-shell-virtualenv-path New functions: * python-shell-calculate-process-environment * python-shell-calculate-exec-path
* Implemented internal python shell.Fabián Ezequiel Gallina2012-05-171-0/+75
| | | | | | | | | | | | | | | | | | This new kind of shell is intended to be used for generic communication related to defined configurations. The main difference with global or dedicated shells is that these ones are attached to a configuration, not a buffer. This means that can be used for example to retrieve the sys.path and other stuff, without messing with user shells. New Variables: * python-shell-internal-buffer-name, New functions: * python-shell-internal-get-process-name * run-python-internal * python-shell-internal-get-or-create-process * python-shell-internal-send-string (makes python-send-receive obsolete)
* Backported triple quote syntax from Emacs 24Fabián Ezequiel Gallina2012-05-171-40/+26
|
* Make package description separator contain 3 dashes (ELPA conformance)Fabián Ezequiel Gallina2012-05-171-1/+1
|
* Updated TODOFabián Ezequiel Gallina2012-05-171-3/+2
|
* fixed font-lock-builtin-face regexpFabián Ezequiel Gallina2012-05-171-15/+14
|
* Set local variable `mode-require-final-newline' to tFabián Ezequiel Gallina2012-05-171-0/+2
|
* None, True, False, Ellipsis, __debug__, and NotImplemented now use ↵Fabián Ezequiel Gallina2012-05-171-16/+19
| | | | | | | | | | font-lock-constant-face Also copyright, license, credits, quit, exit are removed from font-lock since they are added by the site module and only useful for shell interaction and not programs. See: http://docs.python.org/release/3.1.3/library/constants.html#constants-added-by-the-site-module
* python-info-current-defun: fixed cornercase that caused imenu to breakFabián Ezequiel Gallina2012-05-171-2/+5
|
* Added package information for ELPA conformanceFabián Ezequiel Gallina2012-05-171-0/+2
|
* Fixed eldoc behavior.Fabián Ezequiel Gallina2012-05-171-14/+23
| | | | | | | | | | | | | | | * python-eldoc-setup-code: The code to get help now uses the inspect element. When an object doesn't have documentation and if it is callable it returns the signature for it. Also when an object does contain documentation it only returns the first line. * python-eldoc-at-point: has been simplified to just message the doc header of objects. * python-info-current-defun: was not taking into account the current indentation so point was always inside a defun, even if the indentation was less or equal than the defun above.
* Indentation enhancements on after-backslashFabián Ezequiel Gallina2012-05-171-6/+7
| | | | | Multiline sentences beginning with "import", "from" or "return" are indented correctly now.
* fixed last paren indentation logicFabián Ezequiel Gallina2012-05-171-1/+1
|
* Fixed weird cornercase behavior in python-indent-calculate-indentation.Fabián Ezequiel Gallina2012-05-171-6/+3
| | | | | | | Doing (setq python-indent-levels '(0)) was causing the value of python-indent-levels to not be initialized correctly on next calls to python-indent-calculate-indentation. Using (setq python-indent-levels (list 0)) instead does the trick but I'm not sure why.
* increased forward-comment COUNT variable value in all callsFabián Ezequiel Gallina2012-05-171-11/+11
|
* docstring enhancementsFabián Ezequiel Gallina2012-05-171-11/+16
|
* indentation fixes on after backslashFabián Ezequiel Gallina2012-05-171-28/+40
|
* Implemented python-nav-backward-sentence, python-nav-forward-sentenceFabián Ezequiel Gallina2012-05-171-0/+34
| | | | | Also small fixes to python-nav-sentence-start and python-nav-sentence-end were added.
* Added python-nav-sentence-start and python-nav-sentence-end functionsFabián Ezequiel Gallina2012-05-171-8/+23
|
* fixed CL related bytecompilation errors and set make-tree for imenu defaultFabián Ezequiel Gallina2012-05-171-10/+34
|
* Implemented imenu support.Fabián Ezequiel Gallina2012-05-171-9/+138
| | | | | | | | | | | | | | | | | | New variables: + python-imenu-include-defun-type + python-imenu-make-tree + python-imenu-subtree-root-label + python-imenu-index-alist New Functions: + python-imenu-tree-assoc + python-imenu-make-element-tree + python-imenu-make-tree + python-imenu-create-index API changes: + python-info-current-defun now supports an optional argument called INCLUDE-TYPE.
* Documentation enhancements with regards to code checking. (thanks schickm)Fabián Ezequiel Gallina2012-05-171-2/+2
|
* Fixed python-info-current-defun for classes without basesFabián Ezequiel Gallina2012-05-171-4/+5
|
* Fixed infinite loop on python-info-current-defunFabián Ezequiel Gallina2012-05-171-14/+21
| | | | | For this python-beginning-of-defun-function has been modified to return t or nil if a defun was found.
* Docstrings enhancementsFabián Ezequiel Gallina2012-05-171-5/+9
|
* Small cornercase fix to python-info-current-defun.Fabián Ezequiel Gallina2012-05-171-1/+1
| | | | Returned the bad defun name when point was at the beginning of defun.
* Fixed python-info-current-defun to match new navigation code.Fabián Ezequiel Gallina2012-05-171-21/+27
| | | | | python-nav-beginning-of-defun and python-beginning-of-defun-function now support a new extra optional argument called NODECORATORS.
* Replaced references from python-beginning-of-innermost-defun to ↵Fabián Ezequiel Gallina2012-05-171-10/+9
| | | | python-beginning-of-defun-function
* 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
|