aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-14lisp/progmodes/python.el: Updated Copyright years.old-branches/pythonFabián Ezequiel Gallina1-1/+1
2012-06-14* lisp/progmodes/python.el: (python-indent, python-guess-indent,Fabián Ezequiel Gallina1-0/+10
python-use-skeletons): New obsolete variable aliases. (python-indent-guess-indent-offset): Make interactive.
2012-06-06* progmodes/python.el (python-send-region): Ensure, that theMichael Albinus1-3/+8
temporary file is created also in the remote case.
2012-05-17Migrated python-font-lock-syntactic-keywords to ↵Fabián Ezequiel Gallina1-12/+14
python-syntax-propertize-function This is a backport of Stefan Monnier's migration to the new font-lock machinery (introduced in 2010-09-10T23:13:42Z!monnier@iro.umontreal.ca). New Vars: + python-syntax-propertize-function Deleted Vars: + python-font-lock-syntactic-keywords
2012-05-17Copyright information updateFabián Ezequiel Gallina1-16/+12
2012-05-17Revert "Merge pull request #83 from tkf/empty-triple-quote"Fabián Ezequiel Gallina1-1/+0
This reverts commit f4d086427343eb0b8bc91355388d2437c568b1f6, reversing changes made to 8f697fd2ef23a9e1d9a06ac8ca419d76ccedb27d. While the fix worked with empty triple quoted strings it broke simpler cases like these: """ def someting(a, b, c): " """ or ''' def someting(a, b, c): ' ''' Another approach is needed for giving triple quoted string the correct syntax.
2012-05-17Make `which-func-functions' defaults to '(python-info-current-defun)Fabián Ezequiel Gallina1-0/+2
2012-05-17Function documentation enhancementsFabián Ezequiel Gallina1-7/+9
2012-05-17New defun navigation machineryFabián Ezequiel Gallina1-78/+92
`python-nav-beginning-of-defun' and `python-beginning-of-defun-function' have changed and now they don't handle decorators anymore. `python-end-of-defun-function' is now smart enough to detect the real ending of the current defun. `python-shell-send-defun' always sends the outermost defun and includes decorators. When called with prefix argument the decorators are skipped. `python-info-current-defun' has been modified to use the new defun movement API. New Functions: + python-info-looking-at-beginning-of-defun
2012-05-17Enhancements on `python-beginning-of-defun-function' for `mark-defun' behavior.Fabián Ezequiel Gallina1-10/+13
`mark-defun' was failing when point was right at the start of a defun.
2012-05-17`python-nav-list-defun-positions' now caches defuns positions (#75)Fabián Ezequiel Gallina1-22/+33
This is a simplified version of @dandavison pull request (thanks dan!) `python-nav-list-defun-positions' now uses `python-nav-list-defun-positions-cache' buffer local variable to store cached values of defun positions. `python-nav-jump-to-defun' now benefits from this new cache and if called with prefix argument it will invalidate it so new defuns are scanned. New Vars: + `python-nav-list-defun-positions-cache'
2012-05-17Enhancements to `python-end-of-defun-function' so it's not blocked by top ↵Fabián Ezequiel Gallina1-6/+3
level assignments (fixes #64)
2012-05-17Variable name changeDan Davison1-3/+3
python-shell-enable-syntax-highlighting -> python-shell-enable-font-lock
2012-05-17Enhancements to `python-indent-post-self-insert-function'Fabián Ezequiel Gallina1-11/+8
Fixed case where the paren base indentation is not 0.
2012-05-17Enhanced closing block notification when line is indented or a colon is ↵Fabián Ezequiel Gallina1-10/+17
inserted. `python-indent-line' and `python-indent-electric-colon' now uses the new `python-info-closing-block-message' function that takes care of messaging the block the current line is closing (if applicable). New Functions: + `python-info-closing-block-message'
2012-05-17Readjust indentation automatically on lines with closing parens.Fabián Ezequiel Gallina1-0/+24
For this to work `python-indent-post-self-insert-function' is added to the `post-self-insert-hook.' when python-mode is initialized. New functions: + `python-indent-post-self-insert-function'
2012-05-17Removed tabs and fixed indentation in several parts.Fabián Ezequiel Gallina1-18/+18
2012-05-17Do not call `switch-to-buffer' in `python-shell-get-or-create-process'Fabián Ezequiel Gallina1-4/+2
For this to work properly `run-python' now calls `python-shell-make-comint' with the POP argument set to nil.
2012-05-17Treat empty triple quoteTakafumi Arakaki1-0/+1
Fix #70
2012-05-17Small fix in `python-shell-send-defun' (#69 thanks mafm-git!)Fabián Ezequiel Gallina1-2/+4
2012-05-17Customizable variable to control syntax highlighting in shell.Dan Davison1-0/+14
Default is on.
2012-05-17Don't send "if __name__ == '__main__':" to interpreterDan Davison1-4/+17
2012-05-17Disregard leading whitespace when forming module completionsDan Davison1-2/+4
This allows an indented import line (e.g. in a function or method body) to be completed.
2012-05-17Deactivate mark on python-shell-send-regionDan Davison1-2/+1
2012-05-17Use `completion-at-point` instead of `comint-dynamic-complete` in shell ↵Dan Davison1-1/+1
completion
2012-05-17Pass entire line of input to module completerDan Davison1-4/+12
The module completer wants e.g. 'from xxx' as input, not just 'xxx'. This change also causes all modules to be offered as completions to 'from ', whereas previously this was regarded as empty input.
2012-05-17Enhancements on ipython 0.10 setup documentation (thanks to @tkf for the hint)Fabián Ezequiel Gallina1-2/+4
2012-05-17Added missing dot in `python-completion-complete-at-point' errorFabián Ezequiel Gallina1-1/+1
2012-05-17Enhanced completion subject finding logic for ↵Fabián Ezequiel Gallina1-2/+19
`python-shell-completion--do-completion-at-point'
2012-05-17Make `python-shell-completion--do-completion-at-point' to return a list for ↵Fabián Ezequiel Gallina1-32/+11
`completion-at-point' do it's job instead of replicating completion logic. Removed vars: + python-shell-completion-original-window-configuration
2012-05-17Make `python-shell-completion--do-completion-at-point' work for calls done ↵Fabián Ezequiel Gallina1-3/+5
via `python-completion-complete-at-point'. The comint prompt retrieval logic was failing on `python-shell-completion--do-completion-at-point' when calls to it happened from outside the process buffer.
2012-05-17python-end-of-defun-function now works correctly when comments are not ↵Fabián Ezequiel Gallina1-1/+6
indented properly. Calling `end-of-defun' on a python file will now do the correct thing, even for cases like this: def fib(n): if n < 2: # base cases return n else: return fib(n - 2) + fib(n - 1)
2012-05-17Enhancements on indentation for lines after a backslash continuation.Fabián Ezequiel Gallina1-4/+31
Backslashed continuations with parens in the middle are now handled correctly. Things like this are now indented properly: objects = Thing.objects.all() \ .filter( type="toy", status="bought" subtype="car" ) \ .aggregate( Sum('amount') ) \ .values_list() New Functions: * `python-info-beginning-of-backlash' returns the point where a backslashed line start.
2012-05-17Added self to the list of font-lock-keywordsFabián Ezequiel Gallina1-1/+3
2012-05-17Updated `python-font-lock-keywords' to match latest Python 2.7 and 3.2 ↵Fabián Ezequiel Gallina1-34/+54
documentation.
2012-05-17Beautified codeFabián Ezequiel Gallina1-162/+177
* All columns are now less that 79 chars. * Removed tabs that were beign used to indent code. * Reindented the whole file.
2012-05-17Enhancements on indentation code and related functions.Fabián Ezequiel Gallina1-180/+238
This commit includes: * A more robust implementation of `python-indent-calculate-indentation'. * enhancements on `python-indent-context' when dealing with backslashes and blocks. * Many changes, comments and enhancements to `python-indent-calculate-indentation'. Many of them especially focused to match pep8 guidelines, being this one the most important new one: http://mail.python.org/pipermail/python-dev/2011-June/111760.html * Better `python-info-line-ends-backslash-p' that would work as intended on narrowed buffers. * `python-info-continuation-line-p' now does what's supposed to do. * Enhanced implementation of `python-info-continuation-line-p', `python-info-block-continuation-line-p' and `python-info-assignment-continuation-line-p' New Functions: * `python-util-forward-comment' a simple replacement `forward-comment' with some necessary enhancements.
2012-05-17`python-check' now can have named buffers on its own depending the command ↵Fabián Ezequiel Gallina1-1/+9
launched. New vars: + python-check-buffer-name
2012-05-17Enhancements on python-check command.Fabián Ezequiel Gallina1-2/+4
Use pyflakes (PyChecker is dead) and run the process respecting virtualenv rules.
2012-05-17Removed :safe attribute for dangerous variablesFabián Ezequiel Gallina1-22/+11
Changed vars: + python-shell-interpreter + python-shell-interpreter-args + python-shell-completion-setup-code + python-shell-completion-string-code + python-shell-completion-module-string-code + python-shell-completion-pdb-string-code + python-ffap-setup-code + python-ffap-string-code + python-check-command + python-eldoc-setup-code + python-eldoc-string-code
2012-05-17Fixed docstring typosFabián Ezequiel Gallina1-2/+2
2012-05-17Enhanced shell setup for Windows.Fabián Ezequiel Gallina1-1/+13
Also added documentation explaining how to spawn the iPython process on Windows.
2012-05-17Added compatibility with lastest CEDET.Fabián Ezequiel Gallina1-4/+17
Obsolete variables definitions: + python-buffer => python-shell-internal-buffer Obsolete functions definitions: + python-proc => python-shell-internal-get-or-create-process + python-send-string => python-shell-internal-send-string
2012-05-17Improvements on completion code.Fabián Ezequiel Gallina1-21/+28
Do no complete when defining a code block (we can't do this until finding some way of getting raw tabs to the interpreter correctly)
2012-05-17Improved completion support when in [i]pdbFabián Ezequiel Gallina1-7/+20
`python-shell-completion--do-completion-at-point' has been modified in order to support different completion contexts easily. New vars: + python-shell-completion-pdb-string-code
2012-05-17Added `python-pdbtrack-activate' variable to allow users to ↵Fabián Ezequiel Gallina1-1/+7
activate/deactivate pdbtrack. To keep in sync with the old behavior its default value is t.
2012-05-17Renamed stuff to keep "namespace" clean.Fabián Ezequiel Gallina1-11/+11
Renamed vars: + python-shell-module-completion-string-code => python-shell-completion-module-string-code + python-completion-original-window-configuration => python-shell-completion-original-window-configuration
2012-05-17Don't request completions for zero-length inputDan Davison1-2/+3
Fixes a bug in which incorrect completion output was displayed, for example when point was after a closing paren.
2012-05-17Make `python-shell-send-string-no-output' delete trailing newlines from output.Fabián Ezequiel Gallina1-10/+8
2012-05-17Dismiss completions buffer when unique completion has been madeDan Davison1-1/+11