Pretty decent overhaul of the elisp tools.
authorSteve Youngs <steve@steveyoungs.com>
Sat, 15 Mar 2014 15:14:11 +0000 (01:14 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Sat, 15 Mar 2014 15:14:11 +0000 (01:14 +1000)
commit53cfd07f9cbaf689a4d134e0a4639a2e5bc7a2c9
tree0bb501f5a9b44a40d544cda089fff4075f8a490b
parente49a9e46a728b6810aca46e0c72186432aaf9856
Pretty decent overhaul of the elisp tools.

Most interactive defuns can now optionally insert their results into the
current buffer at point.

The list of packages is now only evaled at load time to reduce
processing.  Relevant defuns can re-eval explicitly via prefix arg.

* etc/pkgusr/bash_profile (CHECKUPDATES): Don't checkupdates if
$TERM is "dumb".  This allows TRAMP to still function if a pkgusr
would have gotten the update message on a normal login.

* lisp/pkgusr.el (pkgusr-all-pkgs): New variable to hold list of
installed packages so we don't have to calculate it every time it
is used.
(pkgusr-all-pkgs-update): New.  Updates above, to be optionally
used in the rest of pkgusr.el.
(pkgusr-pkgs-count): Use it.
(pkgusr-list-pkgs-regexp): Ditto.  Also optionally insert result
into current buffer at point.
(pkgusr-pkg-details): Pop to a buffer displaying a package's
filelist and other details.
(pkgusr-show-pkg): Remove its argument, it was never intended to
be called non-interactively.  Update the packages list via prefix
arg.  Use #'pkgusr-pkg-details
(pkgusr-pkg-install-notes): Ditto.
(pkgusr-pkg-general-notes): Ditto.
(pkgusr-cmd-pkg): Insert into buffer with prefix arg.
Error out if the file owner or group isn't a pkgusr
(pkgusr-file-pkg): Ditto.
(pkgusr-project-file): New.
(pkgusr-pkg-url): Use it.  Optionally insert into buffer.
Optionally force update of packages list.
(pkgusr-pkg-repo): Ditto.
(pkgusr-pkg-version): Ditto.
(pkgusr-pkg-description): Ditto.
(pkgusr-pkg-deps): Ditto.
(pkgusr-find-file): Force update of packages list via prefix arg.
(pkgusr-pkg-rdeps): New.  Returns a list of reverse dependencies
of a package. IOW, what packages need a package.

* lisp/bld-update.el: Typo fix.

Signed-off-by: Steve Youngs <steve@bastard.steveyoungs.com>
etc/pkgusr/bash_profile
lisp/bld-update.el
lisp/pkgusr.el