aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (python-comment-line-p, python-blank-line-p, python-skip-out,Juanma Barranquero2008-05-081-7/+6
| | | | python-check-comint-prompt): Don't use `iff' in docstrings.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (python-block-pairs): Align finally with except.Stefan Monnier2008-05-051-1/+1
|
* Dave Love <fx at gnu.org>Glenn Morris2008-05-031-3/+6
| | | | (python-beginning-of-statement): Loop at least once (fixes 2008-02-21 change).
* (python-mode-map): Use abbrev-table-menu.Stefan Monnier2008-04-171-47/+14
| | | | | | | | | | (python-use-skeletons): Remove, unused. (python-skeletons): Remove. Use the abbrev table instead. (python-mode-abbrev-table): Fix regexp; add enable-function and case-fixed. (def-python-skeleton): Simplify. (python-expand-template): Use the abbrev-table and abbrev-insert. (python-abbrev-pc-hook, python-abbrev-syntax-table, python-pea-hook): Remove. (python-mode): Don't set pre-abbrev-expand-hook.
* Finish pdbtrack integration cleanup, settling missing-functionsKen Manheimer2008-02-221-158/+25
| | | | | | | | | | | | | | | | | byte compiler warnings appropriately. * progmodes/python.el (python-point): Remove this - beginning-of-line was all that was necessary for `python-pdbtrack-overlay-arrow'. (python-end-of-def-or-class, python-beginning-of-def-or-class) (python-goto-initial-line): Drop these - they were only needed for python-point. (python-comint-output-filter-function): Use condition-case and beginning-of-line directly, instead of python-mode.el functions which require all sorts of baggage. (point-safe): Unnecessary - we're using condition-case directly, instead. (python-execute-file): Include for python-shell, which i'm leaving in keeping despite it being unnecessary for pdb tracking.
* Revise pdbtrack functionality to incorporate advances in python-mode.el.Ken Manheimer2008-02-211-49/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (I'm doing this python.el checkin with some byte-compiler warnings. These warnings existed before Nick Roberts or I applied any of the pdbtrack changes, and look very clearly like preexisting, incomplete adoption of code from python-mode.el. I'm going to next look at settling those warnings, though I don't have time for a major reconciliation of the two python-mode implementations.) (python-pdbtrack-toggle-stack-tracking): Clarify docstring. (python-pdbtrack-minor-mode-string): A sign indicating that pdb tracking is happening. (python-pdbtrack-stack-entry-regexp): Better recognize stack traces. (python-pdbtrack-input-prompt): Better recognize PDB prompts. (add python-pdbtrack-track-stack-file to comint-output-filter-functions): Tracking is plugged in to all comint buffers once python.el is loaded. (python-pdbtrack-overlay-arrow): Toggle activation of `python-pdbtrack-minor-mode-string' in addition to the overlay arrow. (python-pdbtrack-track-stack-file): Use new `python-pdbtrack-get-source-buffer' for more flexible access to debugging source files. (python-pdbtrack-get-source-buffer): Identify debugging target buffer according to pdb stack trace, optionally using new `python-pdbtrack-grub-for-buffer' if file is not locally available. (python-pdbtrack-grub-for-buffer): Find most recent python-mode named buffer, or having function with indicated name. (python-shell): Remove comint-output-filter-functions hook addition, it's being done elsewhere. Wrap long line.
* Merge from Dave Love's 2008-01-20 version.Chong Yidong2008-02-211-237/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Require sym-comp. Add Python buffer to same-window-buffer-names. Fixup whitespaces. (python-font-lock-keywords): Add highlighting for Python builtins. (python-font-lock-syntactic-keywords): Rewrite. (python-quote-syntax): Use syntax-ppss-context instead of parsing ppss directly. (python-mode-map): Add binding for python-find-function. (python-calculate-indentation): Clean up the logic. (python-beginning-of-defun): Explicitly set return value. (python-beginning-of-statement): Stop looping if we get stuck going backwards. (python-next-statement): Stop looping if we somehow end up inside a string while advancing. (python-preoutput-continuation, python-version-checked): New vars. (python-check-version): New function. (run-python): Set default command to python-command instead of python-python-command. (run-python): Use python-check-version. Give PYTHONPATH precedence over data-directory in the process environment. Load function definitions in python process after. (python-check-comint-prompt): New function. (python-send-command, python-send-receive): Use it. (python-complete-symbol, python-try-complete): Functions deleted. Use symbol-complete instead of python-complete-symbol throughout. (python-fill-paragraph): Further refine the fenced-string regexp. (def-python-skeleton): Expand to the original abbrev instead if in a comment or string. Tweak skeletons for `if', `while', `for', `try/except', `try/finally', `name'. (python-pea-hook, python-abbrev-pc-hook): New functions. (python-abbrev-syntax-table): New var. (python-mode): Add python-pea-hook to pre-abbrev-expand-hook. Use symbol-completion-try-complete for hippie expansion. Turn on font lock unconditionally. (python-mode-hook): Defcustom it. No need to use make-local variable on indent-tabs-mode in "Turn off Indent Tabs mode" option, since it's buffer-local.
* Also require comint when loading.Nick Roberts2008-02-201-2/+445
| | | | | | | | | | | | | | | | | | | | | | | | | | (python-mode-map): Bind python-pdbtrack-toggle-stack-tracking, Replace python-shell with run-python on menu bar, (python-shell-map): New map. (python-default-interpreter, python-python-command-args) (python-jython-command-args, python-pdbtrack-do-tracking-p): New options. (python-which-shell, python-which-args, python-which-bufname): New buffer local variables. (python-file-queue, python-pdbtrack-is-tracking-p): * progmodes/python.el (python-pdbtrack-stack-entry-regexp) (python-pdbtrack-input-prompt, python-pdbtrack-track-range): New constants. Pdbtrack features: (python-point, python-end-of-def-or-class) (python-beginning-of-def-or-class, python-goto-initial-line) (python-comint-output-filter-function) (python-pdbtrack-overlay-arrow) (python-pdbtrack-track-stack-file, python-toggle-shells) (python-shell, python-pdbtrack-toggle-stack-tracking) (turn-on-pdbtrack, turn-off-pdbtrack, python-sentinel): New functions.
* Quote all calls to "auxiliary skeleton"s to prevent infloops.Glenn Morris2008-01-201-5/+5
|
* Martin Svenson <phromo at gmail.com> (tiny change)Glenn Morris2008-01-201-1/+2
| | | | (python-imports): Default to "None".
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | Remove directory part from filenames in function declarations.Glenn Morris2007-12-061-1/+1
| |
* | (compilation-shell-minor-mode): Declare as a function.Glenn Morris2007-12-051-0/+3
| |
* | (top-level): Don't require cl when compiling.Glenn Morris2007-12-021-1/+0
| |
* | * frame.el (msdos-mouse-p):Dan Nicolaescu2007-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic-x.el (w32-shell-name): * files.el (msdos-long-file-names, w32-long-file-name) (msdos-long-file-names, dired-get-filename, dired-unmark) (dired-do-flagged-delete, dos-8+3-filename, vms-read-directory) (view-mode-disable): * term/mac-win.el (mac-code-convert-string, mac-coerce-ae-data) (mac-resume-apple-event, mac-font-panel-mode) (mac-atsu-font-face-attributes, mac-ae-set-reply-parameter) (mac-clear-font-name-table): * term/pc-win.el (msdos-remember-default-colors) (w16-set-clipboard-data, w16-get-clipboard-data): * term/w32-win.el (w32-send-sys-command, w32-select-font) (set-message-beep): * w32-fns.el (set-message-beep, w32-get-clipboard-data) (w32-get-locale-info, w32-get-valid-locale-ids) (w32-set-clipboard-data): * help-fns.el (ad-get-advice-info): * font-lock.el (fast-lock-after-fontify-buffer) (fast-lock-after-unfontify-buffer, fast-lock-mode) (lazy-lock-after-fontify-buffer) (lazy-lock-after-unfontify-buffer, lazy-lock-mode): * net/browse-url.el (w32-shell-execute): * dos-fns.el (int86, msdos-long-file-names): * dos-w32.el (default-printer-name): Declare as functions.
* | * progmodes/python.el (info-lookup-maybe-add-help):Dan Nicolaescu2007-11-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/ps-mode.el (doc-view-minor-mode): * mail/emacsbug.el (Info-menu, Info-goto-node): * emulation/viper-keym.el (viper-ex) (viper-normalize-minor-mode-map-alist, viper-set-mode-vars-for): * emulation/viper-cmd.el (widget-type, widget-button-press) (viper-set-hooks): * emacs-lisp/tcover-unsafep.el (unsafep-function): * emacs-lisp/tcover-ses.el (ses-set-curcell, ses-update-cells) (ses-load, ses-vector-delete, ses-create-header-string) (ses-read-cell, ses-read-symbol, ses-command-hook, ses-jump): * emacs-lisp/gulp.el (mail-subject, mail-send): Declare as functions. * url-mailto.el (mail-send-and-exit): * url-http.el (url-dav-file-attributes): * url-file.el (ange-ftp-set-passwd, ange-ftp-copy-file-internal): (url-generate-unique-filename): Declare as functions.
* | (python-mode-abbrev-table): Use :regexp.Stefan Monnier2007-10-311-23/+7
| | | | | | | | | | | | | | Merge defvar and define-abbrev-table. (def-python-skeleton): Use :case-fixed and :enable-function. (python-abbrev-pc-hook, python-abbrev-syntax-table, python-pea-hook): Remove. (python-mode): Don't modify pre-abbrev-expand-hook.
* | (python-current-defun): Remove left-over assignment to `start'.Stefan Monnier2007-10-231-1/+0
| |
* | Merge from emacs--rel--22Miles Bader2007-10-091-45/+66
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
| * (python-eldoc-function): Doc fix.Juanma Barranquero2007-09-271-1/+1
| |
| * Merge changes from Dave Love's v2007-Sep-10.Stefan Monnier2007-09-101-45/+66
| | | | | | | | | | | | | | | | | | | | | | (python-font-lock-keywords): Update to the 2.5 version of the language. (python-quote-syntax): Let-bind font-lock-syntactic-keywords to nil. (python-backspace): Only behave funny in code. (python-compilation-regexp-alist): Add PDB stack trace regexp. (inferior-python-mode): Add PDB prompt regexp. (python-fill-paragraph): Refine the fenced-string regexp. (python-find-imports): Handle imports spanning several lines. (python-mode): Add `class' to hideshow support.
* | (python-eldoc-function): Doc fix.Juanma Barranquero2007-09-271-1/+1
| |
* | Adam Hupp <adam at hupp.org>Glenn Morris2007-09-241-1/+1
| | | | | | | | | | (run-python): Import emacs module without waiting; prevents lockup on error.
* | Merge from emacs--rel--22Miles Bader2007-08-131-4/+4
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
| * Replace `iff' in doc-strings and comments.Glenn Morris2007-08-081-4/+4
| |
* | Fix infinite loop in python.elVinicius Jose Latorre2007-08-011-15/+19
| |
* | Merge from emacs--rel--22Miles Bader2007-07-311-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 75-83) - Update from CVS - Remove lisp/erc/erc-nicklist.el - Update some .arch-inventory files - Indicate that emacs--devo--0--patch-834 does not need to be applied - Merge from gnus--rel--5.10 - Restore lisp/emacs-lisp/cl-loaddefs.el * gnus--rel--5.10 (patch 239-241) - Merge from emacs--devo--0 - Update from CVS 2007-07-29 Kimit Yada <kimitto@gmail.com> (tiny change) * lisp/emacs-lisp/copyright.el (copyright-update-year, copyright-update) (copyright-fix-years, copyright): Correctly handle the case where copyright-limit is nil. 2007-07-28 Konstantin Novitsky <knovitsk@Bear.com> (tiny change) * lisp/progmodes/python.el (run-python): Fix path separator under w32. 2007-07-24 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-msg.el (gnus-summary-supersede-article) (gnus-summary-resend-message-edit): Add Gcc header. (gnus-summary-resend-bounced-mail): Ditto; search whole body for parent article's Message-ID; refer parent article in summary buffer. * lisp/gnus/message.el (message-bounce): Call mime-to-mml. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-838
| * (run-python): Fix path separator under w32.Stefan Monnier2007-07-281-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
| * (python-font-lock-keywords, python-open-block-statement-p, python-mode):Stefan Monnier2007-05-101-3/+3
| | | | | | | | Add support for the new "with" keyword.
* | (python-which-func-length-limit): New var.Stefan Monnier2007-07-121-8/+26
| | | | | | | | | | | | | | (python-which-func): New function. (python-current-defun): Add optional `length-limit' and try to fit computed function name to that length. (python-mode): Hook `python-which-func' up.
* | (python-complete-symbol): Remove redundant check.Juanma Barranquero2007-06-141-1/+1
| |
* | (python-font-lock-keywords, python-open-block-statement-p, python-mode):Stefan Monnier2007-05-091-3/+3
| | | | | | | | Add support for the new "with" keyword.
* | (python-end-of-block): Revert last change.Stefan Monnier2007-05-091-10/+9
|/ | | | (python-end-of-statement): Make sure we move *forward*.
* (python-guess-indent): Check non-nullness before comparing indent againstStefan Monnier2007-05-081-1/+1
| | | | the 2..8 interval.
* Restore file pending consideration of legal issues.Glenn Morris2007-04-261-0/+2307
|
* Remove python.el due to unclear legal issues.Chong Yidong2007-04-241-2307/+0
|
* (python-end-of-block): Avoid looping forever if python-next-statementChong Yidong2007-04-161-2/+6
| | | | fails.
* (python-mode): Skip comments when parsing.Stefan Monnier2007-03-281-0/+1
|
* (python-default-template): Doc fix.Juanma Barranquero2007-03-191-2/+2
| | | | (python-buffer): Fix typo in docstring.
* (python-send-command): Restart proc if necessary.Stefan Monnier2007-03-051-6/+6
| | | | (python-proc): Simplify.
* (python-quote-syntax): Don't bother with syntax-ppss-context.Stefan Monnier2007-03-011-10/+13
| | | | | (python-fill-paragraph): Make sure that fenced-string delimiters that stand on their own line stay there
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (python-indent): Add safe-local-variable prop.Richard M. Stallman2006-12-041-0/+1
|
* (inferior-python-mode-syntax-table): New var.Stefan Monnier2006-11-141-1/+9
| | | | (inferior-python-mode): Use it.
* 2006-10-22 John Wiegley <johnw@newartisans.com>John Wiegley2006-10-221-1/+9
| | | | | | | | * progmodes/python.el (python-use-skeletons): python-mode was auto-inserting templates (for those with abbrev-mode on), not only by default -- *but without a configuration variable to disable it*. This rendered python-mode completely useless for me, so I have added `python-use-skeletons', which is now off by default.
* (python-preoutput-filter): Fix arg order to string-match.Richard M. Stallman2006-09-161-1/+1
|