1. 08 Jan, 2015 1 commit
    • Stefan Monnier's avatar
      lisp/emacs-lisp/eieio-core.el (eieio-backward-compatibility): New var. · 1599688e
      Stefan Monnier authored
      * lisp/cedet/ede/speedbar.el (ede-speedbar-compile-line)
      (ede-speedbar-get-top-project-for-line):
      * lisp/cedet/ede.el (ede-buffer-belongs-to-target-p)
      (ede-buffer-belongs-to-project-p, ede-build-forms-menu)
      (ede-add-project-to-global-list):
      * lisp/cedet/semantic/db-typecache.el (semanticdb-get-typecache):
      * lisp/cedet/semantic/db-file.el (semanticdb-load-database):
      * lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag):
      * lisp/cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-load-helper):
      * lisp/cedet/ede/project-am.el (project-am-preferred-target-type):
      * lisp/cedet/ede/proj.el (ede-proj-load):
      * lisp/cedet/ede/custom.el (ede-customize-current-target, ede-customize-target):
      * lisp/cedet/semantic/ede-grammar.el ("semantic grammar"):
      * lisp/cedet/semantic/scope.el (semantic-scope-reset-cache)
      (semantic-calculate-scope):
      * lisp/cedet/srecode/map.el (srecode-map-update-map):
      * lisp/cedet/srecode/insert.el (srecode-insert-show-error-report)
      (srecode-insert-method, srecode-insert-include-lookup)
      (srecode-insert-method):
      * lisp/cedet/srecode/fields.el (srecode-active-template-region):
      * lisp/cedet/srecode/compile.el (srecode-flush-active-templates)
      (srecode-compile-inserter): Don't use <class> as a variable.
      Use `oref-default' for class slots.
      
      * lisp/cedet/semantic/grammar.el (semantic-grammar-eldoc-last-data): New var.
      (semantic-grammar-eldoc-get-macro-docstring): Use it instead of
      eldoc-last-data.
      * lisp/cedet/semantic/fw.el (semantic-exit-on-input): Use `declare'.
      (semantic-throw-on-input): Use `with-current-buffer'.
      * lisp/cedet/semantic/db.el (semanticdb-abstract-table-list): Define if not
      pre-defined.
      * lisp/cedet/semantic/db-find.el (semanticdb-find-tags-collector):
      Use save-current-buffer.
      (semanticdb-find-tags-collector): Don't use <class> as a variable.
      * lisp/cedet/semantic/complete.el (semantic-complete-active-default)
      (semantic-complete-current-matched-tag): Declare.
      (semantic-complete-inline-custom-type): Don't use <class> as a variable.
      * lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions):
      Use with-current-buffer.
      * lisp/cedet/semantic.el (semantic-parser-warnings): Declare.
      * lisp/cedet/ede/base.el (ede-target-list): Define if not pre-defined.
      (ede-with-projectfile): Prefer find-file-noselect over
      save-window-excursion.
      
      * lisp/emacs-lisp/chart.el (chart-add-sequence, chart-bar-quickie):
      Don't use <class> as a variable.
      
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
      Improve error messages.
      (eieio-persistent-slot-type-is-class-p): Handle `list-of' types, as
      well as user-defined types.  Emit errors for legacy types like
      <class>-child and <class>-list, if not eieio-backward-compatibility.
      
      * lisp/emacs-lisp/eieio-core.el (eieio-backward-compatibility): New var.
      (eieio-defclass-autoload): Obey it.
      (eieio--class-object): Improve error behavior.
      (eieio-class-children-fast, same-class-fast-p): Remove.  Inline at
      every use site.
      (eieio--defgeneric-form-primary-only): Rename from
      eieio-defgeneric-form-primary-only; update all callers.
      (eieio--defgeneric-form-primary-only-one): Rename from
      eieio-defgeneric-form-primary-only-one; update all callers.
      (eieio-defgeneric-reset-generic-form)
      (eieio-defgeneric-reset-generic-form-primary-only)
      (eieio-defgeneric-reset-generic-form-primary-only-one): Remove.
      (eieio--method-optimize-primary): New function to replace them.
      (eieio--defmethod, eieio-defmethod): Use it.
      (eieio--perform-slot-validation): Rename from
      eieio-perform-slot-validation; update all callers.
      (eieio--validate-slot-value): Rename from eieio-validate-slot-value.
      Change `class' to be a class object.  Update all callers.
      (eieio--validate-class-slot-value): Rename from
      eieio-validate-class-slot-value.  Change `class' to be a class object.
      Update all callers.
      (eieio-oset-default): Accept class object as well.
      (eieio--generic-call-primary-only): Rename from
      eieio-generic-call-primary-only.  Update all callers.
      
      * lisp/emacs-lisp/eieio-opt.el (eieio-read-generic-p): Remove.
      (eieio-read-generic): Use `generic-p' instead.
      
      * lisp/emacs-lisp/eieio.el (same-class-p): Accept class object as well.
      (call-next-method): Simplify.
      (clone): Obey eieio-backward-compatibility.
      
      * lisp/gnus/registry.el: Don't use <class> as a variable.
      
      * test/automated/eieio-test-methodinvoke.el
      (eieio-test-method-order-list-4):
      Don't use <class> as a variable.
      
      * test/automated/eieio-test-persist.el (persistent-with-objs-list-slot):
      Don't use <class>-list type.
      
      * test/automated/eieio-tests.el: Use cl-lib.  Don't use <class> as a variable.
      Don't use <class>-list types and <class>-list-p predicates.
      1599688e
  2. 05 Jan, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/eieio*.el: Use class objects in `parent' field. · cb4db863
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio-core.el (eieio-class-object): New function.
      (eieio-class-parents-fast): Remove macro.
      (eieio--class-option-assoc): Rename from class-option-assoc.
      Update all callers.
      (eieio--class-option): Rename from class-option.  Change `class' arg to
      be a class object.  Update all callers.
      (eieio--class-method-invocation-order): Rename from
      class-method-invocation-order.  Change `class' arg to be a class
      object.  Update all callers.
      (eieio-defclass-autoload, eieio-defclass): Set the `parent' field to
      a list of class objects rather than names.
      (eieio-defclass): Remove redundant quotes.  Use `eieio-oref-default'
      for accessors to class allocated slots.
      (eieio--perform-slot-validation-for-default): Rename from
      eieio-perform-slot-validation-for-default.  Update all callers.
      (eieio--add-new-slot): Rename from eieio-add-new-slot.
      Update all callers.  Use push.
      (eieio-copy-parents-into-subclass): Adjust to new content of
      `parent' field.  Use dolist.
      (eieio-oref): Remove support for providing a class rather than
      an object.
      (eieio-oref-default): Prefer class objects over class names.
      (eieio--slot-originating-class-p): Rename from
      eieio-slot-originating-class-p.  Update all callers.  Use `or'.
      (eieio--slot-name-index): Turn check into assertion.
      (eieio--class-slot-name-index): Rename from
      eieio-class-slot-name-index.  Change `class' arg to be a class object.
      Update all callers.
      (eieio-attribute-to-initarg): Move to eieio-test-persist.el.
      (eieio--c3-candidate): Rename from eieio-c3-candidate.
      Update all callers.
      (eieio--c3-merge-lists): Rename from eieio-c3-merge-lists.
      Update all callers.
      (eieio--class-precedence-c3): Rename from eieio-class-precedence-c3.
      Update all callers.
      (eieio--class-precedence-dfs): Rename from eieio-class-precedence-dfs.
      Update all callers.
      (eieio--class-precedence-bfs): Rename from eieio-class-precedence-bfs.
      Update all callers.  Adjust to new `parent' content.
      (eieio--class-precedence-list): Rename from -class-precedence-list.
      Update all callers.
      (eieio-generic-call): Use autoloadp and autoload-do-load.
      Slight simplification.
      (eieio-generic-call, eieio-generic-call-primary-only): Adjust to new
      return value of `eieio-generic-form'.
      (eieiomt-add): Index the hashtable with class objects rather than
      class names.
      (eieio-generic-form): Accept class objects as well.
      
      * lisp/emacs-lisp/eieio.el (eieio-class-parents): Accept class objects.
      (eieio--class-slot-initarg): Rename from class-slot-initarg.
      Change `class' arg to be a class object.  Update all callers.
      (call-next-method): Adjust to new return value of `eieio-generic-form'.
      (eieio-default-superclass): Set var to the class object.
      (eieio-edebug-prin1-to-string): Fix recursive call for lists.
      Change print behavior to affect class objects rather than
      class symbols.
      
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object):
      Adjust to new convention for eieio-persistent-validate/fix-slot-value.
      (eieio-persistent-validate/fix-slot-value):
      Change `class' arg to be a class object.  Update all callers.
      
      * test/automated/eieio-test-persist.el (eieio--attribute-to-initarg):
      Move from eieio-core.el.  Rename from eieio-attribute-to-initarg.
      Change arg to be a class object.  Update all callers.
      
      * test/automated/eieio-tests.el (eieio-test-04-static-method)
      (eieio-test-05-static-method-2): Use oref-default to access
      class slots.
      (eieio-test-23-inheritance-check): Don't assume that
      eieio-class-parents returns class names, or that a class can only have
      a single name.
      cb4db863
  3. 29 Dec, 2014 1 commit
    • Stefan Monnier's avatar
      lisp/emacs-lisp/eieio*.el: Reduce object header to 1 slot · 232823a1
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio-core.el (eieio--with-scoped-class): Use let-binding.
      (object): Remove first (constant) slot; rename second to `class-tag'.
      (eieio--object-class-object, eieio--object-class-name): New funs
      to replace eieio--object-class.
      (eieio--class-object, eieio--class-p): New functions.
      (same-class-fast-p): Make it a defsubst, change its implementation
      to check the class objects rather than their names.
      (eieio-object-p): Rewrite.
      (eieio-defclass): Adjust the object initialization according to the new
      object layout.
      (eieio--scoped-class): Declare it returns a class object (not a class
      name any more).  Adjust calls accordingly (along with calls to
      eieio--with-scoped-class).
      (eieio--slot-name-index): Rename from eieio-slot-name-index and change
      its class arg to be a class object.  Adjust callers accordingly.
      (eieio-slot-originating-class-p): Make its start-class arg a class
      object.  Adjust all callers.
      (eieio--initarg-to-attribute): Rename from eieio-initarg-to-attribute.
      Make its `class' arg a class object.  Adjust all callers.
      
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
      Use eieio--slot-name-index rather than eieio-slot-name-index.
      
      * lisp/emacs-lisp/eieio.el (child-of-class-p): Make it accept class objects
      additionally to class names.
      
      * test/automated/eieio-test-methodinvoke.el (eieio-test-method-store):
      Adjust to new semantics of eieio--scoped-class.
      (eieio-test-match): Improve error feedback.
      232823a1
  4. 22 Dec, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/eieio*.el: Use hashtables rather than obarrays · bcebc831
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio-core.el (class): Rename field symbol-obarray to
      symbol-hashtable.  It contains a hashtable instead of an obarray.
      (generic-p): Use symbol property `eieio-method-hashtable' instead of
      `eieio-method-obarray'.
      (generic-primary-only-p, generic-primary-only-one-p):
      Slight optimization.
      (eieio-defclass-autoload-map): Use a hashtable instead of an obarray.
      (eieio-defclass-autoload, eieio-defclass): Adjust/simplify accordingly.
      (eieio-class-un-autoload): Use autoload-do-load.
      (eieio-defclass): Use dolist, cl-pushnew, cl-callf.
      Use new cl-deftype-satisfies.  Adjust to use of hashtables.
      Don't hardcode the value of eieio--object-num-slots.
      (eieio-defgeneric-form-primary-only-one): Remove `doc-string' arg.
      Use a closure rather than a backquoted lambda.
      (eieio--defmethod): Adjust call accordingly.  Set doc-string via the
      function-documentation property.
      (eieio-slot-originating-class-p, eieio-slot-name-index)
      (eieiomt--optimizing-hashtable, eieiomt-install, eieiomt-add)
      (eieio-generic-form): Adjust to use of hashtables.
      (eieiomt--sym-optimize): Rename from eieiomt-sym-optimize; take
      additional class argument.
      (eieio-generic-call-methodname): Remove, unused.
      
      * lisp/emacs-lisp/eieio-custom.el: Use lexical-binding.
      (eieio-object-value-to-abstract): Simplify.
      
      * lisp/emacs-lisp/eieio-datadebug.el: Use lexical-binding.
      
      * lisp/emacs-lisp/eieio-opt.el (eieio-build-class-list): Use cl-mapcan.
      (eieio-build-class-alist): Use dolist.
      (eieio-all-generic-functions): Adjust to use of hashtables.
      
      * lisp/emacs-lisp/eieio.el (child-of-class-p): Fix case where `class' is
      `eieio-default-superclass'.
      
      * test/automated/eieio-test-methodinvoke.el (eieio-test-method-store):
      Remove use of eieio-generic-call-methodname.
      (eieio-test-method-order-list-3, eieio-test-method-order-list-6)
      (eieio-test-method-order-list-7, eieio-test-method-order-list-8):
      Adjust the expected result accordingly.
      
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-slot-type-is-class-p):
      Prefer \' to $.
      bcebc831
  5. 19 Dec, 2014 2 commits
  6. 18 Dec, 2014 1 commit
  7. 16 Dec, 2014 3 commits
  8. 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
  9. 10 Dec, 2014 1 commit
  10. 06 Dec, 2014 1 commit
  11. 03 Dec, 2014 2 commits
  12. 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
  13. 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
  14. 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 (“&nbsp;”)
      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
  15. 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
  16. 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
  17. 10 Nov, 2014 1 commit
  18. 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
  19. 28 Oct, 2014 1 commit
  20. 25 Oct, 2014 1 commit
  21. 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
  22. 12 Oct, 2014 1 commit
  23. 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
  24. 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
  25. 04 Oct, 2014 1 commit
  26. 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
  27. 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
  28. 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