1. 02 Sep, 2010 1 commit
    • Chong Yidong's avatar
      Set revert-buffer-function in Package Menu. · e687c2cd
      Chong Yidong authored
      * emacs-lisp/package.el (package-menu-mode-map): Change
      package-menu-revert bindings to revert-buffer.
      (package-menu-mode): Set revert-buffer-function.
      (package-menu-revert): Doc fix.
      e687c2cd
  2. 31 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Fix several Package Menu and Finder bugs. · 187d3296
      Chong Yidong authored
      * finder.el: Load finder-inf using `require'.
      (finder-list-matches): Sorting by status is now the default.
      (finder-compile-keywords): Simpify printing.
      
      * emacs-lisp/package.el (package--read-archive-file): Just use
      `read', to avoid copying an additional string.
      (package-menu-mode): Set header-line-format here.
      (package-menu-refresh, package-menu-revert): Signal an error if
      not in the Package Menu.
      (package-menu-package-list): New var.
      (package--generate-package-list): Operate on the current buffer;
      don't assume that it is *Packages*, since the user may rename it.
      Allow persistent package listings and sort keys using
      package-menu-package-list and package-menu-package-sort-key.
      (package-menu--version-predicate): Fix version calculation.
      (package-menu-sort-by-column): Don't select the window.
      (package--list-packages): Create the *Packages* buffer.  Set
      package-menu-package-list-key.
      (list-packages): Sorting by status is now the default.
      (package-buffer-info): Use match-string-no-properties.
      (define-package): Add a &rest argument for future proofing, but
      don't use it yet.
      (package-install-from-buffer, package-install-buffer-internal):
      Merged into a single function, package-install-from-buffer.
      (package-install-file): Caller changed.
      
      Also, fix headers for hfy-cmap.el and ps-print.el.
      187d3296
  3. 29 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Merge Finder and package-menu functionality. · 96ae4c8f
      Chong Yidong authored
      * lisp/finder.el: Require `package'.
      (finder-known-keywords): Tweak descriptions.  Retire `oop' keyword.
      (finder-package-info): Var deleted.
      (finder-keywords-hash, finder--builtins-alist): New vars.
      (finder-compile-keywords): Compute package--builtins and
      finder-keywords-hash instead of finder-keywords-hash, respecting
      the "Package" header.
      (finder-unknown-keywords, finder-list-matches): Use
      finder-keywords-hash and package--list-packages.
      (finder-mode): Don't set font-lock-defaults.
      (finder-exit): We don't use "*Finder-package*" and "*Finder
      Category*" buffers anymore.
      
      * lisp/info.el (Info-finder-find-node): Search package-alist instead of
      finder-package-info.
      
      * lisp/emacs-lisp/package.el (package--builtins-base): Var deleted.
      (package--builtins): Set default value to nil.
      (package-initialize): Load precomputed value of package--builtins
      from finder-inf.el.
      (package-alist, package-compute-transaction)
      (package-download-transaction): Improve docstring.
      (package-read-all-archive-contents): Do not change
      package--builtins here.
      (list-packages): Make package-list-packages an alias for this.
      Sort by status by default.
      (package--list-packages): Add optional PACKAGES arg.
      (describe-package-1): Use font-lock-face property.  For built-in
      packages, insert file commentary.
      (package--generate-package-list): Rename from
      package-list-packages-internal; all callers changed.  Add optional
      PACKAGES arg.  Add alphabetical sort fallbacks.
      (package-menu--version-predicate, package-menu--status-predicate)
      (package-menu--description-predicate)
      (package-menu--name-predicate): New functions.
      96ae4c8f
  4. 26 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Improvements to describe-package buffer. · cb6c4991
      Chong Yidong authored
      * lisp/help.el (help-map): Bind `C-h P' to describe-package.
      
      * lisp/menu-bar.el (menu-bar-describe-menu): Add describe-package.
      
      * lisp/emacs-lisp/package.el (package-refresh-contents): Catch errors
      when downloading archives.
      (describe-package-1): Add package commentary.
      (package-install-button-action): New function.
      (package-menu-mode-map): Bind ? to package-menu-describe-package.
      (package-menu-view-commentary): Function removed.
      (package-list-packages-internal): Hide the `package' package too.
      cb6c4991
  5. 24 Aug, 2010 1 commit
  6. 09 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Use version-list-* functions in package.el. · 148cef8e
      Chong Yidong authored
      * emacs-lisp/package-x.el (package-upload-buffer-internal): Use
      version-to-list.
      (package-upload-buffer-internal): Use version-list-<=.
      
      * emacs-lisp/package.el (package-version-split)
      (package--version-first-nonzero, package-version-compare):
      Functions removed.
      (package-directory-list, package-load-all-descriptors)
      (package--built-in, package-activate, define-package)
      (package-installed-p, package-compute-transaction)
      (package-read-all-archive-contents)
      (package--add-to-archive-contents, package-buffer-info)
      (package-tar-file-info, package-list-packages-internal): Use
      version-to-list and version-list-*.
      148cef8e
  7. 01 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Package listing tweaks. · 376c2b6b
      Chong Yidong authored
      * emacs-lisp/package.el (package--list-packages): Fix column
      alignment.
      (package--builtins): Tweak descriptions.
      (package-print-package): Upcase descriptions if necessary.  Show
      all built-in packages in font-lock-builtin-face.
      (package-list-packages-internal): Omit "emacs" package.  Show
      status of built-in packages as "built-in".
      376c2b6b
  8. 29 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Update package-x to latest package.el changes. · 063e5294
      Chong Yidong authored
      * emacs-lisp/package-x.el (package--make-rss-entry):
      (package-maint-add-news-item, package--update-news)
      (package-upload-buffer-internal): New arg ARCHIVE-URL.
      
      * emacs-lisp/package.el (package-archive-url): Rename from
      package-archive-id.
      (package-install): Doc fix.
      (package-download-single, package-download-tar, package-install)
      (package-menu-view-commentary): Callers changed.
      063e5294
  9. 28 Jul, 2010 1 commit
    • Phil Hagelberg's avatar
      Add support for non-default package repositories. · bc44bef7
      Phil Hagelberg authored
      * lisp/emacs-lisp/package.el (package-archive-base): Var deleted.
      (package-archives): New variable.
      (package-archive-contents): Doc fix.
      (package-load-descriptor): Do nothing if descriptor file is
      missing.
      (package--write-file-no-coding): New function.
      (package-unpack-single): Use it.
      (package-archive-id): New function.
      (package-download-single, package-download-tar)
      (package-menu-view-commentary): Use it.
      (package-installed-p): Make second argument optional.
      (package-read-all-archive-contents): New function.
      (package-initialize): Use it.
      (package-read-archive-contents): Add ARCHIVE argument.
      (package--add-to-archive-contents): New function.
      (package-install): Don't call package-read-archive-contents.
      (package--download-one-archive): Store archive file in a
      subdirectory of package-user-dir.
      (package-menu-execute): Remove spurious line movement.
      
      * lisp/emacs-lisp/package.el (package-load-list, package-archives)
      (package-archive-contents, package-user-dir)
      (package-directory-list, package--builtins, package-alist)
      (package-activated-list, package-obsolete-alist): Mark as risky.
      bc44bef7
  10. 20 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Tweaks to package list UI. · 8adb4c33
      Chong Yidong authored
      * help-mode.el (help-package): New button type.
      
      * emacs-lisp/package.el (package-print-package): Add link to
      package description via describe-package.
      (describe-package-1): List package requirements.  Add button to
      perform installation.
      (package-menu-describe-package): New command.
      8adb4c33
  11. 19 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Add preliminary describe-package functionality, and some cleanup. · cced7584
      Chong Yidong authored
      * help-mode.el (help-package-def): New button type.
      
      * menu-bar.el: Move package-list-packages binding here from
      package.el.
      
      * emacs-lisp/package.el: Move package-list-packages binding to
      menu-bar.el.
      (describe-package, describe-package-1, package--dir): New funs.
      (package-activate-1): Use package--dir.
      
      * emacs-lisp/package-x.el (gnus-article-buffer): Require package.
      cced7584
  12. 17 Jun, 2010 3 commits
    • Dan Nicolaescu's avatar
    • Juanma Barranquero's avatar
    • Chong Yidong's avatar
      Merge package.el, written by Tom Tromey <tromey@redhat.com>. · 44198b6e
      Chong Yidong authored
      Changes relative to version 0.9 of package.el are listed below:
      
      * emacs-lisp/package-x.el: New file.  Package uploading
      functionality split out from package.el.
      
      * emacs-lisp/package.el (package-archive-base): Point to
      elpa.gnu.org.
      (package-enable, package-load-list): New defcustoms.
      (package-user-dir, package-directory-list): Turn into defcustoms.
      Don't include package-user-dir in package-directory-list.
      (package--builtins-base): Don't include Emacs as a "package".
      (package-subdirectory-regexp): New var.
      (package-load-all-descriptors, package-compute-transaction)
      (package-download-transaction): Obey package-load-list.
      (package-activate-1): Rename from package-do-activate.
      (package-list-packages-internal): Check package-load-list.
      (package-load-descriptor, package-generate-autoloads)
      (package-unpack, package-unpack-single)
      (package--read-archive-file, package-delete): Use
      expand-file-name.
      
      * startup.el (command-line): Load packages after reading init
      file.
      44198b6e