summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
AgeCommit message (Collapse)Author
2012-05-17Renamed python-clone-local-variables to python-util-clone-local-variablesFabián Ezequiel Gallina
2012-05-17New function python-clone-local-variablesFabián Ezequiel Gallina
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.
2012-05-17Fix typo enviroment => environmentFabián Ezequiel Gallina
Removed function: * python-shell-calculate-process-enviroment New function: * python-shell-calculate-process-environment
2012-05-17Make shells inherit variables from parent buffer and internal shells not ↵Fabián Ezequiel Gallina
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.
2012-05-17Use defcustom with :safe whenever is possible.Fabián Ezequiel Gallina
2012-05-17Refactored run-python and run-python-internal.Fabián Ezequiel Gallina
Created new function python-shell-make-comint that takes care of creating comint processes. New Function: * python-shell-make-comint
2012-05-17Fixed cornercase for normal lines when indentation was triggered in the ↵Fabián Ezequiel Gallina
middle of them
2012-05-17Make python-info-continuation-line-p to check context type matchesFabián Ezequiel Gallina
In order for a line to be continuation of another, they must be on the same context. New Function: * python-info-ppss-context-type
2012-05-17Implemented simple virtualenv setup via python-shell-virtualenv-path variable.Fabián Ezequiel Gallina
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
2012-05-17Implemented internal python shell.Fabián Ezequiel Gallina
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)
2012-05-17Backported triple quote syntax from Emacs 24Fabián Ezequiel Gallina
2012-05-17Make package description separator contain 3 dashes (ELPA conformance)Fabián Ezequiel Gallina
2012-05-17Updated TODOFabián Ezequiel Gallina
2012-05-17fixed font-lock-builtin-face regexpFabián Ezequiel Gallina
2012-05-17Set local variable `mode-require-final-newline' to tFabián Ezequiel Gallina
2012-05-17None, True, False, Ellipsis, __debug__, and NotImplemented now use ↵Fabián Ezequiel Gallina
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
2012-05-17python-info-current-defun: fixed cornercase that caused imenu to breakFabián Ezequiel Gallina
2012-05-17Added package information for ELPA conformanceFabián Ezequiel Gallina
2012-05-17Fixed eldoc behavior.Fabián Ezequiel Gallina
* 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.
2012-05-17Indentation enhancements on after-backslashFabián Ezequiel Gallina
Multiline sentences beginning with "import", "from" or "return" are indented correctly now.
2012-05-17fixed last paren indentation logicFabián Ezequiel Gallina
2012-05-17Fixed weird cornercase behavior in python-indent-calculate-indentation.Fabián Ezequiel Gallina
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.
2012-05-17increased forward-comment COUNT variable value in all callsFabián Ezequiel Gallina
2012-05-17docstring enhancementsFabián Ezequiel Gallina
2012-05-17indentation fixes on after backslashFabián Ezequiel Gallina
2012-05-17Implemented python-nav-backward-sentence, python-nav-forward-sentenceFabián Ezequiel Gallina
Also small fixes to python-nav-sentence-start and python-nav-sentence-end were added.
2012-05-17Added python-nav-sentence-start and python-nav-sentence-end functionsFabián Ezequiel Gallina
2012-05-17fixed CL related bytecompilation errors and set make-tree for imenu defaultFabián Ezequiel Gallina
2012-05-17Implemented imenu support.Fabián Ezequiel Gallina
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.
2012-05-17Documentation enhancements with regards to code checking. (thanks schickm)Fabián Ezequiel Gallina
2012-05-17Fixed python-info-current-defun for classes without basesFabián Ezequiel Gallina
2012-05-17Fixed infinite loop on python-info-current-defunFabián Ezequiel Gallina
For this python-beginning-of-defun-function has been modified to return t or nil if a defun was found.
2012-05-17Docstrings enhancementsFabián Ezequiel Gallina
2012-05-17Small cornercase fix to python-info-current-defun.Fabián Ezequiel Gallina
Returned the bad defun name when point was at the beginning of defun.
2012-05-17Fixed python-info-current-defun to match new navigation code.Fabián Ezequiel Gallina
python-nav-beginning-of-defun and python-beginning-of-defun-function now support a new extra optional argument called NODECORATORS.
2012-05-17Replaced references from python-beginning-of-innermost-defun to ↵Fabián Ezequiel Gallina
python-beginning-of-defun-function
2012-05-17User customizable fill-paragraph behavior.Fabián Ezequiel Gallina
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
2012-05-17Corrected implementations for python-{beginning,end}-of-defun functions.Fabián Ezequiel Gallina
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
2012-05-17New variable python-use-beginning-of-innermost-defunFabián Ezequiel Gallina
Controls if beginning-of-defun function should go to outermost or innermost defun.
2012-05-17Better indentation handling when inside parens.Fabián Ezequiel Gallina
2012-05-17Fixed indentation issue when indenting a python-indent-dedenter from end of lineFabián Ezequiel Gallina
2012-05-17new variables python-shell-process-environment and python-shell-exec-pathFabián Ezequiel Gallina
The main reason for these new variables is virtualenv support.
2012-05-17New variable python-shell-send-setup-max-waitFabián Ezequiel Gallina
Controls the timeout for output just before sending the setup code.
2012-05-17Documentation enhancementsFabián Ezequiel Gallina
2012-05-17Better shell setup using the new python-shell-send-setup-codes function.Fabián Ezequiel Gallina
At the moment of shell setup, all the pending output is accepted so the prompt is always displayed correctly.
2012-05-17Added indentation support for continuation of dotted expressionsFabián Ezequiel Gallina
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.
2012-05-17Enhancements to python-indent-electric-colon.Fabián Ezequiel Gallina
Only de-indent line if it really closes a block.
2012-05-17New function python-info-ppss-contextFabián Ezequiel Gallina
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.
2012-05-17Added commentary about installing pyreadline on system that bundles Python ↵Fabián Ezequiel Gallina
without readline
2012-05-17Remove find-file-noselect invocation in python-shell-send-fileFabián Ezequiel Gallina