summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
AgeCommit message (Collapse)Author
2013-05-08Fix a bunch of custom types (thank you cus-test.el)Glenn Morris
* lisp/bookmark.el (bookmark-search-delay): * lisp/cus-start.el (vertical-centering-font-regexp): * lisp/ps-mule.el (ps-mule-font-info-database-default): * lisp/ps-print.el (ps-default-fg, ps-default-bg): * lisp/type-break.el (type-break-good-break-interval): * lisp/whitespace.el (whitespace-indentation-regexp) (whitespace-space-after-tab-regexp): * lisp/emacs-lisp/testcover.el (testcover-1value-functions) (testcover-noreturn-functions, testcover-progn-functions) (testcover-prog1-functions): * lisp/emulation/viper-init.el (viper-emacs-state-cursor-color): * lisp/erc/erc-desktop-notifications.el (erc-notifications-icon): * lisp/eshell/em-glob.el (eshell-glob-translate-alist): * lisp/gnus/gnus-art.el (gnus-article-date-headers, gnus-blocked-images): * lisp/gnus/gnus-async.el (gnus-async-post-fetch-function): * lisp/gnus/gnus-gravatar.el (gnus-gravatar-size, gnus-gravatar-properties): * lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl): * lisp/gnus/gnus-notifications.el (gnus-notifications-timeout): * lisp/gnus/gnus-picon.el (gnus-picon-properties): * lisp/gnus/gnus-util.el (gnus-completion-styles): * lisp/gnus/gnus.el (gnus-other-frame-resume-function): * lisp/gnus/message.el (message-user-organization-file) (message-cite-reply-position): * lisp/gnus/nnir.el (nnir-summary-line-format) (nnir-retrieve-headers-override-function): * lisp/gnus/shr-color.el (shr-color-visible-luminance-min): * lisp/gnus/shr.el (shr-blocked-images): * lisp/gnus/spam-report.el (spam-report-resend-to): * lisp/gnus/spam.el (spam-summary-exit-behavior): * lisp/mh-e/mh-e.el (mh-sortm-args, mh-default-folder-for-message-function): * lisp/play/tetris.el (tetris-tty-colors): * lisp/progmodes/cpp.el (cpp-face-default-list): * lisp/progmodes/flymake.el (flymake-allowed-file-name-masks): * lisp/progmodes/idlw-help.el (idlwave-help-browser-generic-program) (idlwave-help-browser-generic-args): * lisp/progmodes/make-mode.el (makefile-special-targets-list): * lisp/progmodes/python.el (python-shell-virtualenv-path): * lisp/progmodes/verilog-mode.el (verilog-active-low-regexp) (verilog-auto-input-ignore-regexp, verilog-auto-inout-ignore-regexp) (verilog-auto-output-ignore-regexp, verilog-auto-tieoff-ignore-regexp) (verilog-auto-unused-ignore-regexp, verilog-typedef-regexp): * lisp/textmodes/reftex-vars.el (reftex-format-label-function): * lisp/textmodes/remember.el (remember-diary-file): Fix custom types. * lisp/cedet/semantic/db-find.el (semanticdb-find-throttle-custom-list): Fix value. * lisp/gnus/gnus-salt.el (gnus-selected-tree-face): Fix default.
2013-04-19Small fixes to 2013-04-19T02:31:09Z!fgallina@gnu.orgFabián Ezequiel Gallina
* lisp/ChangeLog: Fix Changelog Entry. * progmodes/python.el (python-imenu-create-flat-index): Remove leftover `message' call and give credit to old imenu--flatten-index-alist.
2013-04-18New faster Imenu implementation.Fabián Ezequiel Gallina
* lisp/progmodes/python.el: (python-imenu-prev-index-position): (python-imenu-format-item-label-function) (python-imenu-format-parent-item-label-function) (python-imenu-format-parent-item-jump-label-function): New vars. (python-imenu-format-item-label) (python-imenu-format-parent-item-label) (python-imenu-format-parent-item-jump-label) (python-imenu--put-parent, python-imenu--build-tree) (python-imenu-create-index, python-imenu-create-flat-index) (python-util-popn): New functions. (python-mode): Set imenu-create-index-function to python-imenu-create-index. * test/automated/python-tests.el (python-imenu-prev-index-position-1): Removed test. (python-imenu-create-index-1, python-imenu-create-flat-index-1): New tests. Fixes: debbugs:14058
2013-04-17* lisp/progmodes/python.el (python-nav--syntactically): Fix cornercasesFabián Ezequiel Gallina
and do not care about match data. * test/automated/python-tests.el (python-nav-backward-defun-2) (python-nav-backward-defun-3, python-nav-forward-defun-2) (python-nav-forward-defun-3): New tests.
2013-04-17New defun movement commands.Fabián Ezequiel Gallina
* lisp/progmodes/python.el (python-nav--syntactically) (python-nav--forward-defun, python-nav-backward-defun) (python-nav-forward-defun): New functions. * test/automated/python-tests.el (python-nav-backward-defun-1) (python-nav-forward-defun-1): New tests.
2013-04-16* progmodes/python.el (python-syntax--context-compiler-macro): New defun.Fabián Ezequiel Gallina
(python-syntax-context): Use named compiler-macro for backwards compatibility with Emacs 24.x.
2013-04-16* lisp/progmodes/python.el (python-mode-skeleton-abbrev-table): Rename fromStefan Monnier
python-mode-abbrev-table. (python-skeleton-define): Adjust accordingly. (python-mode-abbrev-table): New table that inherits from it so that python-skeleton-autoinsert does not affect non-skeleton abbrevs. * lisp/abbrev.el (abbrev--symbol): New function, extracted from abbrev-symbol. (abbrev-symbol): Use it. (abbrev--before-point): Use it since we already handle inheritance.
2013-03-30Merge from emacs-24; up to 2012-12-26T16:22:18Z!michael.albinus@gmx.deGlenn Morris
2013-03-25Un-indent after "pass" and "return" statementsFabián Ezequiel Gallina
* lisp/progmodes/python.el (python-indent-block-enders): New var. (python-indent-calculate-indentation): Use it. * test/automated/python-tests.el (python-indent-block-enders): New test. (python-info-current-defun-2): Fix test. Fixes: debbugs:13888
2013-02-21Merge from emacs-24; up to 2012-12-21T07:35:02Z!ueno@gnu.orgGlenn Morris
2013-02-20* progmodes/python.el (python-info-current-defun): EnhanceFabián Ezequiel Gallina
match-data cluttering prevention.
2013-02-19* progmodes/python.el (python-info-current-defun): Fix failedFabián Ezequiel Gallina
defun name retrieval because of unwanted match-data cluttering.
2013-02-18Merge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ruGlenn Morris
2013-02-19* progmodes/python.el (python-indent-context): FixFabián Ezequiel Gallina
python-info-line-ends-backslash-p call. (python-info-line-ends-backslash-p) (python-info-beginning-of-backslash): Respect line-number argument. (python-info-current-line-comment-p): Fix behavior when not at beginning-of-line. (python-util-position): Remove function. (python-util-goto-line): New function.
2013-02-14Merge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.dePaul Eggert
2013-02-13* progmodes/python.el: Explain how to restore "cc-mode"-likeFabián Ezequiel Gallina
forward-sexp movement in header documentation. (python-nav--forward-sexp): Behave like emacs-lisp-mode in comments and strings (GH bug 114). Fixes: debbugs:13642
2013-02-13* progmodes/python.el (python-info-current-defun): Fix currentFabián Ezequiel Gallina
defun detection. Fixes: debbugs:13618
2013-02-01Spelling fixes.Paul Eggert
2013-01-30Merge from emacs-24; up to 2012-12-13T00:52:17Z!yamaoka@jpl.orgGlenn Morris
2013-01-30* progmodes/python.elFabián Ezequiel Gallina
(python-pdbtrack-comint-output-filter-function): Enhancements on stacktrace detection. (thanks @gnovak)
2013-01-30Merge from emacs-24; up to 2012-12-12T22:29:54Z!yamaoka@jpl.orgGlenn Morris
2013-01-28* progmodes/python.el (python-shell-parse-command): FindFabián Ezequiel Gallina
python-shell-interpreter with modified environment.
2013-01-24Merge from emacs-24; up to 2012-12-11T18:52:31Z!monnier@iro.umontreal.caGlenn Morris
2013-01-23* lisp/progmodes/python.el: Enhancements to header documentation aboutFabián Ezequiel Gallina
skeletons. Fixes: debbugs:5716
2013-01-13Merge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.eduGlenn Morris
2013-01-10* progmodes/python.el (python-nav-end-of-statement): FixFabián Ezequiel Gallina
cornercase when handling multiline strings.
2013-01-02Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert
2013-01-01Update copyright notices for 2013.Paul Eggert
2012-12-31* progmodes/python.el (python-nav-end-of-statement): Rewrite inFabián Ezequiel Gallina
order to improve efficiency (Based on Daniel Colascione's <dancol@dancol.org> patch). Fixes: debbugs:13182
2012-12-31* progmodes/python.el: Bump defgroup :version to 24.3.Fabián Ezequiel Gallina
2012-12-31Backported revisions 2012-12-29T12:33:33Z!fgallina@gnu.org and ↵Fabián Ezequiel Gallina
2012-12-29T12:57:49Z!fgallina@gnu.org from trunk.
2012-12-29* progmodes/python.el: Support other commands triggeringFabián Ezequiel Gallina
python-indent-line so indentation cycling continues to work. (python-indent-trigger-commands): New defcustom. (python-indent-line): Use it.
2012-12-29* progmodes/python.el (python-shell-send-region): Add blank linesFabián Ezequiel Gallina
for non sent code so backtraces remain correct.
2012-12-29* progmodes/python.el: Remove cl dependency.Fabián Ezequiel Gallina
(python-syntax-count-quotes): Replace incf call. (python-fill-string): Replace setf call.
2012-12-12Merge from emacs-24; up to 2012-11-30T04:44:52Z!cyd@gnu.orgGlenn Morris
2012-12-11* progmodes/python.el (python-skeleton-class)Fabián Ezequiel Gallina
(python-skeleton-def): Do not add space after defun name.
2012-11-26Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.caGlenn Morris
2012-11-26* progmodes/python.el:Fabián Ezequiel Gallina
(python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local.
2012-11-26Fix Imenu regression.Fabián Ezequiel Gallina
* progmodes/python.el: (python-nav-beginning-of-defun): Fix forward movement when statement(s) separates point from defun. (python-imenu-prev-index-position): New function.
2012-11-19* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):Stefan Monnier
Allow compiler-macros to be lambda expressions. * lisp/progmodes/python.el: Use cl-lib. Move var declarations outside of eval-when-compile. (python-syntax-context): Add compiler-macro. (python-font-lock-keywords): Simplify with De Morgan.
2012-11-12Fix end-of-defun misbehavior.Fabián Ezequiel Gallina
* progmodes/python.el (python-nav-beginning-of-defun): Rename from python-beginning-of-defun-function. Handle nested defuns correctly. (python-nav-end-of-defun): Rename from python-end-of-defun-function. Ensure forward movement. (python-info-current-defun): Reimplemented to work as intended with new fixed python-nav-{end,beginning}-of-defun. Stop scanning parent defuns as soon as possible.
2012-11-03* progmodes/python.el (inferior-python-mode): Fix hang inFabián Ezequiel Gallina
jit-lock. Fixes: debbugs:12645
2012-10-11* progmodes/python.el (python-mode-map): ReplaceFabián Ezequiel Gallina
subtitute-key-definition with proper command remapping. (python-nav--up-list): Fix behavior for blocks on the same level.
2012-10-08Implemented `backward-up-list'-like navigation.Fabián Ezequiel Gallina
* progmodes/python.el (python-nav-up-list) (python-nav-backward-up-list): New functions. (python-mode-map): Define substitute key for backward-up-list to python-nav-backward-up-list.
2012-10-08* progmodes/python.el (python-fill-paragraph): Rename fromFabián Ezequiel Gallina
python-fill-paragraph-function. Fixed fill-paragraph for decorators. Fixes: debbugs:12605
2012-10-08* progmodes/python.el (python-shell-output-filter): Handle extraFabián Ezequiel Gallina
carriage return in OSX. Fixes: debbugs:12409
2012-10-08Fix shell handling of unbalanced quotes and parens in output.Fabián Ezequiel Gallina
* progmodes/python.el (python-rx-constituents): Added string-delimiter. (python-syntax-propertize-function): Use it. (python-shell-output-syntax-table): New var. (inferior-python-mode): Prevent unbalanced parens/quotes from previous output mess with current input context.
2012-10-08Enhancements on forward-sexp movement.Fabián Ezequiel Gallina
* progmodes/python.el (python-nav-beginning-of-statement) (python-nav-end-of-statement): Return point-marker. (python-nav-forward-sexp): lisp-like forward-sexp behavior. (python-info-current-symbol) (python-info-statement-starts-block-p): Rename from python-info-beginning-of-block-p. (python-info-statement-ends-block-p): Rename from python-info-end-of-block-p. (python-info-beginning-of-statement-p) (python-info-end-of-statement-p) (python-info-beginning-of-block-p, python-info-end-of-block-p): New functions.
2012-10-07* progmodes/python.el (inferior-python-mode)Fabián Ezequiel Gallina
(python-shell-make-comint): Fixed initialization of local variables copied from parent buffer.
2012-10-07Enhancements to indentation.Fabián Ezequiel Gallina
* lisp/progmodes/python.el (python-indent-context): Give priority to inside-string context. Make comments indentation markers. (python-indent-region): Do not mess with strings, unless it's the enclosing set of quotes.