Paul Eggert
526e5233cc
Spelling fixes.
2013-08-15 22:15:51 -07:00
Fabián Ezequiel Gallina
ad75644970
* lisp/progmodes/python.el (python-imenu--build-tree)
...
(python-imenu--put-parent): Simplify and Fix (GH bug 146).
* test/automated/python-tests.el (python-imenu-create-index-4)
(python-imenu-create-flat-index-2): New tests.
2013-08-13 13:36:32 -03:00
Fabián Ezequiel Gallina
1f0480d4cd
* lisp/progmodes/python.el (python-imenu--build-tree): Fix corner case
...
in nested defuns.
* test/automated/python-tests.el (python-imenu-create-index-2)
(python-imenu-create-index-3): New tests.
2013-07-12 22:55:58 -03:00
Glenn Morris
e0df2d1420
* lisp/progmodes/python.el (ffap-alist): Declare.
2013-06-18 00:17:58 -07:00
Glenn Morris
f46305c86c
Merge from emacs-24; up to 2012-12-27T20:09:45Z!juri@jurta.org
2013-06-01 13:21:22 -07:00
Fabián Ezequiel Gallina
20992a8504
* progmodes/python.el: Fix typo in commentary.
2013-05-26 06:06:02 -03:00
Fabián Ezequiel Gallina
f782d53133
* progmodes/python.el (python-indent-block-enders): Add break,
...
continue and raise keywords.
2013-05-26 05:55:02 -03:00
Glenn Morris
a931698afd
Fix a bunch of custom types (thank you cus-test.el)
...
* 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-05-08 21:40:20 -04:00
Fabián Ezequiel Gallina
6bd1a072a8
Small fixes to 2013-04-19T02:31:09Z!fgallina@gnu.org
...
* 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-19 10:29:41 -03:00
Fabián Ezequiel Gallina
adc3121366
New faster Imenu implementation.
...
* 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-18 23:31:09 -03:00
Fabián Ezequiel Gallina
04754d3612
* lisp/progmodes/python.el (python-nav--syntactically): Fix cornercases
...
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-17 19:23:13 -03:00
Fabián Ezequiel Gallina
083850a6a1
New defun movement commands.
...
* 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-17 02:08:20 -03:00
Fabián Ezequiel Gallina
619ed6e18a
* progmodes/python.el (python-syntax--context-compiler-macro): New defun.
...
(python-syntax-context): Use named compiler-macro for backwards
compatibility with Emacs 24.x.
2013-04-16 23:52:50 -03:00
Stefan Monnier
351edece98
* lisp/progmodes/python.el (python-mode-skeleton-abbrev-table): Rename from
...
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-04-16 13:28:11 -04:00
Glenn Morris
8d3655be5a
Merge from emacs-24; up to 2012-12-26T16:22:18Z!michael.albinus@gmx.de
2013-03-30 09:55:47 -07:00
Fabián Ezequiel Gallina
c9886b39eb
Un-indent after "pass" and "return" statements
...
* 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-03-25 22:55:11 -03:00
Glenn Morris
cfbf790d80
Merge from emacs-24; up to 2012-12-21T07:35:02Z!ueno@gnu.org
2013-02-21 08:56:49 -08:00
Fabián Ezequiel Gallina
c132ab7921
* progmodes/python.el (python-info-current-defun): Enhance
...
match-data cluttering prevention.
2013-02-20 17:41:46 -03:00
Fabián Ezequiel Gallina
33c0cb2549
* progmodes/python.el (python-info-current-defun): Fix failed
...
defun name retrieval because of unwanted match-data cluttering.
2013-02-19 15:53:57 -03:00
Glenn Morris
872faefb07
Merge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ru
2013-02-18 19:29:28 -08:00
Fabián Ezequiel Gallina
2af3b9c16e
* progmodes/python.el (python-indent-context): Fix
...
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-19 00:18:32 -03:00
Paul Eggert
648e5523fb
Merge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.de
2013-02-14 22:35:54 -08:00
Fabián Ezequiel Gallina
ea5f4192b9
* progmodes/python.el: Explain how to restore "cc-mode"-like
...
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 21:42:11 -03:00
Fabián Ezequiel Gallina
dcbec5e2e6
* progmodes/python.el (python-info-current-defun): Fix current
...
defun detection.
Fixes: debbugs:13618
2013-02-13 20:07:59 -03:00
Paul Eggert
d9c287e589
Spelling fixes.
2013-02-01 22:04:06 -08:00
Glenn Morris
741d511359
Merge from emacs-24; up to 2012-12-13T00:52:17Z!yamaoka@jpl.org
2013-01-30 09:16:30 -08:00
Fabián Ezequiel Gallina
6ff930c3d2
* progmodes/python.el
...
(python-pdbtrack-comint-output-filter-function): Enhancements on
stacktrace detection. (thanks @gnovak)
2013-01-30 12:02:58 -03:00
Glenn Morris
3f82a88a05
Merge from emacs-24; up to 2012-12-12T22:29:54Z!yamaoka@jpl.org
2013-01-30 00:07:37 -08:00
Fabián Ezequiel Gallina
e44970863d
* progmodes/python.el (python-shell-parse-command): Find
...
python-shell-interpreter with modified environment.
2013-01-28 18:59:42 -03:00
Glenn Morris
830e46e61b
Merge from emacs-24; up to 2012-12-11T18:52:31Z!monnier@iro.umontreal.ca
2013-01-24 20:41:39 -08:00
Fabián Ezequiel Gallina
345f866e04
* lisp/progmodes/python.el: Enhancements to header documentation about
...
skeletons.
Fixes: debbugs:5716
2013-01-23 22:24:09 -03:00
Glenn Morris
c0511b5769
Merge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu
2013-01-13 12:03:01 -08:00
Fabián Ezequiel Gallina
5062005180
* progmodes/python.el (python-nav-end-of-statement): Fix
...
cornercase when handling multiline strings.
2013-01-10 00:44:12 -03:00
Paul Eggert
0877d0dc24
Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Fabián Ezequiel Gallina
6861432ebd
* progmodes/python.el (python-nav-end-of-statement): Rewrite in
...
order to improve efficiency (Based on Daniel Colascione's
<dancol@dancol.org> patch).
Fixes: debbugs:13182
2012-12-31 17:58:57 -03:00
Fabián Ezequiel Gallina
5b63c74a17
* progmodes/python.el: Bump defgroup :version to 24.3.
2012-12-31 16:35:57 -03:00
Fabián Ezequiel Gallina
df4758b82e
Backported revisions 2012-12-29T12:33:33Z!fgallina@gnu.org and 2012-12-29T12:57:49Z!fgallina@gnu.org from trunk.
2012-12-31 16:27:20 -03:00
Fabián Ezequiel Gallina
ccb1c17e8b
* progmodes/python.el: Support other commands triggering
...
python-indent-line so indentation cycling continues to work.
(python-indent-trigger-commands): New defcustom.
(python-indent-line): Use it.
2012-12-29 09:57:49 -03:00
Fabián Ezequiel Gallina
16768034b2
* progmodes/python.el (python-shell-send-region): Add blank lines
...
for non sent code so backtraces remain correct.
2012-12-29 09:33:33 -03:00
Fabián Ezequiel Gallina
66164d2f17
* progmodes/python.el: Remove cl dependency.
...
(python-syntax-count-quotes): Replace incf call.
(python-fill-string): Replace setf call.
2012-12-29 08:04:55 -03:00
Glenn Morris
727f973937
Merge from emacs-24; up to 2012-11-30T04:44:52Z!cyd@gnu.org
2012-12-12 21:29:15 -08:00
Fabián Ezequiel Gallina
2c43a9adb2
* progmodes/python.el (python-skeleton-class)
...
(python-skeleton-def): Do not add space after defun name.
2012-12-11 04:22:55 -03:00
Glenn Morris
5c9cf0a3f9
Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.ca
2012-11-26 19:10:32 -08:00
Fabián Ezequiel Gallina
98f99594f7
* progmodes/python.el:
...
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.
2012-11-26 20:31:06 -03:00
Fabián Ezequiel Gallina
207cb73c18
Fix Imenu regression.
...
* 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-26 18:45:58 -03:00
Stefan Monnier
141462223d
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
...
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-19 16:30:55 -05:00
Fabián Ezequiel Gallina
2e6625b527
Fix end-of-defun misbehavior.
...
* 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-12 10:26:50 -03:00
Fabián Ezequiel Gallina
12fd5ee1ae
* progmodes/python.el (inferior-python-mode): Fix hang in
...
jit-lock.
Fixes: debbugs:12645
2012-11-03 09:20:02 -03:00
Fabián Ezequiel Gallina
55cd00c8f9
* progmodes/python.el (python-mode-map): Replace
...
subtitute-key-definition with proper command remapping.
(python-nav--up-list): Fix behavior for blocks on the same level.
2012-10-11 21:07:25 -03:00