aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed indentation inside parens when comments are aroundFabián Ezequiel Gallina2012-05-171-1/+6
|
* python-indent-guess-indent-offset improvementsFabián Ezequiel Gallina2012-05-171-18/+25
|
* Fixed backspace behavior for delete-selection-mode.Fabián Ezequiel Gallina2012-05-171-0/+1
|
* Enhanced python-indent-guess-indent-offset logic.Fabián Ezequiel Gallina2012-05-171-8/+19
|
* python-shell-get-or-create-process preserves current buffer.Fabián Ezequiel Gallina2012-05-171-1/+3
|
* Generalized use of python-shell-send-file with cleanup of prompts.Fabián Ezequiel Gallina2012-05-171-16/+16
|
* Cleanup prompts when sending region to shell.Fabián Ezequiel Gallina2012-05-171-3/+7
|
* First commit.Fabián Ezequiel Gallina2012-05-171-0/+1640
|
* Added blank python.el to workaround bzr git-apply issuesFabián Ezequiel Gallina2012-05-171-0/+0
|
* Deleted lisp/progmodes/python.el as first step of the new python.el merge.Fabián Ezequiel Gallina2012-05-171-2730/+0
|
* * lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): UseLeo Liu2012-04-261-6/+11
| | | | compilation-message if available to find real filename.
* * progmodes/python.el (python-send-region): Add suffix .pyLeo Liu2012-04-251-1/+1
|
* * lisp/progmodes/python.el: Move hideshow setup to the end.Leo Liu2012-04-241-9/+11
|
* Remove some `toggle-read-only' warnings.Juanma Barranquero2012-04-191-1/+1
| | | | | | | | * 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'.
* * lisp/progmodes/python.el: Trivial cleanup.Leo Liu2012-04-171-9/+1
|
* `python-fill-paragraph' filling fixup when font-lock is disabledNathan Weizenbaum2012-04-101-1/+1
| | | | | | | | * progmodes/python.el (python-fill-paragraph): Make python-fill-region in a multiline string work when font-lock is disabled. Fixes: debbugs:7018
* Remove * characters from the front of variable docstrings.Chong Yidong2012-04-091-3/+3
|
* Fix infinite loop in python-end-of-statementLeo Liu2012-02-111-3/+4
| | | | http://debbugs.gnu.org/10788
* Fix pdb path handling.Syver Enstad2012-01-291-2/+1
| | | | | | | | | * 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
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-161-1/+1
|
* Fix typos.Juanma Barranquero2011-11-201-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* * python.el (python-pdbtrack-stack-entry-regexp)Ken Manheimer2011-11-161-1/+2
| | | | | | | (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
* * lisp/progmodes/python.el (python-beginning-of-statement): Rewrite.Stefan Monnier2011-11-091-15/+6
| | | | Fixes: debbugs:2703
* Fix various uses of display-buffer and pop-to-bufferChong Yidong2011-09-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * progmodes/python.el (python-mode-map): Use correct function toChristoph Scholtes2011-09-031-10/+2
| | | | | | | start python interpreter from menu-bar (as reported by Geert Kloosterman). (inferior-python-mode-map): Fix typo. (python-shell-map): Removed.
* * loadhist.el (unload--set-major-mode): New function.Juanma Barranquero2011-06-251-0/+11
| | | | | | | | | (unload-feature): Use it. * progmodes/python.el (python-after-info-look): Add autoload cookie. (python-unload-function): New function. Fixes: debbugs:8781 debbugs:8730
* Derive some programming modes from prog-mode.Dan Nicolaescu2011-06-151-1/+1
| | | | | | | * 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.
* * lisp/progmodes/python.el (brm-menu): Declare.Glenn Morris2011-05-231-0/+1
|
* Don't quote lambda expressions with `quote'.Stefan Monnier2011-05-231-1/+1
|
* Merge from emacs-23; up to 2010-06-11T14:39:54Z!cyd@stupidchicken.com.Glenn Morris2011-05-161-1/+3
|\
| * lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).Juanma Barranquero2011-05-131-1/+3
| |
* | lisp/progmodes/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-221-5/+5
| |
* | * progmodes/python.el (python-default-interpreter)Christoph Scholtes2011-03-301-161/+0
| | | | | | | | | | | | | | | | (python-python-command-args, python-jython-command-args) (python-which-shell, python-which-args, python-which-bufname) (python-file-queue, python-comint-output-filter-function) (python-toggle-shells, python-shell): Remove obsolete defcustoms, variables and functions.
* | Refill some long/short copyright headers.Glenn Morris2011-01-261-2/+1
| |
* | Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-1/+1
| |
* | Merge from emacs-23Stefan Monnier2011-01-141-2/+1
|\ \ | |/
| * * progmodes/python.el (python-mode): Don't impose font-lock.Stefan Monnier2011-01-021-1/+0
| | | | | | | | Fixes: debbugs:3628
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Derive from prog-mode, use derived-mode-p, and fix up variousStefan Monnier2010-12-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minor style issues in lisp/progmodes. * lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init) (vhdl-hs-minor-mode, vhdl-ps-print-init): Fix make-local-variable -> make-local-hook. * lisp/progmodes/sh-script.el (sh-require-final-newline): Remove. (sh-set-shell): Don't set require-final-newline since it's already done by prog-mode. * lisp/progmodes/modula2.el (m2-mode): Don't make m2-end-comment-column since we never set it. * lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation): Use read-string and standard prompt. * lisp/progmodes/dcl-mode.el (dcl-mode-map): Move init into declaration. * lisp/progmodes/meta-mode.el (meta-mode-abbrev-table): Merge init and decl. (meta-common-mode-syntax-table): Rename from meta-mode-syntax-table. (meta-common-mode-map): Rename from meta-mode-map. Remove C-m binding, which is a user preference, not mode specific. (meta-common-mode): New major mode; replace meta-common-initialization. * lisp/progmodes/js.el (js-mode): Call syntax-propertize rather than messing around with font-lock. * lisp/progmodes/etags.el (select-tags-table-mode): Derive from special-mode. * lisp/progmodes/octave-mod.el (octave-mode): * lisp/progmodes/gdb-mi.el (gdb-inferior-io-mode, gdb-threads-mode) (gdb-memory-mode, gdb-disassembly-mode, gdb-breakpoints-mode) (gdb-frames-mode, gdb-locals-mode, gdb-registers-mode): Let define-derived-mode do its job. * lisp/progmodes/cpp.el (cpp-edit-mode-map): Move initialization into declaration. (cpp-edit-mode): Use define-derived-mode. (cpp-edit-load): Use derived-mode-p. * lisp/progmodes/mixal-mode.el (mixal-mode): * lisp/progmodes/f90.el (f90-mode): * lisp/progmodes/cfengine.el (cfengine-mode): Don't bother setting require-final-newline since prog-mode does it already. * lisp/progmodes/cc-cmds.el (c-update-modeline): Use match-string. * lisp/progmodes/asm-mode.el (asm-mode-map): Fix menu setup. * lisp/progmodes/antlr-mode.el: Require cc-mode upfront. (antlr-mode-syntax-table, antlr-action-syntax-table): Initialize in the declaration. (antlr-directory-dependencies, antlr-show-makefile-rules): Use derived-mode-p. (antlr-language-option): Don't assume point-min==1. (antlr-mode): Use define-derived-mode. * lisp/progmodes/ada-mode.el: Use derived-mode-p. (ada-mode): Use define-derived-mode. Use hack-local-variables-hook. * lisp/progmodes/vhdl-mode.el (vhdl-mode): * lisp/progmodes/verilog-mode.el (verilog-mode): * lisp/progmodes/vera-mode.el (vera-mode): * lisp/progmodes/sql.el (sql-mode): * lisp/progmodes/scheme.el (scheme-mode): * lisp/progmodes/perl-mode.el (perl-mode): * lisp/progmodes/octave-inf.el (inferior-octave-mode): * lisp/progmodes/autoconf.el (autoconf-mode): * lisp/progmodes/m4-mode.el (m4-mode): * lisp/progmodes/inf-lisp.el (inferior-lisp-mode): * lisp/progmodes/idlwave.el (idlwave-mode): * lisp/progmodes/icon.el (icon-mode): * lisp/progmodes/idlw-help.el (idlwave-help-mode): * lisp/progmodes/dcl-mode.el (dcl-mode): * lisp/progmodes/idlw-shell.el (idlwave-shell-mode): * lisp/progmodes/ebrowse.el (ebrowse-tree-mode, ebrowse-electric-list-mode) (ebrowse-member-mode, ebrowse-electric-position-mode): Use define-derived-mode. * lisp/progmodes/xscheme.el (xscheme-start) (local-set-scheme-interaction-buffer, scheme-interaction-mode): * lisp/progmodes/which-func.el (which-function): * lisp/progmodes/vhdl-mode.el (vhdl-set-style): * lisp/progmodes/verilog-mode.el (verilog-set-compile-command) (verilog-modify-compile-command, verilog-error-regexp-add-xemacs) (verilog-set-define, verilog-auto-reeval-locals): * lisp/progmodes/sql.el (sql-product-font-lock, sql-interactive-mode): * lisp/progmodes/simula.el (simula-mode): * lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): * lisp/progmodes/python.el (python-check, python-mode): * lisp/progmodes/prolog.el (prolog-mode-variables): * lisp/progmodes/gud.el (gud-tooltip-activate-mouse-motions): * lisp/progmodes/ebrowse.el (ebrowse-view-file-other-frame): * lisp/progmodes/delphi.el (delphi-mode): * lisp/progmodes/cc-styles.el (c-setup-paragraph-variables): * lisp/progmodes/cc-mode.el (c-basic-common-init, c-common-init) (c-font-lock-init): Move make-local-variable to their setq. * lisp/progmodes/xscheme.el (exit-scheme-interaction-mode) (xscheme-enter-interaction-mode, xscheme-enter-debugger-mode) (xscheme-debugger-mode-p, xscheme-send-string-1): * lisp/progmodes/tcl.el (inferior-tcl-proc, tcl-current-word) (tcl-load-file, tcl-restart-with-file): * lisp/progmodes/ps-mode.el (ps-run-running): * lisp/progmodes/gdb-mi.el (gud-watch, gdb-mouse-set-clear-breakpoint): * lisp/progmodes/js.el (js--get-all-known-symbols): * lisp/progmodes/inf-lisp.el (inferior-lisp-proc): * lisp/progmodes/idlwave.el (idlwave-beginning-of-statement) (idlwave-template, idlwave-update-buffer-routine-info) (idlwave-update-current-buffer-info) (idlwave-get-routine-info-from-buffers, idlwave-choose) (idlwave-scan-class-info, idlwave-fix-keywords) (idlwave-list-buffer-load-path-shadows): * lisp/progmodes/idlw-toolbar.el (idlwave-toolbar, idlwave-toolbar-add) (idlwave-toolbar-remove): * lisp/progmodes/idlw-shell.el (idlwave-shell-save-and-action) (idlwave-shell-file-name, idlwave-shell-electric-debug-all-off) (idlwave-shell-menu-def): * lisp/progmodes/idlw-complete-structtag.el (idlwave-prepare-structure-tag-completion): * lisp/progmodes/gud.el (gud-set-buffer): * lisp/progmodes/f90.el (f90-backslash-not-special): * lisp/progmodes/delphi.el (delphi-find-unit): Use derived-mode-p.
* | Merge changes from emacs-23 branchChong Yidong2010-11-271-21/+31
|\ \ | |/
| * Backport fixes for Bug#5390 and Bug#5694 from trunk.Chong Yidong2010-11-211-24/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/python.el: Add Ipython support (Bug#5390). (python-shell-prompt-alist) (python-shell-continuation-prompt-alist): New options. (python--set-prompt-regexp): New function. (inferior-python-mode, run-python, python-shell): Require ansi-color. Use python--set-prompt-regexp to set the comint prompt based on the Python interpreter. (python--prompt-regexp): New var. (python-check-comint-prompt) (python-comint-output-filter-function): Use it. (run-python): Use a pipe (Bug#5694).
| * Make the sys.path remove in Python mode customizable (Bug#7454).Chong Yidong2010-11-211-17/+31
| | | | | | | | | | * progmodes/python.el (run-python): Doc fix. (python-keep-current-directory-in-path): New var (Bug#7454).
| * python.el comment.Glenn Morris2010-11-201-0/+1
| |
* | Highlight top-level augmented assignments in Python (Bug#6445).Chong Yidong2010-11-211-1/+2
| | | | | | | | | | * progmodes/python.el (python-font-lock-keywords): Highlight top-level augmented assignments (Bug#6445).
* | Merge from emacs-23Stefan Monnier2010-11-171-1/+1
|\ \ | |/
| * * lisp/progmodes/python.el (python-shell): Doc fix.Glenn Morris2010-11-091-2/+1
| |