1. 27 Dec, 2014 3 commits
    • 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
  2. 26 Dec, 2014 1 commit
    • 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
  3. 25 Dec, 2014 1 commit
  4. 24 Dec, 2014 1 commit
  5. 22 Dec, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      python.el: Fix electric colon behavior · 749813e9
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-indent-post-self-insert-function):
      Make colon to re-indent only for dedenters, handling
      multiline-statements gracefully.
      
      * test/automated/python-tests.el (python-indent-electric-colon-2)
      (python-indent-electric-colon-3): New tests.
      749813e9
  6. 19 Dec, 2014 2 commits
  7. 18 Dec, 2014 1 commit
  8. 16 Dec, 2014 3 commits
  9. 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
  10. 13 Dec, 2014 1 commit
  11. 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
  12. 10 Dec, 2014 1 commit
  13. 06 Dec, 2014 1 commit
  14. 03 Dec, 2014 2 commits
  15. 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
  16. 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
  17. 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
  18. 16 Nov, 2014 2 commits
    • Ulf Jasper's avatar
      icalendar: fix issues regarding timezones without dst · 7261b4d9
      Ulf Jasper authored
      * lisp/calendar/icalendar.el (icalendar--convert-tz-offset): Return
      complete cons when offsets of standard time and daylight saving
      time are equal.
      (icalendar-export-region): Fix unbound variable warning.
      
      * test/automated/icalendar-tests.el (icalendar--parse-vtimezone): Add
      testcase where offsets of standard time and daylight saving time
      are equal.
      (icalendar-real-world): Fix error in test case.  Expected result
      was wrong when offsets of standard time and daylight saving time
      were equal.
      7261b4d9
    • Fabián Ezequiel Gallina's avatar
      * lisp/progmodes/python.el (python-shell-calculate-command): Rename · 6f167f95
      Fabián Ezequiel Gallina authored
      from python-shell-parse-command.  Cleanup.
      (run-python, run-python-internal): Use it.
      (python-shell-calculate-pythonpath): Rename from
      python-new-pythonpath.
      (python-shell-calculate-process-environment): Use it.
      (python-shell-calculate-exec-path): Add comment.
      
      * test/automated/python-tests.el
      (python-shell-calculate-process-environment-2): Fix test.
      (python-shell-calculate-process-environment-1)
      (python-shell-calculate-process-environment-3): Cleanup.
      6f167f95
  19. 15 Nov, 2014 2 commits
    • Fabián Ezequiel Gallina's avatar
      Fixes: debbugs:18432 · 92f58578
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-indent-calculate-levels): Fix
      indentation behavior multiline dedenter statement.
      
      * test/automated/python-tests.el (python-indent-dedenters-8): New test
      for Bug#18432.
      92f58578
    • Fabián Ezequiel Gallina's avatar
      Fix region indentation · 89ebffc1
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:18843
      
      * lisp/progmodes/python.el (python-indent-region): Use
      python-indent-line and skip special cases.
      
      * test/automated/python-tests.el (python-indent-region-1)
      (python-indent-region-2, python-indent-region-3)
      (python-indent-region-4, python-indent-region-5): New tests.
      89ebffc1
  20. 10 Nov, 2014 1 commit
  21. 08 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Backport Tramp changes from trunk. · b03f9b58
      Michael Albinus authored
      * automated/tramp-tests.el (tramp-remote-process-environment):
      Declare.
      (tramp--test-enabled): Ignore errors.
      (tramp--instrument-test-case): Extend docstring.  Print debug
      buffer in any case.
      (tramp-test15-copy-directory): Skip for tramp-smb.el.
      (tramp-test21-file-links): Use `file-truename' for directories.
      (tramp-test26-process-file): Extend test according to Bug#17815.
      (tramp-test27-start-file-process, tramp-test28-shell-command):
      Retrieve process output more robustly.
      (tramp-test29-vc-registered): Set $BZR_HOME.
      (tramp--test-check-files): Extend test with `substitute-in-file-name'.
      (tramp-test30-special-characters): Skip for tramp-adb.el,
      tramp-gvfs.el and tramp-smb.el.  Add further file names.
      b03f9b58
  22. 28 Oct, 2014 1 commit
  23. 25 Oct, 2014 1 commit
  24. 20 Oct, 2014 2 commits
    • Glenn Morris's avatar
      Add 24.4 release ChangeLog entries · 83bad90e
      Glenn Morris authored
      83bad90e
    • Stefan Monnier's avatar
      * lisp/textmodes/css-mode.el (scss-mode): New major-mode. · bc0e9e47
      Stefan Monnier authored
      (css-mode-syntax-table): Use d style comment, to ease the scss case.
      (css-ident-re): Allow things like @-moz-keyframes.
      (scss--hash-re): New const.
      (css--font-lock-keywords): New function, extracted from
      css-font-lock-keywords.
      (css-font-lock-keywords): Use it.
      (scss-mode-syntax-table, scss-font-lock-keywords): New vars.
      (scss-smie--not-interpolation-p): New function.
      (css-smie--forward-token, css-smie--backward-token): Use it.
      (css-mode): Remove left-over code.
      * test/indent/scss-mode.scss: New file.
      * test/indent/css-mode.css: Add a few uneventful examples.
      bc0e9e47
  25. 12 Oct, 2014 1 commit
  26. 08 Oct, 2014 1 commit
    • Leo Liu's avatar
      Enhance terpri to allow conditionally output a newline · 2dbd7a37
      Leo Liu authored
      * doc/lispref/streams.texi (Output Functions): Document new argument ENSURE to
      terpri.
      
      * doc/misc/cl.texi (Porting Common Lisp): Remove parse-integer.
      
      * lisp/emacs-lisp/cl-extra.el (cl-fresh-line): New function.
      
      * src/keymap.c (describe_vector_princ):
      * src/keyboard.c (Fcommand_error_default_function): Adapt to change to
      Fterpri.
      
      * src/print.c (printchar_stdout_last): Declare.
      (printchar): Record the last char written to stdout.
      (Fterpri): Add optional argument ENSURE.
      
      * test/automated/print-tests.el: New file.
      (terpri): Tests for terpri.  (Bug#18652)
      2dbd7a37