1. 01 Oct, 2013 2 commits
  2. 29 Sep, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Pass · 056453c6
      Dmitry Gutov authored
      `extras' slot from `package-desc' to `package-make-ac-desc'.
      
      * lisp/emacs-lisp/package.el (package-desc-from-define): Accept
      additional arguments as plist, convert it to an alist and store it
      in the `extras' slot.
      (package-generate-description-file): Convert extras alist back to
      plist and append to the `define-package' form arguments.
      (package--alist-to-plist): New function.
      (package--ac-desc): Add `extras' slot.
      (package--add-to-archive-contents): Check if the archive-contents
      vector is long enough, and if it is, pass its `extras' slot value
      to `package-desc-create'.
      (package-buffer-info): Call `lm-homepage', pass the returned value
      to `package-desc-from-define'.
      (describe-package-1): Render the homepage button.
      
      * test/automated/package-test.el (simple-single-desc-1-4): Remove, it
      was unused.
      (simple-single-desc): Expect :homepage property.
      (multi-file-desc): Same.
      (with-package-test): Do not save previous `default-directory'
      value, let-bind the var instead.
      (package-test-install-single): Expect :homepage property in the
      generated pkg file.
      (package-test-describe-package): Expect Homepage button.
      (package-test-describe-non-installed-package)
      (package-test-describe-non-installed-multi-file-package): Same.
      (package-test-describe-not-installed-package): Remove, it was a
      duplicate.
      
      * test/automated/package-x-test.el
      (package-x-test--single-archive-entry-1-3): Expect :homepage
      property.
      (package-x-test--single-archive-entry-1-4): Expect nil extras slot.
      
      * test/automated/data/package/archive-contents: Add :homepage
      properties to `simple-single' and `multi-file'.
      
      * test/automated/data/package/simple-single-1.3.el: Add URL header.
      
      Fixes: debbugs:13291
      056453c6
  3. 17 Sep, 2013 1 commit
  4. 03 Sep, 2013 1 commit
  5. 28 Aug, 2013 1 commit
  6. 23 Aug, 2013 1 commit
  7. 03 Aug, 2013 1 commit
  8. 22 Jul, 2013 1 commit
  9. 26 Jun, 2013 1 commit
  10. 25 Jun, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Include obsolete packages from archives. · 12059709
      Stefan Monnier authored
      Use lexical-binding.
      (package-archive-contents): Change format; include obsolete packages.
      (package-desc): Use `dir' to mark builtin packages.
      (package--from-builtin): Set the `dir' field to `builtin'.
      (generated-autoload-file, version-control): Declare.
      (package-compute-transaction): Change first arg and return value to be
      lists of package-descs.  Adjust to new package-archive-contents format.
      (package--add-to-archive-contents): Adjust to new
      package-archive-contents format.
      (package-download-transaction): Arg is now a list of package-descs.
      (package-install): If `pkg' is a package name, pass it as
      a requirement, so it is subject to the usual (e.g. disabled) checks.
      (describe-package): Accept package-desc as well.
      (describe-package-1): Describe a specific package-desc.  Add links to
      other package-descs for the same package name.
      (package-menu-describe-package): Pass the actual package-desc.
      (package-menu-mode): Add to tabulated-list-revert-hook so revert-buffer
      works correctly.
      (package-desc-status): New function.
      (package-menu--refresh): New function, extracted
      from package-menu--generate.
      (package-menu--generate): Use it.
      (package-delete): Update package-alist.
      (package-menu-execute): Don't call package-initialize.
      
      * lisp/progmodes/idlw-toolbar.el, lisp/progmodes/idlw-shell.el,
      lisp/progmodes/idlw-help.el, lisp/progmodes/idlw-complete-structtag.el,
      lisp/progmodes/ebnf-yac.el, lisp/progmodes/ebnf-otz.el,
      lisp/progmodes/ebnf-iso.el, lisp/progmodes/ebnf-ebx.el,
      lisp/progmodes/ebnf-dtd.el, lisp/progmodes/ebnf-bnf.el,
      lisp/progmodes/ebnf-abn.el, lisp/emacs-lisp/package-x.el,
      lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el
      lisp/cedet/data-debug.el, lisp/cedet/cedet-idutils.el:
      Neuter the "Version:" header.
      12059709
  11. 22 Jun, 2013 1 commit
  12. 21 Jun, 2013 3 commits
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el (package-alist): Include obsolete packages. · a7d2d465
      Stefan Monnier authored
      (package-obsolete-list): Remove.
      (package-activate): Remove min-version argument.  Add `force' argument.
      Adjust to new package-alist format.
      (package-mark-obsolete): Remove.
      (package-unpack): Force reload of the package's autoloads.
      (package-installed-p): Check builtins if the installed package is not
      recent enough.
      (package-initialize): Don't reset package-obsolete-list.
      Don't specify which package version to activate.
      (package-process-define-package, describe-package-1)
      (package-menu--generate): Adjust to new package-alist format.
      a7d2d465
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Use tar-mode rather than tar executable. · fd846ab4
      Stefan Monnier authored
      Consolidate the single-file vs tarball code.
      (package-desc-suffix): New function.
      (package-desc-full-name): Don't bother inlining it.
      (package-load-descriptor): Return the new package-desc.
      (package-mark-obsolete): Remove unused arg `package'.
      (package-unpack): Make it work for single files as well.
      Make it update package-alist.
      (package--make-autoloads-and-stuff): Rename from
      package--make-autoloads-and-compile.  Don't compile any more.
      (package--compile): New function.
      (package-generate-description-file): New function, extracted from
      package-unpack-single.
      (package-unpack-single): Remove.
      (package--with-work-buffer): Add indentation and debugging info.
      (package-download-single): Remove.
      (package-install-from-archive): Rename from package-download-tar, make
      it take a pkg-desc, and make it work for single files as well.
      (package-download-transaction): Simplify.
      (package-tar-file-info): Remove `file' arg.  Rewrite not to use an
      external tar program.
      (package-install-from-buffer): Remove `pkg-desc' argument.
      Use package-tar-file-info for tar-mode buffers.
      (package-install-file): Simplify accordingly.
      (package-archive-base): Change to take a pkg-desc.
      * lisp/tar-mode.el (tar--check-descriptor): New function, extracted from
      tar-get-descriptor.
      (tar-get-descriptor): Use it.
      (tar-get-file-descriptor): New function.
      (tar--extract): New function, extracted from tar-extract.
      (tar--extract): Use it.
      * lisp/emacs-lisp/package-x.el (package-upload-file): Decode the file, in
      case the summary uses non-ascii.  Adjust to new calling convention of
      package-tar-file-info.
      fd846ab4
  13. 18 Jun, 2013 1 commit
  14. 17 Jun, 2013 2 commits
  15. 15 Jun, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Don't activate packages older than builtin. · 66bd25ab
      Stefan Monnier authored
      (package-obsolete-list): Rename from package-obsolete-alist, and make
      it into a simple list of package-desc.
      (package-strip-version): Remove.
      (package-built-in-p): Use package--builtin-versions.
      (package-mark-obsolete): Simplify.
      (package-process-define-package): Mark it obsolete if older than the
      builtin version.
      (package-handle-response): Use line-end-position.
      (package-read-archive-contents, package--download-one-archive):
      Simplify.
      (package--add-to-archive-contents): Skip if older than the builtin or
      installed version.
      (package-menu-describe-package): Fix last change.
      (package-list-unversioned): New var.
      (package-menu--generate): Use it.
      
      * lisp/Makefile.in (autoloads): Set autoload-builtin-package-versions.
      
      * lisp/startup.el (package--builtin-versions): New var.
      (package-subdirectory-regexp): Remove.
      (package--description-file): Hard code its value instead.
      
      * lisp/emacs-lisp/autoload.el: Manage package--builtin-versions.
      (autoload--insert-text, autoload--insert-cookie-text): New functions.
      (autoload-builtin-package-versions): New variable.
      (autoload-generate-file-autoloads): Use them.
      Remove the list of autoloaded functions/macros from the
      (autoload...) comments.
      66bd25ab
  16. 14 Jun, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Don't recompute dir. Use pkg-descs more. · 1b8dff23
      Stefan Monnier authored
      (package-desc): Add `dir' field.
      (package-desc-full-name): New function.
      (package-load-descriptor): Combine the two arguments.  Don't use `load'.
      (package-maybe-load-descriptor): Remove.
      (package-load-all-descriptors): Just call package-load-descriptor.
      (package--disabled-p): New function.
      (package-desc-vers, package-desc-doc): Remove aliases.
      (package--dir): Remove function.
      (package-activate): Check if a package is disabled.
      (package-process-define-package): New function, extracted from
      define-package.
      (define-package): Turn into a place holder.
      (package-unpack-single, package-tar-file-info):
      Use package--description-file.
      (package-compute-transaction): Use package--disabled-p.
      (package-download-transaction): Don't call
      package-maybe-load-descriptor since they're all loaded anyway.
      (package-install): Change argument to be a pkg-desc.
      (package-delete): Use a single pkg-desc argument.
      (describe-package-1): Use package-desc-dir instead of package--dir.
      Use package-desc property instead of package-symbol.
      (package-install-button-action): Adjust accordingly.
      (package--push): Rewrite.
      (package-menu--print-info): Adjust accordingly.  Change the ID format
      to be a pkg-desc.
      (package-menu-describe-package, package-menu-get-status)
      (package-menu--find-upgrades, package-menu-mark-upgrades)
      (package-menu-execute, package-menu--name-predicate):
      Adjust accordingly.
      * lisp/startup.el (package--description-file): New function.
      (command-line): Use it.
      * lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
      Use package-desc-version.
      1b8dff23
  17. 12 Jun, 2013 1 commit
    • Stefan Monnier's avatar
      First part of Daniel Hackney's patch to package.el. · f56be016
      Stefan Monnier authored
      * lisp/emacs-lisp/package.el: Use defstruct.
      (package-desc): New, main struct.
      (package--bi-desc, package--ac-desc): New structs, used to describe the
      format in external files.
      (package-desc-vers): Replace with package-desc-version accessor.
      (package-desc-doc): Replace with package-desc-summary accessor.
      (package-activate-1): Remove `package' arg since the pkg-vec now
      includes the name.
      (define-package): Use package-desc-from-define.
      (package-unpack-single): Change file-name arg to be a symbol.
      (package--add-to-archive-contents): Use package-desc-create and new
      accessor functions to package--ac-desc.
      (package-buffer-info, package-tar-file-info): Return a package-desc.
      (package-install-from-buffer): Remove `type' argument.  Change pkg-info
      arg to be a package-desc.
      (package-install-file): Adjust accordingly.  Use \' to match EOS.
      (package--from-builtin): New function.
      (describe-package-1, package-menu--generate): Use it.
      (package--make-autoloads-and-compile): Change name arg to be a symbol.
      (package-generate-autoloads): Idem and return the name of the file.
      * lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
      Change pkg-info arg to be a package-desc.
      Use package-make-ac-desc.
      (package-upload-file): Use \' to match EOS.
      * lisp/finder.el (finder-compile-keywords): Use package-make-builtin.
      f56be016
  18. 14 May, 2013 1 commit
  19. 11 May, 2013 1 commit
    • Glenn Morris's avatar
      Fix some declarations · f20def1f
      Glenn Morris authored
      * lisp/faces.el (internal-face-x-get-resource):
      * lisp/frame.el (ns-display-monitor-attributes-list):
      * lisp/calc/calc-aent.el (math-to-radians-2):
      * lisp/cedet/ede/locate.el (cedet-cscope-version-check)
      (cedet-cscope-support-for-directory):
      * lisp/cedet/semantic/grammar.el (semantic-grammar-wy--install-parser):
      * lisp/emacs-lisp/package.el (tar-header-name, tar-header-link-type):
      Fix declarations.
      f20def1f
  20. 27 Apr, 2013 1 commit
  21. 05 Apr, 2013 1 commit
  22. 04 Apr, 2013 2 commits
  23. 13 Feb, 2013 3 commits
  24. 06 Feb, 2013 1 commit
  25. 01 Jan, 2013 1 commit
  26. 29 Dec, 2012 2 commits
  27. 28 Oct, 2012 1 commit
  28. 25 Oct, 2012 1 commit
  29. 24 Sep, 2012 1 commit
  30. 13 Jun, 2012 1 commit
    • Chong Yidong's avatar
      In the Package Menu, indicate packages that are newly-available. · 60057926
      Chong Yidong authored
      * lisp/emacs-lisp/package.el (list-packages): Compute a list of
      packages that are newly-available since the last list-packages
      invocation.
      (package-menu--new-package-list): New var.
      (package-menu--generate, package-menu--print-info)
      (package-menu--status-predicate, package-menu-mark-install):
      Handle new status label "new".
      60057926
  31. 06 May, 2012 1 commit
  32. 05 May, 2012 1 commit