Commit graph

440 commits

Author SHA1 Message Date
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
Juanma Barranquero
fe7a3057a3 Fix typos. 2011-11-20 20:35:27 +01:00
Paul Eggert
e1dbe924b5 Spelling fixes. 2011-11-19 18:29:42 -08:00
Paul Eggert
c5e87d104b Spelling fixes. 2011-11-17 09:40:48 -08:00
Paul Eggert
4c36be58ca Spelling fixes. 2011-11-17 01:09:20 -08:00
Ken Manheimer
8642c2163e * python.el (python-pdbtrack-stack-entry-regexp)
(python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file):
Adjust to recognize ipdb as well as regular python pdb prompts.
Adjustments shamelessly taken exactly as suggested in EmacsWiki
page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14
2011-11-16 11:37:48 -05:00
Stefan Monnier
90132c1485 * lisp/progmodes/python.el (python-beginning-of-statement): Rewrite.
Fixes: debbugs:2703
2011-11-09 10:00:32 -05:00
Chong Yidong
3199b96fc5 Fix various uses of display-buffer and pop-to-buffer
to avoid using special-display-* and same-window-* variables.

* lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
of display-buffer.
(Buffer-menu-2-window): Use switch-to-buffer-other-window.

* lisp/replace.el (occur-mode-goto-occurrence)
(occur-mode-display-occurrence) Use second arg of pop-to-buffer
and display-buffer.

* lisp/window.el (display-buffer-alist): Add *Python*.

* lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
display-buffer.

* lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
special-display and same-window variables.
(mail-other-window): Use switch-to-buffer-other-window.
(mail-other-frame): USe switch-to-buffer-other-frame.

* lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
display-buffer-other-frame.
(gdb-display-gdb-buffer): Use pop-to-buffer.

* lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.

* lisp/progmodes/python.el: Don't set same-window-buffer-names.

* lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
2011-09-10 17:15:28 -04:00
Christoph Scholtes
464cdf568e * progmodes/python.el (python-mode-map): Use correct function to
start python interpreter from menu-bar (as reported by Geert
Kloosterman).
(inferior-python-mode-map): Fix typo.
(python-shell-map): Removed.
2011-09-03 12:44:37 -06:00
Juanma Barranquero
519d22cc0e * loadhist.el (unload--set-major-mode): New function.
(unload-feature): Use it.

* progmodes/python.el (python-after-info-look): Add autoload cookie.
  (python-unload-function): New function.

Fixes: debbugs:8781 debbugs:8730
2011-06-25 19:42:18 +02:00
Dan Nicolaescu
c5cde04220 Derive some programming modes from prog-mode.
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
* lisp/progmodes/ps-mode.el (ps-mode):
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/ld-script.el (ld-script-mode): Likewise.
2011-06-15 07:07:48 -07:00
Glenn Morris
f86307039d * lisp/progmodes/python.el (brm-menu): Declare. 2011-05-23 20:38:35 -07:00
Stefan Monnier
4f91a8160f Don't quote lambda expressions with `quote'. 2011-05-23 14:57:17 -03:00
Glenn Morris
c71a0d48f3 Merge from emacs-23; up to 2010-06-11T14:39:54Z!cyd@stupidchicken.com. 2011-05-16 19:26:56 -07:00
Juanma Barranquero
ce1539b46d lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639). 2011-05-13 14:44:48 +02:00