1. 22 Apr, 2011 1 commit
    • Chong Yidong's avatar
      Doc fixes for package.el. · 7ede3b65
      Chong Yidong authored
      * emacs-lisp/package.el (package--builtins, package-alist)
      (package-load-descriptor, package-built-in-p, package-activate)
      (define-package, package-installed-p)
      (package-compute-transaction, package-buffer-info)
      (package--push): Doc fix.  Distinguish more clearly between
      version strings and version lists.
  2. 06 Apr, 2011 1 commit
    • Chong Yidong's avatar
      Make Package Menu a child of Tabulated List mode. · e91a96fe
      Chong Yidong authored
      * emacs-lisp/package.el: Use Tabulated List mode.
      (package-menu-mode-map): Inherit from tabulated-list-mode-map.
      (package-menu-mode): Derive from tabulated-list-mode.  Set up the
      table format using Tabulated List mode variables.
      (package--push): New macro, replacing package-list-maybe-add.
      (package-menu--generate): Use package--push.  Renamed from
      (package-menu-refresh, list-packages): Use it.
      (package-menu--print-info): Renamed from package-print-package.
      Return insertion data instead of inserting it directly.
      (package-menu-describe-package, package-menu-execute): Use
      (package-menu-mark-delete, package-menu-mark-install)
      (package-menu-mark-unmark, package-menu-backup-unmark)
      (package-menu-mark-obsolete-for-deletion): Use
      (package--list-packages, package-menu-revert)
      (package-menu-get-package, package-menu-get-version)
      (package-menu-sort-by-column): Functions deleted.
      (package-menu-package-list, package-menu-sort-key): Vars deleted.
      (package-menu--status-predicate, package-menu--version-predicate)
      (package-menu--description-predicate): Handle arguments in the
      Tabulated List format.
      (package-list-packages-no-fetch): Call list-packages.
  3. 02 Apr, 2011 1 commit
    • Chong Yidong's avatar
      Merge open-protocol-stream into open-network-stream. · da91b5f2
      Chong Yidong authored
      * lisp/subr.el (open-network-stream): Move to net/network-stream.el.
      * lisp/gnus/proto-stream.el: Move to net/network-stream.el.
      * lisp/net/network-stream.el: Move from gnus/proto-stream.el.
      Change prefix to network-stream throughout.
      (open-protocol-stream): Merge into open-network-stream, leaving
      open-protocol-stream as an alias.  Handle nil BUFFER args.
      * lisp/gnus/nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command
      parameter to open-protocol-stream.
      * lisp/emacs-lisp/package.el (package--with-work-buffer): Recognize
      https URLs.
      * lisp/url/url-gw.el (url-open-stream): Use new open-network-stream
      functionality to perform encryption.
  4. 19 Mar, 2011 1 commit
    • Chong Yidong's avatar
      Fix tar package handling, and clean up package-subdirectory-regexp usage. · 4525ce3e
      Chong Yidong authored
      * lisp/startup.el (package-subdirectory-regexp): Move from package.el.
      Omit \\` and \\', and let callers add them.
      * lisp/emacs-lisp/package.el (package-strip-version)
      (package-load-all-descriptors): Add \\` and \\' to
      package-subdirectory-regexp before using it.
      (package-untar-buffer): New arg DIR; ensure that file untars only
      into this expected directory.  Remove superfluous delete-region.
      (package-unpack): Caller changed.
      (package-tar-file-info): Use package-subdirectory-regexp.
  5. 10 Mar, 2011 2 commits
  6. 08 Mar, 2011 2 commits
  7. 06 Mar, 2011 1 commit
    • Chong Yidong's avatar
      Allow specifying local ELPA mirrors in package-archives. · f561e49a
      Chong Yidong authored
      * emacs-lisp/package.el (package-archives): Accept either ordinary
      directory names, in addition to HTTP URLs.
      (package--with-work-buffer): New macro.   Handle normal directories.
      (package-handle-response): Don't display the failing buffer.
      (package-download-single, package-download-tar)
      (package--download-one-archive): Use package--with-work-buffer.
      (package-archive-base): Rename from package-archive-url.
  8. 18 Feb, 2011 1 commit
    • Chong Yidong's avatar
      Fix incorrect changes introduced in 2011-02-02T17:59:44Z!sds@gnu.org. · abd20d91
      Chong Yidong authored
      * lisp/apropos.el (apropos-print): Call apropos-mode before setting up
      buffer variables.  Use inhibit-read-only.
      * lisp/emacs-lisp/package.el (package--list-packages): Call
      package-menu-mode before setting up buffer variables.
      * lisp/play/solitaire.el (solitaire): Call solitaire-mode before
      setting up buffer variables.  Use inhibit-read-only.
  9. 12 Feb, 2011 1 commit
  10. 02 Feb, 2011 1 commit
    • Sam Steingold's avatar
      * lisp/apropos.el (apropos-print): Now that `apropos-mode' inherits · e90f8545
      Sam Steingold authored
      from `special-mode', entering it makes the buffer read-only, so
      call it only when everything has been already inserted.
      * lisp/emacs-lisp/ert.el (ert--setup-results-buffer)
      (ert-results-pop-to-timings): Ditto.
      * lisp/emacs-lisp/package.el (package--list-packages): Ditto.
      * lisp/play/solitaire.el (solitaire): Ditto.
  11. 01 Feb, 2011 1 commit
    • Sam Steingold's avatar
      * lisp/simple.el (special-mode-map): Bind "h" to `describe-mode'; · abef340a
      Sam Steingold authored
      bind "z" to `kill-this-buffer'.
      (completion-list-mode-map): Bind "z" to `kill-this-buffer'.
      * lisp/apropos.el (apropos-mode-map): Inherit from `special-mode-map'.
      (apropos-mode): Inherit from `special-mode'.
      * lisp/arc-mode.el (archive-mode-map): Inherit from `special-mode-map'.
      * lisp/bookmark.el (bookmark-bmenu-mode): Define using
      `define-derived-mode' inheriting from `special-mode'.
      * lisp/dired.el (dired-mode-map): Inherit from `special-mode-map'.
      * lisp/image-mode.el (image-mode-map): Ditto.
      * lisp/replace.el (occur-mode): Define using
      `define-derived-mode' inheriting from `special-mode'.
      * lisp/tar-mode.el (tar-mode): Inherit from `special-mode'.
      * lisp/calendar/diary-lib.el (diary-fancy-display-mode):
      Inherit from `special-mode-map'.
      * lisp/emacs-lisp/ert.el (ert-simple-view-mode, ert-results-mode):
      Inherit from `special-mode'.
      * lisp/emacs-lisp/package.el (package-menu-mode-map): Copy from
      (package-menu-mode): Define using `define-derived-mode'
      inheriting from `special-mode'.
      * erc/erc-list.el (erc-list-menu-mode): Inherit from `special-mode'.
      * lisp/net/xesam.el (xesam-mode): Inherit from `special-mode'.
      (xesam-mode-map): Define separately.
      * lisp/play/solitaire.el (solitaire-mode): Inherit from `special-mode'.
      * lisp/progmodes/compile.el (compilation-minor-mode-map)
      (compilation-mode-map): Inherit from `special-mode-map'.
      * lisp/vc/diff-mode.el (diff-mode-shared-map):
      Inherit from `special-mode-map'.
      * lisp/vc/log-view.el (log-view-mode-map): Add a comment.
  12. 25 Jan, 2011 1 commit
  13. 15 Jan, 2011 1 commit
  14. 12 Jan, 2011 1 commit
  15. 10 Nov, 2010 1 commit
  16. 03 Nov, 2010 2 commits
    • Chong Yidong's avatar
      * emacs-lisp/package.el (package-unpack): Remove no-op. · 015eea59
      Chong Yidong authored
      (package--builtins, package--dir): Doc fix.
      (package-activate-1, package-activate, package-install)
      (package-compute-transaction): Fix error message.
      (package-delete): Use delete-directory.  Omit system packages.
      (package-initialize): Set package-alist to nil first.
      (package-menu-mark-delete, package-menu-mark-install): Don't add
      symbols that are inconsistent with the package state.
      (package-menu-execute): Perform deletions and installations as
      single batch operations.
    • Chong Yidong's avatar
      Separate built-in packages from elpa packages, for efficiency. · 4b99edf2
      Chong Yidong authored
      * emacs-lisp/package.el: Don't put built-in packages in
      package-alist, to avoid loading inefficiencies.
      (package-built-in-p): Make VERSION optional, and treat it as a
      minimum acceptable version.
      (package-activate): Search separately for built-in packages.  Emit
      a warning if a dependency fails.
      (define-package): Handle most common case, where there is no
      obsolete package, first.
      (package-compute-transaction): Print required version in error.
      (package--initialized): New variable.
      (list-packages): Use it.
      (package-initialize): Optional arg NO-ACTIVATE.  Don't put
      built-in packages in packages-alist; keep it separate.  Set
      (describe-package): Avoid activating packages as a side-effect.
      Search separately for built-in packages.
      (describe-package-1): Handle the case where an elpa package is
      simultaneously built-in and available/installed.
      (package-installed-p, package--generate-package-list): Search
      separately for built-in packages.
      (package-load-descriptor): Doc fix.
  17. 02 Nov, 2010 2 commits
  18. 31 Oct, 2010 1 commit
  19. 24 Oct, 2010 3 commits
  20. 22 Sep, 2010 1 commit
    • Glenn Morris's avatar
      Tiny package.el fix. · cd205c76
      Glenn Morris authored
      * lisp/emacs-lisp/package.el (package-menu-mode): `revert-buffer-function'
      is not automatically buffer-local.
  21. 04 Sep, 2010 2 commits
  22. 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.
  23. 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
      (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.
  24. 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
      * 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--name-predicate): New functions.
  25. 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.
  26. 24 Aug, 2010 1 commit
  27. 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
      (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--add-to-archive-contents, package-buffer-info)
      (package-tar-file-info, package-list-packages-internal): Use
      version-to-list and version-list-*.
  28. 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
      (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".
  29. 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-install): Doc fix.
      (package-download-single, package-download-tar, package-install)
      (package-menu-view-commentary): Callers changed.
  30. 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
      (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.
  31. 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.
  32. 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
      * emacs-lisp/package.el: Move package-list-packages binding to
      (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.
  33. 17 Jun, 2010 1 commit