1. 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
  2. 10 Nov, 2014 1 commit
  3. 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
  4. 28 Oct, 2014 1 commit
  5. 25 Oct, 2014 1 commit
  6. 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
  7. 12 Oct, 2014 1 commit
  8. 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
  9. 06 Oct, 2014 1 commit
    • Glenn Morris's avatar
      Remove calendar code obsolete since at least version 23.1 · 3f659704
      Glenn Morris authored
      * lisp/calendar/cal-bahai.el (calendar-absolute-from-bahai)
      (calendar-print-bahai-date, calendar-bahai-prompt-for-date)
      (calendar-goto-bahai-date, list-bahai-diary-entries)
      (mark-bahai-calendar-date-pattern, mark-bahai-diary-entries)
      (insert-bahai-diary-entry, insert-monthly-bahai-diary-entry)
      (insert-yearly-bahai-diary-entry):
      * lisp/calendar/cal-china.el (chinese-calendar-time-zone)
      (chinese-calendar-location-name)
      (chinese-calendar-daylight-time-offset)
      (chinese-calendar-standard-time-zone-name)
      (chinese-calendar-daylight-time-zone-name)
      (chinese-calendar-daylight-savings-starts)
      (chinese-calendar-daylight-savings-ends)
      (chinese-calendar-daylight-savings-starts-time)
      (chinese-calendar-daylight-savings-ends-time)
      (chinese-calendar-celestial-stem)
      (chinese-calendar-terrestrial-branch)
      (calendar-absolute-from-chinese, calendar-print-chinese-date)
      (calendar-goto-chinese-date):
      * lisp/calendar/cal-coptic.el (calendar-absolute-from-coptic)
      (calendar-print-coptic-date, coptic-prompt-for-date)
      (calendar-goto-coptic-date, calendar-absolute-from-ethiopic)
      (calendar-print-ethiopic-date, calendar-goto-ethiopic-date):
      * lisp/calendar/cal-french.el (calendar-absolute-from-french)
      (calendar-print-french-date, calendar-goto-french-date):
      * lisp/calendar/cal-hebrew.el (diary-sabbath-candles-minutes)
      (calendar-absolute-from-hebrew, calendar-print-hebrew-date)
      (hebrew-calendar-yahrzeit, calendar-goto-hebrew-date)
      (holiday-rosh-hashanah-etc, holiday-hanukkah)
      (holiday-passover-etc, holiday-tisha-b-av-etc)
      (list-hebrew-diary-entries, mark-hebrew-calendar-date-pattern)
      (mark-hebrew-diary-entries, insert-hebrew-diary-entry)
      (insert-monthly-hebrew-diary-entry)
      (insert-yearly-hebrew-diary-entry, list-yahrzeit-dates)
      (diary-omer, diary-yahrzeit, diary-rosh-hodesh, diary-parasha)
      (diary-sabbath-candles):
      * lisp/calendar/cal-islam.el (calendar-absolute-from-islamic)
      (calendar-print-islamic-date, calendar-goto-islamic-date)
      (list-islamic-diary-entries, mark-islamic-calendar-date-pattern)
      (mark-islamic-diary-entries, insert-islamic-diary-entry)
      (insert-monthly-islamic-diary-entry)
      (insert-yearly-islamic-diary-entry):
      * lisp/calendar/cal-iso.el (calendar-absolute-from-iso)
      (calendar-print-iso-date, calendar-iso-read-args)
      (calendar-goto-iso-date, calendar-goto-iso-week):
      * lisp/calendar/cal-julian.el (calendar-absolute-from-julian)
      (calendar-print-julian-date, calendar-goto-julian-date)
      (calendar-absolute-from-astro, calendar-print-astro-day-number)
      (calendar-goto-astro-day-number):
      * lisp/calendar/cal-mayan.el (calendar-print-mayan-date)
      (calendar-next-haab-date, calendar-previous-haab-date)
      (calendar-next-tzolkin-date, calendar-previous-tzolkin-date)
      (calendar-next-calendar-round-date)
      (calendar-previous-calendar-round-date)
      (calendar-absolute-from-mayan-long-count)
      (calendar-goto-mayan-long-count-date):
      * lisp/calendar/cal-move.el (scroll-calendar-left)
      (scroll-calendar-right, scroll-calendar-left-three-months)
      (scroll-calendar-right-three-months):
      * lisp/calendar/cal-persia.el (calendar-absolute-from-persian)
      (calendar-print-persian-date, persian-prompt-for-date)
      (calendar-goto-persian-date):
      * lisp/calendar/cal-x.el (calendar-after-frame-setup-hooks):
      * lisp/calendar/calendar.el (view-diary-entries-initially)
      (mark-diary-entries-in-calendar, calendar-today-face)
      (diary-face, holiday-face, view-calendar-holidays-initially)
      (mark-holidays-in-calendar, initial-calendar-window-hook)
      (today-visible-calendar-hook, today-invisible-calendar-hook)
      (hebrew-diary-entry-symbol, islamic-diary-entry-symbol)
      (bahai-diary-entry-symbol, american-date-diary-pattern)
      (european-date-diary-pattern, european-calendar-display-form)
      (american-calendar-display-form, holidays-in-diary-buffer)
      (all-hebrew-calendar-holidays, all-christian-calendar-holidays)
      (all-islamic-calendar-holidays, all-bahai-calendar-holidays)
      (fancy-diary-buffer, increment-calendar-month)
      (extract-calendar-month, extract-calendar-day)
      (extract-calendar-year, exit-calendar, calendar-date-is-legal-p)
      (mark-visible-calendar-date, calendar-version):
      * lisp/calendar/diary-lib.el (diary-button-face, sexp-diary-entry-symbol)
      (diary-display-hook, list-diary-entries-hook)
      (mark-diary-entries-hook, nongregorian-diary-listing-hook)
      (nongregorian-diary-marking-hook, print-diary-entries-hook)
      (abbreviated-calendar-year, number-of-diary-entries)
      (view-other-diary-entries, add-to-diary-list)
      (include-other-diary-files, simple-diary-display)
      (fancy-diary-display, print-diary-entries, mark-diary-entries)
      (mark-sexp-diary-entries, mark-included-diary-files)
      (mark-calendar-days-named, mark-calendar-month)
      (mark-calendar-date-pattern, sort-diary-entries)
      (list-sexp-diary-entries, make-diary-entry, insert-diary-entry)
      (insert-weekly-diary-entry, insert-monthly-diary-entry)
      (insert-yearly-diary-entry, insert-anniversary-diary-entry)
      (insert-block-diary-entry, insert-cyclic-diary-entry)
      (fancy-diary-font-lock-keywords, fancy-diary-display-mode):
      * lisp/calendar/holidays.el (general-holidays, oriental-holidays)
      (local-holidays, other-holidays, hebrew-holidays)
      (christian-holidays, islamic-holidays, bahai-holidays)
      (solar-holidays, list-calendar-holidays)
      (check-calendar-holidays, mark-calendar-holidays)
      (filter-visible-calendar-holidays):
      * lisp/calendar/lunar.el (calendar-phases-of-moon, phases-of-moon)
      (diary-phases-of-moon): Remove obsolete aliases.
      
      * lisp/calendar/cal-menu.el (cal-menu-load-hook): Remove obsolete hook.
      * calendar/cal-x.el (calendar-one-frame-setup)
      (calendar-only-one-frame-setup, calendar-two-frame-setup):
      Remove obsolete functions.
      (cal-x-load-hook): Remove obsolete hook.
      
      * calendar/calendar.el (european-calendar-style): Remove obsolete variable.
      (calendar-date-style): No longer consult european-calendar-style.
      
      * calendar/calendar.el (european-calendar, american-calendar):
      Remove obsolete commands.
      
      * calendar/calendar.el (calendar-for-loop): Remove obsolete macro.
      
      * calendar/diary-lib.el (diary-face): Remove obsolete variable.
      (diary-font-lock-date-forms, diary-fancy-font-lock-keywords):
      Use the face `diary' instead of the variable `diary-face'.
      
      * calendar/holidays.el (hebrew-holidays-1, hebrew-holidays-2)
      (hebrew-holidays-3, hebrew-holidays-4): Remove obsolete variables.
      
      * lisp/calendar/icalendar.el (icalendar--date-style): Remove function.
      Replace all uses with calendar-date-style.
      
      * lisp/textmodes/remember.el (calendar-date-style): Declare.
      (remember-diary-convert-entry):
      No longer consult european-calendar-style.
      
      * test/automated/icalendar-tests.el (icalendar--calendar-style):
      Remove test, no longer relevant.
      3f659704
  10. 04 Oct, 2014 1 commit
  11. 01 Oct, 2014 1 commit
    • Glenn Morris's avatar
      package-test tweaks for hydra · e694e2a9
      Glenn Morris authored
      * test/automated/package-test.el (with-package-test, package-test-signed):
      Also set HOME to a temp value, in case the real one is absent (e.g.
      hydra) or read-only. 
      (package-test-signed): Use skip-unless rather than expected-result.
      
      Fixes: debbugs:18575
      e694e2a9
  12. 26 Sep, 2014 1 commit
    • Leo Liu's avatar
      Add cl-parse-integer based on parse-integer · 89b354a5
      Leo Liu authored
      * doc/misc/cl.texi (Predicates on Numbers): Document cl-digit-char-p.
      (Numerical Functions): Document cl-parse-integer. 
      
      * lisp/calendar/parse-time.el (parse-time-digits): Remove.
      (digit-char-p, parse-integer) Moved to cl-lib.el.
      (parse-time-tokenize, parse-time-rules, parse-time-string): Use
      cl-parse-integer.
      
      * lisp/emacs-lisp/cl-extra.el (cl-parse-integer): New function.
      
      * lisp/emacs-lisp/cl-lib.el (cl-digit-char-table): New var.
      (cl-digit-char-p): New function.
      
      * test/automated/cl-lib.el (cl-digit-char-p, cl-parse-integer): New
      tests.
      
      Fixes: debbugs:18557
      89b354a5
  13. 24 Sep, 2014 1 commit
    • Ulf Jasper's avatar
      Newsticker: Add commands to rearrange treeview groups and document them. (Bug#12560) · 558eb84f
      Ulf Jasper authored
      2014-09-24  Ulf Jasper  <ulf.jasper@web.de>
      
      	* newsticker.texi: Reworked.  Document new treeview group
      	commands.  Remove VERSION, UPDATED, use EMACSVER instead.  Use
      	term 'feed reader'.
      
      2014-09-24  Ulf Jasper  <ulf.jasper@web.de>
      
      	* automated/newsticker-tests.el
      	(newsticker--group-find-parent-group),
      	(newsticker--group-do-rename-group): New tests.
      
      2014-09-24  Ulf Jasper  <ulf.jasper@web.de>
      
      	* net/newst-treeview.el (newsticker--treeview-do-get-node-by-id):
      	Renamed `newsticker--treeview-do-get-node' to
      	`newsticker--treeview-do-get-node-by-id'.
      	(newsticker--treeview-get-node-by-id): Renamed
      	`newsticker--treeview-get-node' to
      	`newsticker--treeview-get-node-by-id'.
      	(newsticker--treeview-get-current-node): Renamed `
      	`newsticker--treeview-get-node' to
      	`newsticker--treeview-get-node-by-id'.
      	(newsticker--treeview-buffer-init)
      	(newsticker--treeview-buffer-init): Disable buffer undo.
      	(newsticker--treeview-unfold-node): Adapted to modified
      	`newsticker--group-find-parent-group'.
      	(newsticker--group-do-find-group): Renamed
      	`newsticker--group-do-find-group-for-feed' to
      	`newsticker--group-do-find-group'.  Now works for both, groups and
      	feeds.
      	(newsticker--group-find-parent-group): Renamed
      	`newsticker--group-find-group-for-feed' to
      	`newsticker--group-find-parent-group'.  Now works for both, groups
      	and feeds.
      	(newsticker--group-do-get-parent-group)
      	(newsticker--group-get-parent-group): Removed.
      	(newsticker-group-add-group): Changed interactive prompts.
      	(newsticker-group-add-group): Finally jump to added group.
      	(newsticker-group-delete-group): Finally jump to current feed.
      	(newsticker--group-do-rename-group, newsticker-group-rename-group)
      	(newsticker--get-group-names, newsticker--group-names): New.
      	(newsticker-group-move-feed): Finally jump to moved feed.
      	(newsticker-group-shift-feed-down, newsticker-group-shift-feed-up)
      	(newsticker-group-shift-group-down)
      	(newsticker-group-shift-group-up, newsticker--group-shift): New
      	(newsticker--group-manage-orphan-feeds): Renamed
      	`newsticker--group-find-group-for-feed' to
      	`newsticker--group-find-parent-group'.
      	(newsticker-treeview-mode-map): New keybindings for new shift commands.
      	(newsticker-treeview-tree-do-click): Renamed
      	`newsticker--treeview-get-node' to
      	`newsticker--treeview-get-node-by-id'.
      
      	* net/newst-backend.el (newsticker--item-list)
      	(newsticker--item-position, newsticker--prev-message)
      	(newsticker--scrollable-text): Moved to newst-ticker.el.
      
      	* net/newst-ticker.el (newsticker--item-list)
      	(newsticker--item-position, newsticker--prev-message)
      	(newsticker--scrollable-text): Moved from newst-backend.el.
      558eb84f
  14. 09 Sep, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix the string-collation tests on MS-Windows. · 607dab46
      Eli Zaretskii authored
       tests/automated/fns-tests.el (fns-tests-collate-sort): Bind
       w32-collate-ignore-punctuation to t when sorting according to
       UTS#10 rules.  Reported by Fabrice Popineau <fabrice.popineau@gmail.com>.
      607dab46
  15. 07 Sep, 2014 1 commit
  16. 05 Sep, 2014 1 commit
    • Michael Albinus's avatar
      New string collation tests. · 40ae83c7
      Michael Albinus authored
      * automated/fns-tests.el (fns-tests-compare-strings): In case
      `compare-strings' shall return t, check for this.
      (fns-tests-collate-strings, fns-tests-collate-sort): New tests.
      40ae83c7
  17. 01 Sep, 2014 1 commit
  18. 29 Aug, 2014 1 commit
    • Dmitry Antipov's avatar
      Add vectors support to Fsort. · 1764ec44
      Dmitry Antipov authored
      * configure.ac (AC_CHECK_FUNCS): Check for qsort_r.
      * src/fns.c (sort_vector, sort_vector_compare): New functions.
      (sort_list): Likewise, refactored out of ...
      (Fsort): ... adjusted user.  Mention vectors in docstring.
      (sort_vector_predicate) [!HAVE_QSORT_R]: New variable.
      * src/alloc.c (make_save_int_obj): New function.
      * src/lisp.h (enum Lisp_Save_Type): New member SAVE_TYPE_INT_OBJ.
      (make_save_int_obj): Add prototype.
      * test/automated/fns-tests.el (fns-tests-sort): New test.
      1764ec44
  19. 18 Aug, 2014 1 commit
  20. 13 Aug, 2014 1 commit
    • Jan Nieuwenhuizen's avatar
      Support Guile backtraces in compilation mode. · 8f944212
      Jan Nieuwenhuizen authored
      	* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
      	Add Guile regexpses.
      
      	* etc/compilation.txt (file): Add Guile backtrace example.
      
      	* test/automated/compile-tests.el (compile--test-error-line):
      	Grok FILE being nil.  Allows for Guile tests to pass.
      	(compile-tests--test-regexps-data): Add Guile tests.
      8f944212
  21. 11 Aug, 2014 2 commits
    • Glenn Morris's avatar
      ChangeLog fixes · 6b7d0775
      Glenn Morris authored
      6b7d0775
    • Glenn Morris's avatar
      Revert 2013-01-31 change that decides coding system before backing up · f314e84f
      Glenn Morris authored
      It causes a more serious problem than the one it solves.
      This closes bug#18141, and reopens bug#13522.
      
      * lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.
      
      * src/fileio.c: Revert 2013-01-31 change.
      (choose_write_coding_system): No longer callable from Lisp.
      Move last piece back here from Fwrite_region.
      (Fwrite_region, syms_of_fileio): Update for above changes.
      
      * test/automated/data/files-bug18141.el.gz: New file.
      * test/automated/files.el (files-test-bug-18141-file):
      New variable and test.
      f314e84f
  22. 10 Aug, 2014 1 commit
    • Ulf Jasper's avatar
      iCalendar export: Enumerate evaluated sexp diary entries (Bug#7911). · d4ed7004
      Ulf Jasper authored
      2014-08-10  Ulf Jasper  <ulf.jasper@web.de>
      
      	Enumerate evaluated sexp diary entries (Bug#7911).
      
      	* calendar/icalendar.el (icalendar-export-sexp-enumerate-all)
      	(icalendar-export-sexp-enumeration-days): New
      	(icalendar-export-region): `icalendar--convert-to-ical' now
      	returns a cons cell or a list of cons cells.
      	(icalendar--convert-to-ical): Take care of
      	`icalendar-export-sexp-enumerate-all'. Return (a list of) cons
      	cells.
      	(icalendar--convert-ordinary-to-ical),
      	(icalendar--convert-weekly-to-ical),
      	(icalendar--convert-yearly-to-ical),
      	(icalendar--convert-block-to-ical),
      	(icalendar--convert-block-to-ical),
      	(icalendar--convert-float-to-ical),
      	(icalendar--convert-cyclic-to-ical),
      	(icalendar--convert-anniversary-to-ical): Return cons cell.
      	(icalendar--convert-sexp-to-ical): Enumerate evaluated sexp
      	entries. Return (list of) cons cells.
      
      2014-08-10  Ulf Jasper  <ulf.jasper@web.de>
      
      	Enumerate evaluated sexp diary entries (Bug#7911).
      
      	* automated/icalendar-tests.el
      	(icalendar--convert-anniversary-to-ical),
      	(icalendar--convert-cyclic-to-ical),
      	(icalendar--convert-block-to-ical),
      	(icalendar--convert-yearly-to-ical),
      	(icalendar--convert-weekly-to-ical),
      	(icalendar--convert-ordinary-to-ical): Returns cons cell now.
      	(icalendar--convert-to-ical),
      	(icalendar--convert-sexp-to-ical): New tests.
      d4ed7004
  23. 07 Aug, 2014 2 commits
  24. 06 Aug, 2014 1 commit
    • Ulf Jasper's avatar
      Fix Bug#15408 (icalendar time zone problem) · 075e911c
      Ulf Jasper authored
      2014-07-30 Christophe Deleuze <christophe.deleuze@free.fr>
      
      	* calendar/icalendar.el (icalendar--decode-isodatetime): Use
      	actual current-time-zone when converting to local time. (Bug#15408)
      
      2014-07-30  Ulf Jasper  <ulf.jasper@web.de>
      
      	* automated/icalendar-tests.el (icalendar--decode-isodatetime): New test.
      075e911c
  25. 03 Aug, 2014 2 commits
  26. 02 Aug, 2014 2 commits
  27. 30 Jul, 2014 1 commit
    • Ulf Jasper's avatar
      Fix Bug#15408 (icalendar time zone problem) · c99a3b87
      Ulf Jasper authored
      2014-07-30 Christophe Deleuze <christophe.deleuze@free.fr>
      
      	* calendar/icalendar.el (icalendar--decode-isodatetime): Use
      	actual current-time-zone when converting to local time. (Bug#15408)
      
      2014-07-30  Ulf Jasper  <ulf.jasper@web.de>
      
      	* automated/icalendar-tests.el (icalendar--decode-isodatetime): New test.
      c99a3b87
  28. 28 Jul, 2014 1 commit
    • Dmitry Antipov's avatar
      On GNU/Linux, use timerfd for asynchronous timers. · 768b24eb
      Dmitry Antipov authored
      * configure.ac (toplevel): Check whether GNU/Linux-specific
      timerfd functions and macros are available.
      * m4/clock_time.m4 (gl_CLOCK_TIME): Check for clock_getres as well.
      * src/atimer.c (toplevel) [HAVE_TIMERFD]: Include sys/timerfd.h.
      (toplevel): Rename alarm_timer_ok to special_timer_available.
      [HAVE_TIMERFD]: Declare timerfd.
      [HAVE_CLOCK_GETRES]: Declare resolution.
      (start_atimer) [HAVE_CLOCK_GETRES]: Round up timestamp to
      system timer resolution.
      (set_alarm) [HAVE_TIMERFD]: Use timerfd_settime.
      (timerfd_callback) [HAVE_TIMERFD]: New function.
      (atimer_result, debug_timer_callback, Fdebug_timer_check)
      [ENABLE_CHECKING]: New function for the sake of automated tests.
      (init_atimer) [HAVE_TIMERFD]: Setup timerfd.
      [HAVE_CLOCK_GETRES]: Likewise for system timer resolution.
      [ENABLE_CHECKING]: Defsubr test function.
      * src/atimer.h (timerfd_callback) [HAVE_TIMERFD]: Add prototype.
      * src/lisp.h (add_timer_wait_descriptor) [HAVE_TIMERFD]: Likewise.
      * src/process.c (add_timer_wait_descriptor) [HAVE_TIMERFD]: New function.
      * test/automated/timer-tests.el (timer-tests-debug-timer-check): New test.
      768b24eb
  29. 26 Jul, 2014 1 commit
  30. 21 Jul, 2014 1 commit
  31. 20 Jul, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      Make python.el work with IPython automatically. · b06a0dff
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el:
      (python-shell-completion-setup-code): New value supporting iPython.
      (python-shell-completion-string-code): New value supporting iPython.
      (python-shell-completion-get-completions): Use them.
      (python-shell-completion-module-string-code): Make obsolete.
      (python-shell-prompt-input-regexps)
      (python-shell-prompt-output-regexps): Add safeguard for ipdb.
      (python-shell-output-filter): Fix comment typo.
      
      * test/automated/python-tests.el:
      (python-util-clone-local-variables-1): Fix test.
      
      Fixes: debbugs:15510
      b06a0dff
  32. 19 Jul, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      Autodetect Python shell prompts. · d949ade3
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el:
      (python-shell-interpreter-interactive-arg)
      (python-shell-prompt-detect-enabled)
      (python-shell-prompt-detect-failure-warning)
      (python-shell-prompt-input-regexps)
      (python-shell-prompt-output-regexps): New vars.
      (python-shell-prompt-calculated-input-regexp)
      (python-shell-prompt-calculated-output-regexp): New vars.
      (python-shell-get-process-name)
      (python-shell-internal-get-process-name)
      (python-shell-output-filter)
      (python-shell-completion-get-completions): Use them.
      (python-shell-prompt-detect)
      (python-shell-prompt-validate-regexps): New functions.
      (python-shell-prompt-set-calculated-regexps): New function.
      (inferior-python-mode): Use it.  Also honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-make-comint): Honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-get-or-create-process): Make it testable by allowing
      to call run-python non-interactively.
      (python-util-valid-regexp-p): New function.
      (python-shell-prompt-regexp, python-shell-prompt-block-regexp)
      (python-shell-prompt-output-regexp)
      (python-shell-prompt-pdb-regexp): Use it as defcustom :safe.
      
      * test/automated/python-tests.el (python-shell-make-comint-1):
      (python-shell-make-comint-2): Fix indentation.
      (python-shell-make-comint-3)
      (python-shell-make-comint-4): New tests.
      (python-shell-get-or-create-process-1): Fix test.
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): New tests.
      (python-shell-internal-get-or-create-process-1): Fix test.
      (python-shell-prompt-detect-1): New test.
      (python-shell-prompt-detect-2): New test.  (Bug#17370)
      (python-shell-prompt-detect-3)
      (python-shell-prompt-detect-4)
      (python-shell-prompt-detect-5)
      (python-shell-prompt-detect-6)
      (python-shell-prompt-validate-regexps-1)
      (python-shell-prompt-validate-regexps-2)
      (python-shell-prompt-validate-regexps-3)
      (python-shell-prompt-validate-regexps-4)
      (python-shell-prompt-validate-regexps-5)
      (python-shell-prompt-validate-regexps-6)
      (python-shell-prompt-validate-regexps-7)
      (python-shell-prompt-set-calculated-regexps-1)
      (python-shell-prompt-set-calculated-regexps-2)
      (python-shell-prompt-set-calculated-regexps-3)
      (python-shell-prompt-set-calculated-regexps-4)
      (python-shell-prompt-set-calculated-regexps-5)
      (python-shell-prompt-set-calculated-regexps-6)
      (python-util-valid-regexp-p-1): New tests.
      d949ade3
  33. 09 Jul, 2014 1 commit
    • Fabián Ezequiel Gallina's avatar
      Fix dedenters and electric colon handling. · fded0b4a
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el
      (python-rx-constituents): Add dedenter and block-ender.
      (python-indent-dedenters, python-indent-block-enders): Delete.
      (python-indent-context): Return new case for dedenter-statement.
      (python-indent-calculate-indentation): Handle new case.
      (python-indent-calculate-levels): Fix levels calculation for
      dedenter statements.
      (python-indent-post-self-insert-function): Fix colon handling.
      (python-info-dedenter-opening-block-message): New function.
      (python-indent-line): Use it.
      (python-info-closing-block)
      (python-info-closing-block-message): Remove.
      (python-info-dedenter-opening-block-position)
      (python-info-dedenter-opening-block-positions)
      (python-info-dedenter-statement-p): New functions.
      
      * test/automated/python-tests.el
      (python-indent-block-enders-1)
      (python-indent-block-enders-2): Fix tests.
      (python-indent-block-enders-3)
      (python-indent-block-enders-4)
      (python-indent-block-enders-5)
      (python-indent-dedenters-1)
      (python-indent-dedenters-2): Remove tests.
      (python-indent-dedenters-1)
      (python-indent-dedenters-2)
      (python-indent-dedenters-3)
      (python-indent-dedenters-4)
      (python-indent-dedenters-5)
      (python-indent-dedenters-6)
      (python-indent-dedenters-7)
      (python-info-dedenter-opening-block-position-1)
      (python-info-dedenter-opening-block-position-2)
      (python-info-dedenter-opening-block-position-3)
      (python-info-dedenter-opening-block-positions-1)
      (python-info-dedenter-opening-block-positions-2)
      (python-info-dedenter-opening-block-positions-3)
      (python-info-dedenter-opening-block-positions-4)
      (python-info-dedenter-opening-block-positions-5)
      (python-info-dedenter-opening-block-message-1)
      (python-info-dedenter-opening-block-message-2)
      (python-info-dedenter-opening-block-message-3)
      (python-info-dedenter-opening-block-message-4)
      (python-info-dedenter-opening-block-message-5)
      (python-info-dedenter-statement-p-1)
      (python-info-dedenter-statement-p-2)
      (python-info-dedenter-statement-p-3)
      (python-info-dedenter-statement-p-4)
      (python-info-dedenter-statement-p-5): New tests.
      
      Fixes: debbugs:15163
      fded0b4a
  34. 08 Jul, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/perl-mode.el: Use syntax-ppss; fix one indentation case. · 5e799349
      Stefan Monnier authored
      (perl-indent-line): Use syntax-ppss to detect we're in a doc-section.
      (perl-continuation-line-p): Don't skip over anything else than labels.
      Return the previous char.
      (perl-calculate-indent): Use syntax-ppss instead of parse-start
      and update callers accordingly.  For continuation lines, check the
      the case of array hashes.
      (perl-backward-to-noncomment): Make it non-interactive.
      (perl-backward-to-start-of-continued-exp): Rewrite.
      * test/indent/perl.perl: Add indentation pattern for hash-table entries.
      5e799349