1. 01 Jan, 2015 1 commit
  2. 30 Dec, 2014 1 commit
  3. 29 Dec, 2014 1 commit
  4. 27 Dec, 2014 5 commits
    • Fabián Ezequiel Gallina's avatar
      python.el: Native readline completion. · 2cb75922
      Fabián Ezequiel Gallina authored
      This commit adds native readline completion that fallbacks to the old
      mechanism when it cannot be used for the current interpreter.
      
      * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters)
      (python-shell-completion-native-enable)
      (python-shell-completion-native-output-timeout): New defcustoms.
      (python-shell-completion-native-interpreter-disabled-p)
      (python-shell-completion-native-try)
      (python-shell-completion-native-setup)
      (python-shell-completion-native-turn-off)
      (python-shell-completion-native-turn-on)
      (python-shell-completion-native-turn-on-maybe)
      (python-shell-completion-native-turn-on-maybe-with-msg)
      (python-shell-completion-native-toggle): New functions.
      (python-shell-completion-native-get-completions): New function.
      (python-shell-completion-at-point): Use it.
      
      * test/automated/python-tests.el
      (python-shell-completion-native-interpreter-disabled-p-1): New
      test.
      2cb75922
    • Glenn Morris's avatar
      ee01a8c0
    • Fabián Ezequiel Gallina's avatar
      python.el: Enhance shell user interaction and deprecate python-shell-get-or-create-process. · 7d1e62d5
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el
      (python-shell-get-process-or-error): New function.
      (python-shell-with-shell-buffer): Use it.
      (python-shell-send-string, python-shell-send-region)
      (python-shell-send-buffer, python-shell-send-defun)
      (python-shell-send-file, python-shell-switch-to-shell): Use it.
      Add argument MSG to display user-friendly message when no process
      is running.
      (python-shell-switch-to-shell): Call pop-to-buffer with NORECORD.
      (python-shell-make-comint): Rename argument SHOW from POP.  Use
      display-buffer instead of pop-to-buffer.
      (run-python): Doc fix.  Return process.
      (python-shell-get-or-create-process): Make obsolete.
      
      * test/automated/python-tests.el (python-shell-get-or-create-process-1)
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): Remove tests.
      7d1e62d5
    • Fabián Ezequiel Gallina's avatar
      * lisp/progmodes/python.el (python-shell-buffer-substring): Handle · 433af0a0
      Fabián Ezequiel Gallina authored
      cornercase when region sent starts at point-min.
      433af0a0
    • Fabián Ezequiel Gallina's avatar
      python.el: Handle file encoding for shell. · 2dd5163d
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-rx-constituents): Add coding-cookie.
      (python-shell--save-temp-file): Write file with proper encoding.
      (python-shell-buffer-substring): Add coding cookie for detected
      encoding to generated content.  Fix blank lines when removing
      if-name-main block.
      (python-shell-send-file): Handle file encoding.
      (python-info-encoding-from-cookie)
      (python-info-encoding): New functions.
      
      * test/automated/python-tests.el (python-shell-buffer-substring-1)
      (python-shell-buffer-substring-2, python-shell-buffer-substring-3)
      (python-shell-buffer-substring-4, python-shell-buffer-substring-5)
      (python-shell-buffer-substring-6, python-shell-buffer-substring-7)
      (python-shell-buffer-substring-8)
      (python-info-encoding-from-cookie-1)
      (python-info-encoding-from-cookie-2)
      (python-info-encoding-from-cookie-3)
      (python-info-encoding-from-cookie-4)
      (python-info-encoding-from-cookie-5)
      (python-info-encoding-from-cookie-6)
      (python-info-encoding-from-cookie-7, python-info-encoding-1)
      (python-info-encoding-2): New tests.
      2dd5163d
  5. 26 Dec, 2014 2 commits
    • Fabián Ezequiel Gallina's avatar
      python.el: Generate clearer shell buffer names. · 7284a174
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-get-process-name)
      (python-shell-internal-get-process-name): Use `buffer-name`.
      (python-shell-internal-get-or-create-process): Simplify.
      
      * test/automated/python-tests.el (python-shell-get-process-name-1)
      (python-shell-internal-get-process-name-1): Cleanup.
      (python-shell-get-process-name-2)
      (python-shell-internal-get-process-name-2): New tests.
      (python-shell-calculate-command-1)
      (python-shell-calculate-process-environment-3)
      (python-shell-calculate-exec-path-2, python-shell-make-comint-1)
      (python-shell-make-comint-2, python-shell-make-comint-4)
      (python-shell-get-process-1, python-util-clone-local-variables-1):
      Replace obsolete function and variable references with current.
      7284a174
    • Paul Eggert's avatar
      Spelling fixes · b3946c9b
      Paul Eggert authored
      b3946c9b
  6. 25 Dec, 2014 1 commit
  7. 24 Dec, 2014 1 commit
  8. 23 Dec, 2014 1 commit
  9. 22 Dec, 2014 2 commits
  10. 19 Dec, 2014 2 commits
  11. 18 Dec, 2014 1 commit
  12. 16 Dec, 2014 4 commits
  13. 14 Dec, 2014 1 commit
    • Joao Tavora's avatar
      Consider electric-pair-mode in tex-mode. · bb57c94d
      Joao Tavora authored
      Fixes: debbugs:19356
      
      * lisp/textmodes/tex-mode.el (tex-insert-quote): Consider and respect
      `electric-pair-mode'.
      
      * test/automated/electric-tests.el (autowrapping-7): New test for
      tex-mode's autowrapping.
      (electric-pair-test-for): Call the actual key-binding
      interactively.
      bb57c94d
  14. 13 Dec, 2014 2 commits
  15. 11 Dec, 2014 1 commit
    • Michael Albinus's avatar
      * automated/vc-tests.el (vc-test--revision-granularity-function): · 9ff164ac
      Michael Albinus authored
      New defun.
      (vc-test--create-repo-function): Rename from
      `vc-test--create-repo-if-not-supported'.  Adapt all callees.
      (vc-test--create-repo): Check also for revision-granularity.
      (vc-test--unregister-function): Additional argument FILE.  Adapt
      all callees.
      (vc-test--working-revision): New defun.
      (vc-test-*-working-revision): New tests.
      9ff164ac
  16. 10 Dec, 2014 1 commit
  17. 09 Dec, 2014 1 commit
  18. 06 Dec, 2014 1 commit
  19. 04 Dec, 2014 1 commit
  20. 03 Dec, 2014 2 commits
  21. 22 Nov, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      Set PYTHONUNBUFFERED on shell startup. · 238c052f
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:18595
      
      * lisp/progmodes/python.el (python-shell-unbuffered): New var.
      (python-shell-calculate-process-environment): Use it.
      
      * test/automated/python-tests.el
      (python-shell-calculate-process-environment-4)
      (python-shell-calculate-process-environment-5): New tests.
      (python-shell-make-comint-3): Use file-equal-p.
      (python-shell-get-or-create-process-1)
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): Fix interpreter for
      Windows.
      238c052f
  22. 21 Nov, 2014 1 commit
    • Ulf Jasper's avatar
      'libxml-parse(html|xml)-region': new optional param 'discard-comments'. · c39443c1
      Ulf Jasper authored
      * doc/lispref/text.texi (Parsing HTML/XML): Document new optional parameter
      'discard-comments' of 'libxml-parse(html|xml)-region'.
      
      * src/xml.c (parse_region): Take care of new optional parameter
      'discard-comments' of 'libxml-parse(html|xml)-region'.
      (Flibxml_parse_html_region, Flibxml_parse_xml_region): New
      optional parameter 'discard-comments'.
      
      * test/automated/libxml-tests.el
      (libxml-tests--data-comments-preserved): Renamed from
      'libxml-tests--data'.
      (libxml-tests--data-comments-discarded): New.
      (libxml-tests): Check whether 'libxml-parse-xml-region' is
      discarding comments correctly.
      c39443c1
  23. 17 Nov, 2014 6 commits
    • Michal Nazarewicz's avatar
      tildify.el: introduce a `tildify-foreach-region-function' variable · 1901029f
      Michal Nazarewicz authored
      * textmodes/tildify.el (tildify-foreach-region-function): New
      variable specifying a function determining portions of buffer that
      should be tildified.  It allows major modes to create a filtering
      function more elaborate than a set of regular expressions.
      Initialised to `tildify--deprecated-ignore-evironments' by default
      to handle now deprecated `tildify-ignored-environments-alist'
      variable.
      (tildify--foreach-region): A new function that takes
      `tildify-foreach-region-function' into account and calls callback
      for regions of the buffer that should be tildified.
      (tildify-foreach-ignore-environments): A new function which can be
      partially applied and used as `tildify-foreach-region-function'.
      (tildify-ignored-environments-alist, tildify--pick-alist-entry):
      Mark as obsolete.
      (tildify--find-env): Rename from `tildify-find-env' and mark as
      obsolete.
      (tildify--deprecated-ignore-evironments): New function,
      immediately marked as obsolete, used to handle deprecated
      `tildify-ignored-environments-alist'.
      
      * textmodes/tex-mode.el (tex-common-initialization): Set
      `tildify-foreach-region-function' variable in all variants of TeX
      mode since `tildify-ignored-environments-alist' variable is now
      empty by default.
      
      * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'.
      
      * textmodes/sgml-mode.el (sgml-mode): Ditto in `sgml-mode'.
      1901029f
    • Michal Nazarewicz's avatar
      tildify.el: introduce a `tildify-space-string' variable · b8104090
      Michal Nazarewicz authored
      * textmodes/tildify.el (tildify-space-string): New variable for
      specifying representation of a hard space -- a no-break space by
      default.  Being a buffer-local variable it is much easier to
      handle than `tildify-string-alist' that has been used so far.  It
      also works better with derived modes.
      (tildify-string-alist): Mark as obsolete.
      
      * textmodes/tex-mode.el (tex-common-initialization): Set
      `tildify-space-string' variable in all variants of TeX mode since
      `tildify-string-alist' is now empty by default.
      
      * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'.  If
      encoding supports it use no-break space instead of character
      entity; this changes previous default which used a numeric
      reference.
      
      * textmodes/sgml-mode.el (sgml-mode): ditto in `sgml-mode'.  If
      encoding does not support no-break space, use numeric reference;
      this changes previous default which used named entity (“ ”)
      in HTML mode.
      b8104090
    • Ulf Jasper's avatar
      New option `icalendar-export-alarms'. · 16b5f507
      Ulf Jasper authored
      16b5f507
    • Glenn Morris's avatar
      5813f93c
    • Glenn Morris's avatar
      Improve output of occur-tests in case of failure · 83087df9
      Glenn Morris authored
      * test/automated/occur-tests.el (occur-test-case, occur-test-create):
      In case of failure, show the actual string, rather than just nil.
      83087df9
    • Ulf Jasper's avatar
      62243cb9