1. 08 Nov, 2014 1 commit
  2. 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
  3. 22 Apr, 2014 2 commits
    • Daniel Colascione's avatar
      Fix cl-lib-struct-accessors test again. · ba9b77fe
      Daniel Colascione authored
      * test/automated/cl-lib.el (cl-lib-struct-accessors): Fix test to
      account for removal of `cl-struct-set-slot-value'. Also, move
      the defstruct to top level.
      ba9b77fe
    • Daniel Colascione's avatar
      Optimize cl-struct-slot-value; fix test · 66fda794
      Daniel Colascione authored
      2014-04-22  Daniel Colascione  <dancol@dancol.org>
      
      	* emacs-lisp/cl-macs.el
      	(cl-struct-sequence-type,cl-struct-slot-info): Declare pure.
      	(cl-struct-slot-value): Conditionally use aref or nth so that the
      	compiler produces optimal code.
      
      2014-04-22  Daniel Colascione  <dancol@dancol.org>
      
      	* automated/cl-lib.el (cl-lib-struct-accessors): Fix test to
      	account for removal of `cl-struct-set-slot-value'.
      66fda794
  4. 21 Apr, 2014 3 commits
  5. 20 Apr, 2014 1 commit
  6. 23 Mar, 2014 2 commits
  7. 01 Jan, 2014 1 commit
  8. 11 Jul, 2013 1 commit
    • Glenn Morris's avatar
      Stop reimplementing a bunch of cl- functions in ert · a19b3c2d
      Glenn Morris authored
      * lisp/emacs-lisp/ert.el: Require cl-lib at runtime too.
      (ert--cl-do-remf, ert--remprop, ert--remove-if-not)
      (ert--intersection, ert--set-difference, ert--set-difference-eq)
      (ert--union, ert--gensym-counter, ert--gensym-counter)
      (ert--coerce-to-vector, ert--remove*, ert--string-position)
      (ert--mismatch, ert--subseq): Remove reimplementations of cl funcs.
      (ert-make-test-unbound, ert--expand-should-1)
      (ert--expand-should, ert--should-error-handle-error)
      (should-error, ert--explain-equal-rec)
      (ert--plist-difference-explanation, ert-select-tests)
      (ert--make-stats, ert--remove-from-list, ert--string-first-line):
      Use cl-lib functions rather than reimplementations.
      
      * test/automated/ert-tests.el: Require cl-lib at runtime too.
      (ert-test-special-operator-p): Use cl-gensym rather than ert-- version.
      (ert-test-remprop, ert-test-remove-if-not, ert-test-remove*)
      (ert-test-set-functions, ert-test-gensym)
      (ert-test-coerce-to-vector, ert-test-string-position)
      (ert-test-mismatch): Remove tests.
      
      * test/automated/cl-lib.el: New, split from ert-tests.el.
      a19b3c2d