1. 03 Jun, 2017 1 commit
    • Glenn Morris's avatar
      Add watch for password back to inferior python comint filter · 182912c7
      Glenn Morris authored
      It was removed along with other items for speed (bug#16875),
      but doesn't seem to have been causing an issue, and it's useful to
      have it there (bug#27154).
      * lisp/progmodes/python.el (inferior-python-mode):
      Add comint-watch-for-password-prompt to comint-output-filter-functions.
      182912c7
  2. 29 May, 2017 1 commit
  3. 23 Mar, 2017 1 commit
    • Philipp Stephani's avatar
      Protect against an infloop in python-mode · 4fbd330f
      Philipp Stephani authored
      There appears to be an edge case caused by using `syntax-ppss' in a
      narrowed buffer during JIT lock inside of Python triple-quote strings.
      Unfortunately it is impossible to reproduce without manually
      destroying the syntactic information in the Python buffer, but it has
      been observed in practice.  In that case it can happen that the syntax
      caches get sufficiently out of whack so that there appear to be
      overlapping strings in the buffer.  As Python has no nested strings,
      this situation is impossible and leads to an infloop in
      `python-nav-end-of-statement'.  Protect against this by checking
      whether the search for the end of the current string makes progress.
      
      * python.el (python-nav-end-of-statement): Protect against infloop.
      * progmodes/python-tests.el
      (python-tests--python-nav-end-of-statement--infloop): Add unit test.
      4fbd330f
  4. 06 Mar, 2017 1 commit
  5. 08 Feb, 2017 1 commit
  6. 27 Jan, 2017 1 commit
    • Hong Xu's avatar
      python-mode: Fix detection for opening blocks. · 7cb7a582
      Hong Xu authored
      	* python.el (python-info-dedenter-opening-block-positions): There
      	can't be any back-indented lines between an opening block and the
      	current line.
      
      	* python-tests.el (python-indent-electric-colon-4): Add an indent
      	test case where there is one-more indented previous opening block.
      7cb7a582
  7. 13 Jan, 2017 1 commit
    • Dmitry Lazurkin's avatar
      Fix extracting async def type and name in python mode imenu · d4a97088
      Dmitry Lazurkin authored
      * lisp/progmodes/python.el (python-imenu--get-defun-type-name):
      New function.
      (python-imenu--build-tree): Use python-imenu--get-defun-type-name for
      extract async or simple def type and name at current
      position (Bug#24820).
      * test/lisp/progmodes/python-tests.el (python-imenu-create-index-1):
      (python-imenu-create-flat-index-1): Add async def's.
      d4a97088
  8. 09 Jan, 2017 1 commit
  9. 01 Jan, 2017 1 commit
  10. 09 Dec, 2016 1 commit
    • Noam Postavsky's avatar
      Fix bad quoting of python-shell-interpreter · 8f611e5e
      Noam Postavsky authored
      `python-shell-calculate-command' was using `shell-quote-argument' as if
      it was generating a shell command, but its callers don't pass the result
      to a shell, and they expect to parse it with `split-string-and-unquote'.
      This caused problems depending on the flavor of shell quoting in
      effect (Bug#25025).
      
      * lisp/progmodes/python.el (python-shell-calculate-command): Use
      `combine-and-quote-strings' to quote the interpreter, so that it can be
      parsed by `python-shell-make-comint' successfully using
      `split-string-and-unquote'.
      8f611e5e
  11. 20 Nov, 2016 1 commit
    • Michael Albinus's avatar
      Add file-local-name · 22946702
      Michael Albinus authored
      * doc/lispref/files.texi (Magic File Names): Add `file-local-name'.
      (Unique File Names): Use it.
      
      * etc/NEWS: Mention `file-local-name'.
      
      * lisp/files.el (file-local-name): New defun.
      (file-expand-wildcards):
      * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
      * lisp/eshell/esh-ext.el (eshell-remote-command):
      * lisp/eshell/esh-proc.el (eshell-gather-process-output):
      * lisp/org/ob-core.el (org-babel-local-file-name):
      * lisp/progmodes/gud.el (gud-common-init, gud-format-command):
      * lisp/progmodes/python.el (python-shell-send-file):
      * lisp/shell.el (shell):
      * lisp/vc/ediff-diff.el (ediff-same-file-contents):
      * lisp/vc/vc-git.el (vc-git-checkin): Use it.
      22946702
  12. 17 Nov, 2016 1 commit
  13. 08 Nov, 2016 2 commits
    • Daniel Colascione's avatar
      Avoid infloop in python · 3ef4ee84
      Daniel Colascione authored
      Fix bug#24905
      
      * lisp/progmodes/python.el (python-info-docstring-p): Improve
      infloop avoidance: replace (bobp) with generic test for
      forward progress.
      * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add
      test for bug#24905
      3ef4ee84
    • Daniel Colascione's avatar
      Avoid infloop in python · 112111c4
      Daniel Colascione authored
      Fix bug#24905
      
      * lisp/progmodes/python.el (python-info-docstring-p): Improve
      infloop avoidance: replace (bobp) with generic test for
      forward progress.
      * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add
      test for bug#24905
      112111c4
  14. 06 Nov, 2016 2 commits
    • Noam Postavsky's avatar
      Fix python-mode hideshow regexp · 0b6b8151
      Noam Postavsky authored
      2015-02-07 "Fix hideshow integration[...]" changed the regexp added to
      `hs-special-modes-alist' so that it worked when not searching from the
      beginning of the line.  However, this allows matching tokens ending in
      "def" or "class", not just those keywords.  This results in an infinite
      loop in hs-hide-all (Bug #24815).
      
      * lisp/progmodes/python.el (python-mode): Add symbol boundaries around
      the def|class matching part of the regexp added to
      hs-special-modes-alist.
      0b6b8151
    • Paul Eggert's avatar
      Modernize usage of 'macOS' in doc and comments · dc152c54
      Paul Eggert authored
      Apple changed the spelling of its operating system again, to "macOS",
      effective with macOS 10.12 Sierra (2016-09-20).  Change Emacs
      documentation and comments to match this.  Stick with older OS
      spellings ("OS X", "Mac OS X") when talking about older releases where
      the older names are more correct.
      dc152c54
  15. 31 Oct, 2016 1 commit
  16. 17 Jul, 2016 2 commits
  17. 14 Jun, 2016 1 commit
  18. 10 Jun, 2016 1 commit
    • Jules Tamagnan's avatar
      Fix eldoc-related freezes in python mode · 66d556b5
      Jules Tamagnan authored
      * lisp/progmodes/python.el (python-eldoc-get-doc): New defvar.
      (python-eldoc-function-timeout)
      (python-eldoc-function-timeout-permanent): New defcustoms.
      (python-eldoc-function): If python-eldoc--get-doc-at-point times
      out, effectively turn off ElDoc in current buffer.  (Bug#23609)
      66d556b5
  19. 07 Jun, 2016 1 commit
  20. 18 May, 2016 1 commit
  21. 27 Apr, 2016 1 commit
    • Jorgen Schaefer's avatar
      Add a number of Python 3 exceptions · 1a08fb07
      Jorgen Schaefer authored
      * lisp/progmoes/python.el (python-font-lock-keywords): Clean up the exception
      list, adding a number of new Python 3 exceptions and moving some exceptions
      to the Python 2 and 3 list as Python 2.7 includes them.
      1a08fb07
  22. 26 Apr, 2016 2 commits
    • Jorgen Schaefer's avatar
      Add Python 3.5 keyword "await" · 40bfebec
      Jorgen Schaefer authored
      * lisp/progmodes/python.el (python-font-lock-keywords): Add await as
      keyword.
      40bfebec
    • Lele Gaifax's avatar
      Add new keywords of Python 3.5 · fa7886a4
      Lele Gaifax authored
      Python 3.5, released in mid September 2015, introduced a few new
      keywords to better support asynchronous code, "async" and "await"
      in particular. See https://www.python.org/dev/peps/pep-0492/ for
      details. (Bug#21783)
      * lisp/progmodes/python.el (python-rx-constituents): Add async
      def/for/with as block-start and async def as defun.
      * lisp/progmodes/python.el (python-font-lock-keywords): Add async
      def/for/with as keyword.
      * test/automated/python-tests.el (python-indent-after-async-block-1,
      python-indent-after-async-block-2, python-indent-after-async-block-3,
      python-nav-beginning-of-defun-3): New tests to test indentation and
      navigation for the async keyword.
      fa7886a4
  23. 21 Apr, 2016 1 commit
  24. 06 Apr, 2016 1 commit
    • Lele Gaifax's avatar
      Add new keywords of Python 3.5 · 1f6b0bc1
      Lele Gaifax authored
      Python 3.5, released in mid September 2015, introduced a few new
      keywords to better support asynchronous code, "async" and "await"
      in particular. See https://www.python.org/dev/peps/pep-0492/ for
      details. (Bug#21783)
      * lisp/progmodes/python.el (python-rx-constituents): Add async
      def/for/with as block-start and async def as defun.
      * lisp/progmodes/python.el (python-font-lock-keywords): Add async
      def/for/with as keyword.
      * test/automated/python-tests.el (python-indent-after-async-block-1,
      python-indent-after-async-block-2, python-indent-after-async-block-3,
      python-nav-beginning-of-defun-3): New tests to test indentation and
      navigation for the async keyword.
      1f6b0bc1
  25. 28 Mar, 2016 1 commit
  26. 24 Jan, 2016 1 commit
    • Alan Mackenzie's avatar
      Expunge "allow" + infinitive without direct object from source and doc. · fbce4757
      Alan Mackenzie authored
      Do the same for "permit", "enable", and "prevent".
      
      * doc/emacs/mule.texi:
      * doc/lispref/control.texi:
      * doc/lispref/display.texi:
      * doc/lispref/frames.texi:
      * doc/lispref/functions.texi:
      * doc/lispref/nonascii.texi:
      * doc/lispref/streams.texi:
      * doc/lispref/windows.texi:
      * doc/misc/dbus.texi:
      * doc/misc/eww.texi:
      * doc/misc/flymake.texi:
      * doc/misc/octave-mode.texi:
      * doc/misc/org.texi:
      * doc/misc/reftex.texi:
      * doc/misc/tramp.texi:
      * doc/misc/wisent.texi:
      * etc/NEWS:
      * lisp/autorevert.el:
      * lisp/cedet/mode-local.el:
      * lisp/cedet/semantic/senator.el:
      * lisp/cedet/semantic/wisent.el:
      * lisp/dos-fns.el:
      * lisp/frameset.el:
      * lisp/gnus/gnus-agent.el:
      * lisp/gnus/mm-util.el:
      * lisp/international/characters.el:
      * lisp/ldefs-boot.el:
      * lisp/mail/mailclient.el:
      * lisp/man.el:
      * lisp/mh-e/mh-search.el:
      * lisp/net/tramp-cmds.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/org/org-crypt.el:
      * lisp/org/org-element.el:
      * lisp/org/org-feed.el:
      * lisp/org/org.el:
      * lisp/org/ox-ascii.el:
      * lisp/org/ox-icalendar.el:
      * lisp/org/ox-publish.el:
      * lisp/org/ox.el:
      * lisp/play/gamegrid.el:
      * lisp/play/gomoku.el:
      * lisp/progmodes/antlr-mode.el:
      * lisp/progmodes/python.el:
      * lisp/progmodes/vhdl-mode.el:
      * lisp/strokes.el:
      * lisp/textmodes/ispell.el:
      * lisp/tree-widget.el:
      * lisp/vc/pcvs.el:
      * lisp/window.el:
      * src/lisp.h:
      * src/w32.c:
      * src/w32heap.c:
      * src/w32term.c:
      * src/window.c:
      * src/xfaces.c:
      
      Replace solecisms like "This allow to do something" with a correct
      alternative, such as "This allow you to do something", "This allows
      something to be done" or "This allows the doing of something".
      fbce4757
  27. 15 Jan, 2016 1 commit
  28. 13 Jan, 2016 1 commit
    • Glenn Morris's avatar
      Add some missing version tags. · e85e0d59
      Glenn Morris authored
      * lisp/electric.el (electric-quote-comment)
      (electric-quote-string, electric-quote-paragraph):
      * lisp/epg-config.el (epg-gpgconf-program):
      * lisp/rect.el (rectangle-preview):
      * lisp/emacs-lisp/check-declare.el (check-declare-ext-errors):
      * lisp/emacs-lisp/package.el (package-selected-packages)
      (package-hidden-regexps):
      * lisp/erc/erc.el (erc-network-hide-list, erc-channel-hide-list):
      * lisp/eshell/em-term.el (eshell-destroy-buffer-when-process-dies):
      * lisp/gnus/mml-sec.el (mml1991-signers, mml2015-signers)
      (mml-smime-signers, mml1991-encrypt-to-self, mml2015-encrypt-to-self)
      (mml-smime-encrypt-to-self, mml2015-sign-with-sender)
      (mml-smime-sign-with-sender, mml2015-always-trust)
      (mml-secure-fail-when-key-problem, mml-secure-key-preferences):
      * lisp/net/browse-url.el (browse-url-conkeror-new-window-is-buffer)
      (browse-url-conkeror-arguments):
      * lisp/net/newst-reader.el (newsticker-download-logos):
      * lisp/progmodes/gud.el (gud-guiler-command-name):
      * lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
      * lisp/progmodes/project.el (project-vc):
      * lisp/progmodes/python.el (python-indent-guess-indent-offset-verbose)
      (python-shell-remote-exec-path, python-shell-first-prompt-hook)
      (python-shell-completion-native-disabled-interpreters)
      (python-shell-completion-native-enable)
      (python-shell-completion-native-output-timeout)
      (python-shell-completion-native-try-output-timeout):
      * lisp/progmodes/xref.el (xref):
      * lisp/term/screen.el (xterm-screen-extra-capabilities):
      * lisp/term/xterm.el (xterm-max-cut-length):
      Add missing version tags.
      e85e0d59
  29. 01 Jan, 2016 1 commit
  30. 30 Dec, 2015 1 commit
  31. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      (describe-mode-local-overload):
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
      ac16149b
  32. 15 Nov, 2015 1 commit
  33. 01 Nov, 2015 1 commit
    • Juanma Barranquero's avatar
      Fix bug#21762 · 590a820f
      Juanma Barranquero authored
      * lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with
      `eql' instead of `=' to accommodate the case that (syntax-after (point))
      returns nil.
      
      * test/automated/python-tests.el (python-indent-inside-paren-7):
      New test.
      590a820f
  34. 28 Sep, 2015 1 commit
  35. 21 Sep, 2015 2 commits
    • Paul Eggert's avatar
      Clarify or replace a few \u escapes. · 818fc6e1
      Paul Eggert authored
      * doc/lispref/nonascii.texi (Character Properties)
      More-detailed commentary for \u escapes.
      * lisp/progmodes/python.el (python--prettify-symbols-alist):
      * lisp/replace.el (query-replace-from-to-separator):
      * lisp/textmodes/rst.el (rst-bullets, rst-re-alist-def)
      (rst-mode-syntax-table):
      * lisp/whitespace.el (whitespace-display-mappings):
      Prefer actual character to \u escape when this makes the code
      easier to follow in the usual case where Unicode chars can be
      displayed.
      818fc6e1
    • Mark Oteiza's avatar
      Add prettify symbols to python-mode · dadcf339
      Mark Oteiza authored
      lisp/progmodes/python.el (python-prettify-symbols-alist): New variable
      lisp/progmodes/python.el (python-mode): Use it
      dadcf339