Commit graph

354 commits

Author SHA1 Message Date
Fabián Ezequiel Gallina
76eefb1fe5 Small fix to python-indent-electric-colon
Check current indentation is greater than the current calculated
indentation.
2012-05-17 00:03:04 -03:00
Fabián Ezequiel Gallina
ffdb56c385 Implemented python-indent-electric-colon 2012-05-17 00:03:04 -03:00
Fabián Ezequiel Gallina
17d13b8526 Fixed indentation of multi-line function call's closing parenthesis 2012-05-17 00:03:03 -03:00
Fabián Ezequiel Gallina
24b68537c3 Make inferior-python-mode-current-file be set via convert-standard-filename 2012-05-17 00:03:03 -03:00
Fabián Ezequiel Gallina
d439cda598 Enhanced python-shell-send-file function
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.
2012-05-17 00:03:03 -03:00
Fabián Ezequiel Gallina
57808175eb Added commentary about auto-indentation on newlines for python-mode.el users 2012-05-17 00:03:02 -03:00
Fabián Ezequiel Gallina
d818ffa870 Use convert-standard-filename to fix temp files path 2012-05-17 00:03:02 -03:00
Fabián Ezequiel Gallina
d8e594dba8 Fixed highlighting for dictionary assignments 2012-05-17 00:03:02 -03:00
Fabián Ezequiel Gallina
6eb68dc25b Fixed pdb-track on Windows
make-temp-file is returning the temp file path with the wrong type of
slashes.
2012-05-17 00:03:01 -03:00
Fabián Ezequiel Gallina
534e24385b Fixed incorrect syntax highlighting for variable assignations 2012-05-17 00:03:01 -03:00
Fabián Ezequiel Gallina
14d9f80c0d Fixed indentation guess logic to never accept 0 as a possible value 2012-05-17 00:03:01 -03:00
Fabián Ezequiel Gallina
78334b439d Implemented python-eldoc-at-point (python-describe-symbol replacement) 2012-05-17 00:03:00 -03:00
Fabián Ezequiel Gallina
8b3e0e76ee Implemented python-check 2012-05-17 00:03:00 -03:00
Fabián Ezequiel Gallina
2947016aa7 Small changes to ffap support 2012-05-17 00:03:00 -03:00
Fabián Ezequiel Gallina
046428d328 Added ffap support 2012-05-17 00:02:59 -03:00
Fabián Ezequiel Gallina
1066882c6d Simplified python-eldoc-function using python-shell-send-and-clear-output 2012-05-17 00:02:59 -03:00
Fabián Ezequiel Gallina
138df81369 Implemeneted python-shell-clear-latest-output and python-shell-send-and-clear-output
Also Simplified python-shell-completion--get-completions using
python-shell-send-and-clear-output
2012-05-17 00:02:59 -03:00
Fabián Ezequiel Gallina
9e6629387d Eldoc integration is now compatible with python 3 2012-05-17 00:02:58 -03:00
Fabián Ezequiel Gallina
ed0eb59464 Make shell use completion-at-point for autocompletion. 2012-05-17 00:02:58 -03:00
Fabián Ezequiel Gallina
fc87f759ed Fixed called-interactively-p invocation. 2012-05-17 00:02:57 -03:00
Fabián Ezequiel Gallina
db1497be14 Cleaned up TODO 2012-05-17 00:02:57 -03:00
Fabián Ezequiel Gallina
075a0f6194 Enhanced shell and code autocompletion.
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.
2012-05-17 00:02:57 -03:00
Fabián Ezequiel Gallina
3d6913c7d1 Fixes to shell completion at point 2012-05-17 00:02:57 -03:00
Fabián Ezequiel Gallina
13d914ed50 Fixed shell region sending 2012-05-17 00:02:56 -03:00
Fabián Ezequiel Gallina
4e531f7a7e Documentation fixes 2012-05-17 00:02:56 -03:00
Fabián Ezequiel Gallina
19b122e44e Do not indent at the beginning of buffer fix 2012-05-17 00:02:56 -03:00
Fabián Ezequiel Gallina
69bab1deb3 Do not indent at the beginning of buffer 2012-05-17 00:02:55 -03:00
Fabián Ezequiel Gallina
df700cc99e Fixed infinite while loop in python-info-current-defun
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)
2012-05-17 00:02:55 -03:00
Fabián Ezequiel Gallina
b962ebad98 Modified autocompletion code setup
Now it is compatible with python 2.x and python 3.x
2012-05-17 00:02:54 -03:00
Fabián Ezequiel Gallina
13d1a42edb Fixed indentation inside parens when comments are around 2012-05-17 00:02:54 -03:00
Fabián Ezequiel Gallina
bbac1eb8ab python-indent-guess-indent-offset improvements 2012-05-17 00:02:54 -03:00
Fabián Ezequiel Gallina
183f9296f1 Fixed backspace behavior for delete-selection-mode. 2012-05-17 00:02:53 -03:00
Fabián Ezequiel Gallina
954aa7bdb8 Enhanced python-indent-guess-indent-offset logic. 2012-05-17 00:02:53 -03:00
Fabián Ezequiel Gallina
79dafa51ba python-shell-get-or-create-process preserves current buffer. 2012-05-17 00:02:53 -03:00
Fabián Ezequiel Gallina
66b0b492bc Generalized use of python-shell-send-file with cleanup of prompts. 2012-05-17 00:02:52 -03:00
Fabián Ezequiel Gallina
6ac2041b86 Cleanup prompts when sending region to shell. 2012-05-17 00:02:52 -03:00
Fabián Ezequiel Gallina
45c138ac0f First commit. 2012-05-17 00:02:52 -03:00
Fabián Ezequiel Gallina
3b3027dc0a Added blank python.el to workaround bzr git-apply issues 2012-05-17 00:02:42 -03:00
Fabián Ezequiel Gallina
d8c80081f6 Deleted lisp/progmodes/python.el as first step of the new python.el merge. 2012-05-17 00:01:30 -03:00
Leo Liu
784e7d6eeb * lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): Use
compilation-message if available to find real filename.
2012-04-26 00:46:01 +08:00
Leo Liu
daf75653c2 * progmodes/python.el (python-send-region): Add suffix .py 2012-04-25 23:23:19 +08:00
Leo Liu
257440aa1c * lisp/progmodes/python.el: Move hideshow setup to the end. 2012-04-24 22:58:29 +08:00
Juanma Barranquero
376cbaccd9 Remove some `toggle-read-only' warnings.
* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.

* lisp/descr-text.el (describe-char):
  lisp/progmodes/python.el (python-describe-symbol):
  Don't call `toggle-read-only', set `buffer-read-only'.
2012-04-19 18:50:07 +02:00
Leo Liu
f45f90f331 * lisp/progmodes/python.el: Trivial cleanup. 2012-04-17 03:28:57 +08:00
Nathan Weizenbaum
8f33b5f873 `python-fill-paragraph' filling fixup when font-lock is disabled
* progmodes/python.el (python-fill-paragraph): Make
python-fill-region in a multiline string work when font-lock is
disabled.

Fixes: debbugs:7018
2012-04-10 13:27:44 +02:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Leo Liu
5eac0c026f Fix infinite loop in python-end-of-statement
http://debbugs.gnu.org/10788
2012-02-11 12:20:16 +08:00
Syver Enstad
6b25e4e27d Fix pdb path handling.
* progmodes/gud.el (pdb): Give pdb full paths, to allow setting
breakpoints in files outside current directory.

* lisp/progmodes/python.el: Require ansi-color at top-level.

Fixes: debbugs:6098
2012-01-29 15:06:54 +08:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Paul Eggert
301b181a14 Spelling fixes. 2011-12-16 22:51:13 -08:00