1. 10 Mar, 2015 4 commits
    • Paul Eggert's avatar
      Prefer "initialize" to "initialise" · 2a1be9eb
      Paul Eggert authored
      * lisp/progmodes/js.el (js-indent-first-init):
      Rename from js-indent-first-initialiser, to avoid worrying about
      American vs British spelling.  All uses changed.
      * test/indent/js-indent-init-t.js: Rename from
      indent/js-indent-first-initialiser-t.js.
      * test/indent/js-indent-init-dynamic.js: Rename from
      test/indent/js-indent-first-initialiser-dynamic.js.
      2a1be9eb
    • Glenn Morris's avatar
      * lisp/progmodes/js.el (js-indent-first-initialiser): Fix doc, type, version. · 6c9681af
      Glenn Morris authored
      First line of the doc string should be a complete sentence.
      
      * etc/NEWS: Mention new option.
      
      # Fix associated ChangeLog entries.
      6c9681af
    • Przemyslaw Wojnowski's avatar
      * test/automated/cl-lib-tests.el: Add tests for plusp, second, ... · 778de727
      Przemyslaw Wojnowski authored
      (cl-lib-test-plusp, cl-lib-test-minusp)
      (cl-lib-test-oddp, cl-lib-test-evenp, cl-lib-test-first)
      (cl-lib-test-second, cl-lib-test-third, cl-lib-test-fourth)
      (cl-lib-test-fifth, cl-lib-test-sixth, cl-lib-test-seventh)
      (cl-lib-test-eighth, cl-lib-test-ninth, cl-lib-test-tenth)
      (cl-lib-test-endp, cl-lib-test-nth-value)
      (cl-lib-nth-value-test-multiple-values, cl-test-caaar, cl-test-caadr)
      (cl-test-ldiff): New tests.
      (cl-digit-char-p): Tighten the test.
      778de727
    • Dmitry Gutov's avatar
      Automate 'make all' in test/indent · b20113f0
      Dmitry Gutov authored
      b20113f0
  2. 09 Mar, 2015 1 commit
    • NicolasPetton's avatar
      Add seq-into as a public function · b7ed48c3
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el: Make seq-into a public function (replacing
      seq--into)
      * test/automated/seq-tests.el: Add tests for seq-into
      * doc/lispref/sequences.texi: Add documentation for seq-into
      b7ed48c3
  3. 08 Mar, 2015 2 commits
  4. 04 Mar, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp upstream · 44a7c1f9
      Michael Albinus authored
      * automated/tramp-tests.el (top): Declare `tramp-get-remote-stat'
      and `tramp-get-remote-perl'.
      (tramp-test06-directory-file-name): Fix docstring and last test.
      (tramp-test08-file-local-copy): Extend test.
      (tramp-test13-make-directory): Test also PARENTS arg.
      (tramp-test17-insert-directory): Do not expect any order in
      directory listing.
      (tramp--test-adb-p): New defun.
      (tramp--test-check-files): Fix doxstring.  Extend tests.
      (tramp--test-special-characters): New defun.  Use body from
      `tramp-test30-special-characters'.  Adapt check for tramp-adb.el.
      (tramp-test30-special-characters): Use it.
      (tramp--test-utf8): New defun.  Use body from
      `tramp-test31-utf8'.  Add test string.
      (tramp-test31-utf8): Use it.
      (tramp-test30-special-characters-with-stat)
      (tramp-test30-special-characters-with-perl)
      (tramp-test30-special-characters-with-ls):
      (tramp-test31-utf8-with-stat, tramp-test31-utf8-with-perl)
      (tramp-test31-utf8-with-ls): New tests.
      44a7c1f9
  5. 03 Mar, 2015 6 commits
    • Daniel Colascione's avatar
      Use `macroexp-parse-body' · 8b38d30e
      Daniel Colascione authored
      * lisp/emacs-lisp/generator.el: (iter-defun): Use `macroexp-parse-body'.
      
      * test/automated/generator-tests.el (cps-testcase): Use
      (cps-test-declarations-preserved): New test.
      8b38d30e
    • Daniel Colascione's avatar
      Address generator feedback · cecf4afe
      Daniel Colascione authored
      * doc/lispref/control.texi (Generators): Correct missing word.  Clarify which
      forms are legal in which parts of `unwind-protect'.  Fix orphaned
      close parenthesis.
      
      * lisp/emacs-lisp/generator.el: Make globals conform to elisp
      style throughout.  Use more efficient font-lock patterns.
      (cps-inhibit-atomic-optimization): Rename from
      `cps-disable-atomic-optimization'.
      (cps--gensym): New macro; replaces `cl-gensym' throughout.
      (cps-generate-evaluator): Move the `iter-yield' local macro
      definition here
      (iter-defun, iter-lambda): from here.
      
      * test/automated/generator-tests.el (cps-test-iter-close-finalizer):
      Rename `gc-precise-p' to `gc-precise'.
      
      * test/automated/generator-tests.el (cps-testcase): Use
      `cps-inhibit-atomic-optimization' instead of
      `cps-disable-atomic-optimization'.
      cecf4afe
    • Glenn Morris's avatar
      generator-tests.el: make cps-test-iter-cleanup-once-only work · 88f8a9d7
      Glenn Morris authored
      * test/automated/generator-tests.el (cps-test-iter-cleanup-once-only):
      Replace undefined incf with cl-incf.
      88f8a9d7
    • Daniel Colascione's avatar
      Rename gc-precise-p to gc-precise · 15ddf7a6
      Daniel Colascione authored
      2015-03-03  Daniel Colascione  <dancol@dancol.org>
      
      	* alloc.c (syms_of_alloc): Rename `gc-precise-p' to `gc-precise'.
      
      2015-03-03  Daniel Colascione  <dancol@dancol.org>
      
      	* automated/finalizer-tests.el (finalizer-basic)
      	(finalizer-circular-reference, finalizer-cross-reference)
      	(finalizer-error): Rename `gc-precise-p' to `gc-precise'.
      
      	* automated/generator-tests.el (cps-test-iter-close-finalizer):
      	Rename `gc-precise-p' to `gc-precise'.
      15ddf7a6
    • Glenn Morris's avatar
      Fix some errors in recently added tests · 27c02b02
      Glenn Morris authored
      * test/automated/generator-tests.el (cps-while-incf):
      Replace undefined incf with cl-incf.
      (cps-test-iter-do): Use should not undefined assert.
      27c02b02
    • Daniel Colascione's avatar
      Finalizer documentation, minor improvements · 2cc23f17
      Daniel Colascione authored
      * doc/lispref/objects.texi (Finalizer Type): New section
      (Type Predicates): Mention finalizers in `type-of' documentation.
      * doc/lispref/elisp.texi (Top): Link to finalizer type.
      
      * src/data.c (Ftype_of): Make `type-of' work with finalizers.
      (syms_of_data): Register Qfinalizer.
      
      * src/print.c (print_object): Print whether a finalizer has
      been called.
      
      * test/automated/finalizer-tests.el (finalizer-object-type): Test that
      `type-of' works correctly for finalizers.
      2cc23f17
  6. 02 Mar, 2015 2 commits
    • Daniel Colascione's avatar
      Add support for generators · f6b5db6c
      Daniel Colascione authored
      diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
      index 78f7e34..e7d79d5 100644
      --- a/doc/lispref/ChangeLog
      +++ b/doc/lispref/ChangeLog
      @@ -1,3 +1,8 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* control.texi (Generators): New section
      +	* elisp.text: Reference new section.
      +
       2015-02-28  Eli Zaretskii  <eliz@gnu.org>
      
       	* searching.texi (Char Classes): Update the documentation of
      diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
      index 448c7f2..4e9c119 100644
      --- a/doc/misc/ChangeLog
      +++ b/doc/misc/ChangeLog
      @@ -1,3 +1,7 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* cl.texi (Iteration Clauses): Mention iterator support.
      +
       2015-02-25  Tassilo Horn  <tsdh@gnu.org>
      
       	* reftex.texi (Multifile Documents): Document
      diff --git a/lisp/ChangeLog b/lisp/ChangeLog
      index 7ce2e81..4ab4406 100644
      --- a/lisp/ChangeLog
      +++ b/lisp/ChangeLog
      @@ -1,6 +1,8 @@
       2015-03-02  Daniel Colascione  <dancol@dancol.org>
      
      -	* vc/vc.el (vc-responsible-backend): Add autoload cooking for
      +	* emacs-lisp/generator.el: New file.
      +
      +	* vc/vc.el (vc-responsible-backend): Add autoload cookie for
       	`vc-responsible-backend'.
      
       2015-03-01  Michael Albinus  <michael.albinus@gmx.de>
      diff --git a/test/ChangeLog b/test/ChangeLog
      index 684e98f..64ad851 100644
      --- a/test/ChangeLog
      +++ b/test/ChangeLog
      @@ -1,5 +1,7 @@
       2015-03-02  Daniel Colascione  <dancol@dancol.org>
      
      +	* automated/generator-tests.el: New tests
      +
       	* automated/finalizer-tests.el (finalizer-basic)
       	(finalizer-circular-reference, finalizer-cross-reference)
       	(finalizer-error): New tests.
      f6b5db6c
    • Daniel Colascione's avatar
      Add support for finalizers · 9d8d0658
      Daniel Colascione authored
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* NEWS: Mention finalizers.
      +
       2015-02-09  Gareth Rees  <gdr@garethrees.org>  (tiny change)
      
       	* NEWS.24: Fix typo (bug#19820)
      diff --git a/src/ChangeLog b/src/ChangeLog
      index 4aa64c1..2f04d0b 100644
      --- a/src/ChangeLog
      +++ b/src/ChangeLog
      @@ -1,3 +1,21 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* print.c (print_object): Print finalizers.
      +
      +	* alloc.c:
      +	(finalizers, doomed_finalizers): New variables.
      +	(init_finalizer_list, finalizer_insert, unchain_finalizer)
      +	(mark_finalizer_list, queue_doomed_finalizers)
      +	(run_finalizer_handler, run_finalizer_function, run_finalizers):
      +	New functions.
      +	(garbage_collect_1, mark_object, sweep_misc)
      +	(init_alloc_once, syms_of_alloc): Support finalizers.
      +	(gc-precise-p): New Lisp variable.
      +
      +	* lisp.h (Lisp_Misc_Type): New value Lisp_Misc_Finalizer.
      +	(FINALIZERP, XFINALIZER): New functions.
      +	(Lisp_Finalizer): New structure.
      +
       2015-02-28  Paul Eggert  <eggert@cs.ucla.edu>
      
       	* character.c (alphabeticp, decimalnump): Avoid undefined behavior
      diff --git a/test/ChangeLog b/test/ChangeLog
      index cf1b2c1..684e98f 100644
      --- a/test/ChangeLog
      +++ b/test/ChangeLog
      @@ -1,3 +1,9 @@
      +2015-03-02  Daniel Colascione  <dancol@dancol.org>
      +
      +	* automated/finalizer-tests.el (finalizer-basic)
      +	(finalizer-circular-reference, finalizer-cross-reference)
      +	(finalizer-error): New tests.
      +
       2015-03-01  Michael Albinus  <michael.albinus@gmx.de>
      
       	* automated/vc-tests.el (vc-test--create-repo): Add check for
      9d8d0658
  7. 01 Mar, 2015 1 commit
    • Michael Albinus's avatar
      Extend vc-tests.el · 992f8fad
      Michael Albinus authored
      * automated/vc-tests.el (vc-test--create-repo): Add check for
      `vc-responsible-backend'.
      (vc-test--register): Do not print a message when unsupported.
      (vc-test--state, vc-test--working-revision): Rework.  Raise no
      error in case of inconsistent result, but document everything.
      (vc-test--checkout-model): New defun.
      (vc-test-*-checkout-model): New tests.
      992f8fad
  8. 24 Feb, 2015 1 commit
    • Glenn Morris's avatar
      f90.el: add some support for continued strings without leading '&' · e8a11db9
      Glenn Morris authored
      * lisp/progmodes/f90.el (f90-beginning-of-subprogram)
      (f90-end-of-subprogram, f90-match-end):
      Handle continued strings where the continuation does not start
      with "&" and happens to match our regexp.
      
      * test/automated/f90.el (f90-test-bug-19809): New test.
      
      Fixes: debbugs:19809
      e8a11db9
  9. 22 Feb, 2015 1 commit
  10. 16 Feb, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/eieio*.el: Align a bit better with CLOS · c4e2be45
      Stefan Monnier authored
      * lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag): Fix copy&paste
      error (semanticdb-project-database => sym).  Avoid eieio--class-public-a
      when possible.
      
      * lisp/emacs-lisp/eieio-base.el (make-instance): Add a method here rather
      than on eieio-constructor.
      
      * lisp/emacs-lisp/eieio-core.el (eieio--class-print-name): New function.
      (eieio-class-name): Make it do what the docstring claims.
      (eieio-defclass-internal): Simplify since `prots' isn't used any more.
      (eieio--slot-name-index): Simplify accordingly.
      (eieio-barf-if-slot-unbound): Pass the class object rather than its
      name to `slot-unbound'.
      
      * lisp/emacs-lisp/eieio.el (defclass): Use make-instance rather than
      eieio-constructor.
      (set-slot-value): Mark as obsolete.
      (eieio-object-class-name): Improve call to eieio-class-name.
      (eieio-slot-descriptor-name, eieio-class-slots): New functions.
      (object-slots): Use it.  Declare obsolete.
      (eieio-constructor): Merge it with `make-instance'.
      (initialize-instance): Use `dolist'.
      (eieio-override-prin1, eieio-edebug-prin1-to-string):
      Use eieio--class-print-name.
      
      * test/automated/eieio-test-methodinvoke.el (make-instance): Add methods
      here rather than on eieio-constructor.
      c4e2be45
  11. 13 Feb, 2015 1 commit
    • Magnus Henoch's avatar
      Implement SCRAM-SHA-1 SASL mechanism · e7d21b4a
      Magnus Henoch authored
      Fixes: debbugs:17636
      
      * lisp/net/sasl-scram-rfc.el: New file.
      
      * lisp/net/sasl.el (sasl-mechanisms): Remove SCRAM-MD5.  Add
      SCRAM-SHA-1 first.
      (sasl-mechanism-alist): Remove SCRAM-MD5 entry.  Add SCRAM-SHA-1
      entry.
      
      * test/automated/sasl-scram-rfc-tests.el: New file.
      e7d21b4a
  12. 11 Feb, 2015 2 commits
    • NicolasPetton's avatar
      Add a backward-compatible version of seq-reverse · 4fb5565d
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-reverse): Add a backward-compatible
      version of seq-reverse that works on sequences in Emacs 24.  Bump
      version to 1.2.
      * test/automated/seq-tests.el (test-seq-reverse, test-seq-group-by):
      Add a test for seq-reverse and update test for seq-group-by to test
      vectors and strings, not only lists.
      4fb5565d
    • NicolasPetton's avatar
      Improve seq-group-by to return sequence elements in correct order · c49e769d
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-group-by): Improves seq-group-by to
      return sequence elements in correct order
      * tests/automated/seq-tests.el: Update test for seq-group-by
      * doc/lispref/sequences.texi (Sequence Functions): Update documentation
      examples for seq-group-by
      c49e769d
  13. 10 Feb, 2015 1 commit
  14. 07 Feb, 2015 3 commits
    • Fabián Ezequiel Gallina's avatar
      python.el: Keep eldoc visible while typing args. · 2155973e
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:19637
      
      * lisp/progmodes/python.el (python-eldoc--get-symbol-at-point): New
      function.
      (python-eldoc--get-doc-at-point, python-eldoc-at-point): Use it.
      
      * test/automated/python-tests.el
      (python-eldoc--get-symbol-at-point-1)
      (python-eldoc--get-symbol-at-point-2)
      (python-eldoc--get-symbol-at-point-3)
      (python-eldoc--get-symbol-at-point-4): New tests.
      2155973e
    • Fabián Ezequiel Gallina's avatar
      Fix hideshow integration. · 2d467a0f
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:19761
      
      * lisp/progmodes/python.el
      (python-hideshow-forward-sexp-function): New function based on
      Carlos Pita <carlosjosepita@gmail.com> patch.
      (python-mode): Make `hs-special-modes-alist` use it and initialize
      the end regexp with the empty string to avoid skipping parens.
      
      * test/automated/python-tests.el
      (python-tests-visible-string): New function.
      (python-parens-electric-indent-1)
      (python-triple-quote-pairing): Fix indentation, move require calls.
      (python-hideshow-hide-levels-1)
      (python-hideshow-hide-levels-2): New tests.
      2d467a0f
    • Dmitry Gutov's avatar
      Make vc-test-svn03-working-revision pass · 66e63985
      Dmitry Gutov authored
      * test/automated/vc-tests.el (vc-test--working-revision): Fix
      `vc-working-revision' checks to be compared against nil, which is
      what is should return for unregistered files.
      66e63985
  15. 06 Feb, 2015 2 commits
    • NicolasPetton's avatar
      Add seq-partition and seq-group-by · c4a0eff0
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el: Better docstring for seq.el functions
      * test/automated/seq-tests.el: New tests for seq-partition and
        seq-group-by
      c4a0eff0
    • NicolasPetton's avatar
      Add seq-mapcat · 05211a57
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-mapcat): New function
      * test/automated/seq-tests.el: Add unit tests for seq-mapcat
      05211a57
  16. 05 Feb, 2015 2 commits
  17. 03 Feb, 2015 1 commit
  18. 01 Feb, 2015 2 commits
  19. 31 Jan, 2015 1 commit
    • Stefan Monnier's avatar
      EIEIO: Simplify help hyperlinks; Try and reduce hardcoding in .elc · e0be229d
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-generic.el (cl--generic-search-method): Fix regexp.
      
      * lisp/emacs-lisp/eieio-core.el (eieio--check-type): Remove.
      Use cl-check-type everywhere instead.
      (eieio-class-object): Remove, use find-class instead when needed.
      (class-p): Don't inline.
      (eieio-object-p): Check more thoroughly, so we don't treat cl-structs,
      such as eieio classes, as objects.  Don't inline.
      (object-p): Mark as obsolete.
      (eieio-defclass-autoload, eieio-defclass-internal, eieio-oref)
      (eieio--generic-tagcode): Avoid `class-p'.
      (eieio-make-class-predicate, eieio-make-child-predicate): New functions.
      (eieio-defclass-internal): Use current-load-list rather than
      `class-location'.
      
      * lisp/emacs-lisp/eieio-opt.el (eieio-help-class, eieio-help-constructor):
      Use find-lisp-object-file-name, help-fns-short-filename and new calling
      convention for eieio-class-def.
      (eieio-build-class-list): Remove function, unused.
      (eieio-method-def): Remove button type, unused.
      (eieio-class-def): Inherit from help-function-def.
      (eieio--defclass-regexp): New constant.
      (find-function-regexp-alist): Use it.
      (eieio--specializers-apply-to-class-p): Handle eieio--static as well.
      (eieio-help-find-method-definition, eieio-help-find-class-definition):
      Remove functions.
      
      * lisp/emacs-lisp/eieio.el (defclass): Use new eieio-make-class-predicate
      and eieio-make-child-predicate.
      (eieio-class-parents): Use eieio--class-object.
      (slot-boundp, find-class, eieio-override-prin1): Avoid class-p.
      (slot-exists-p): Use find-class.
      
      * test/automated/eieio-tests.el (eieio-test-23-inheritance-check): Simplify.
      e0be229d
  20. 30 Jan, 2015 5 commits