aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Documentation enhancementsFabián Ezequiel Gallina2012-05-171-6/+10
|
* Renamed indentity occurrences to identity in previous commmitFabián Ezequiel Gallina2012-05-171-4/+4
|
* Enhancements to internal python shell naming.Fabián Ezequiel Gallina2012-05-171-7/+6
| | | | | | | | The internal python shell now takes into account more shell settings in order to generate the unique hash for its name. Also `python-shell-setup-codes' has been simplified and is not allowed to be a list of cons anymore.
* Enhancements to pdbtrack.Fabián Ezequiel Gallina2012-05-171-40/+42
| | | | | | | | | | | | | | | | | | | | | | | pdbtrack now handles correctly the case where the stacktrace information is on the second line. All python buffers not opened by the user and used for tracking are closed automatically when tracking process finishes. Simplified code for keeping the tracked buffer. Removed vars: + python-pdbtrack-tracking-buffers Removed functions: + python-pdbtrack-get-or-add-tracking-buffers New vars: + python-pdbtrack-tracked-buffer + python-pdbtrack-buffers-to-kill New functions: + python-pdbtrack-set-tracked-buffer
* Enhancements to pdbtrackFabián Ezequiel Gallina2012-05-171-59/+48
| | | | | | | | pdbtracking now autodetects the filename being tracked from the prompt and not from the `inferior-python-mode-current-file' variable. Removed vars: + `inferior-python-mode-current-file'
* Documentation enhancements and other small fixes.Fabián Ezequiel Gallina2012-05-171-7/+6
| | | | | Removed vars: + python-shell-import-line-regexp
* Complete module import lines in addition to variable namesDan Davison2012-05-171-9/+33
| | | | | | | | | | | | | | | | Available when using ipython v0.11. Completions on lines starting with "from " or "import " are supplied by IPython.core.completerlib.module_completion ipython v0.11 configuration: (setq python-shell-interpreter "ipython" python-shell-completion-setup-code "from IPython.core.completerlib import module_completion\n" python-shell-module-completion-string-code "';'.join(module_completion('''%s'''))\n" python-shell-completion-string-code "';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
* Return appropriate value to comint-dynamic-completeDan Davison2012-05-171-31/+23
| | | | | | This avoids a "No completions for ..." message being issued when a completion has been made. Also, reduces redundancy between the inferior-python-mode and python-mode completion code.
* Enhancements to `python-shell-calculate-process-environment'Fabián Ezequiel Gallina2012-05-171-1/+22
| | | | | | The `python-shell-extra-pythonpaths' variable have been introduced as simple way of adding paths to the PYTHONPATH without affecting existing values.
* Enhancements on `python-shell-calculate-process-environment' and ↵Fabián Ezequiel Gallina2012-05-171-27/+11
| | | | | | | `python-shell-calculate-exec-path' Removed functions: + python-util-merge
* Added simple way of jumping to current buffer's class/function definitionsFabián Ezequiel Gallina2012-05-171-22/+67
| | | | | | | | | | | | | | | | The new `python-nav-jump-to-defun' function allows a user to jump fast and easy to a function or class definition in the current buffer. For this a entry in the menu and the C-c C-j keybinding have been introduced. New functions: + `python-nav-list-defun-positions' + `python-nav-read-defun' + `python-nav-jump-to-defun' The new function `python-nav-list-defun-positions' does the same as a relevant part of the `python-imenu-create-index' so the latter has been refactored to use it.
* Enhancements to python-shell-send-string-no-output to work OK with iPython 0.11Fabián Ezequiel Gallina2012-05-171-18/+16
| | | | | Also the documentation has been updated with info to make iPython 0.11 and 0.10 work with python.el's shell integration.
* Make run-python-internal to set process-query-on-exit-flag to nilFabián Ezequiel Gallina2012-05-171-4/+7
| | | | Also python-shell-make-comint now returns the process buffer name.
* Fixed indentation case for after beginning of blockFabián Ezequiel Gallina2012-05-171-1/+4
|
* Renamed python-clone-local-variables to python-util-clone-local-variablesFabián Ezequiel Gallina2012-05-171-2/+2
|
* 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