annotate lisp/package-ui.el @ 375:a300bb07d72d r21-2b3

Import from CVS: tag r21-2b3
author cvs
date Mon, 13 Aug 2007 11:04:51 +0200
parents 6240c7796c7a
children d883f39b8495
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
1 ;;; package-ui.el ---
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
2
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
3 ;; Copyright (C) 1998 by Darryl Okahata
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
4
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
5 ;; Author: Darryl Okahata <darrylo@sr.hp.com>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
6 ;; Keywords: internal
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
7
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
9
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
13 ;; any later version.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
14
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
18 ;; General Public License for more details.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
19
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
23 ;; 02111-1307, USA.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
24
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
25 ;;; Synched up with: Not in FSF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
26
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
27 (require 'package-get) ;; which, in turn, requires 'package-admin
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
28
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
30 ;; User-changeable variables:
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
32
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
33 (defgroup pui nil
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
34 "Conventient interface to the package system."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
35 :group 'package-tools
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
36 :tag "Package User interface"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
37 :prefix "pui-")
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
38
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
39 (defcustom pui-package-install-dest-dir nil
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
40 "*If non-nil (Automatic) path to package tree to install packages in.
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
41 Otherwise, use old path for installed packages and make a guess for
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
42 new ones."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
43 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
44 :tag "Install Location"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
45 :type '(choice (const :tag "Automatic" nil)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
46 (directory)))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
47
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
48 (defcustom pui-list-verbose t
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
49 "*If non-nil, display verbose info in the package list buffer."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
50 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
51 :tag "Verbose Listing"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
52 :type 'boolean)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
53
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
54 (defcustom pui-up-to-date-package-face nil
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
55 "*The face to use for packages that are up-to-date."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
56 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
57 :type 'face)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
58
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
59 (defcustom pui-selected-package-face 'bold
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
60 "*The face to use for selected packages.
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
61 Set this to `nil' to use the `default' face."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
62 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
63 :type 'face)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
64
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
65 (defcustom pui-outdated-package-face 'red
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
66 "*The face to use for outdated packages.
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
67 Set this to `nil' to use the `default' face."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
68 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
69 :type 'face)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
70
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
71 (defcustom pui-uninstalled-package-face 'italic
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
72 "*The face to use for uninstalled packages.
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
73 Set this to `nil' to use the `default' face."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
74 :group 'pui
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
75 :type 'face)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
76
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
77
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
78
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
79
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
80 (defvar pui-info-buffer "*Packages*"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
81 "Buffer to use for displaying package information.")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
82
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
83 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
84 ;; End of user-changeable variables.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
85 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
86
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
87 (defvar pui-selected-packages nil
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
88 "The list of user-selected packages to install.")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
89
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
90 (defvar pui-display-keymap
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
91 (let ((m (make-keymap)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
92 (suppress-keymap m)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
93 (set-keymap-name m 'pui-display-keymap)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
94 (define-key m "q" 'pui-quit)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
95 (define-key m "g" 'pui-list-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
96 (define-key m " " 'pui-display-info)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
97 (define-key m "?" 'pui-help)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
98 (define-key m "v" 'pui-toggle-verbosity-redisplay)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
99 (define-key m "d" 'pui-toggle-verbosity-redisplay)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
100 (define-key m [return] 'pui-toggle-package-key)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
101 (define-key m "x" 'pui-install-selected-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
102 (define-key m "I" 'pui-install-selected-packages)
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
103 (define-key m "r" 'pui-add-required-packages)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
104 (define-key m "n" 'next-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
105 (define-key m "+" 'next-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
106 (define-key m "p" 'previous-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
107 (define-key m "-" 'previous-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
108 m)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
109 "Keymap to use in the `pui-info-buffer' buffer")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
110
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
111 (defvar pui-package-keymap
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
112 (let ((m (make-sparse-keymap)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
113 (set-keymap-name m 'pui-package-keymap)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
114 (define-key m 'button2 'pui-toggle-package-event)
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
115 ;; We use a popup menu
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
116 ;; (define-key m 'button3 'pui-toggle-package-event)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
117 m)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
118 "Keymap to use over package names/descriptions.")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
119
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
120 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
121 ;; End of variables
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
122
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
123
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
124 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
125 ;; Configuration routines
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
126
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
127 (defun pui-directory-exists (dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
128 "Check to see if DIR exists in `package-get-remote'."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
129 (let (found)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
130 (mapcar '(lambda (item)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
131 (if (and (null (car item))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
132 (string-equal (file-name-as-directory (car (cdr item)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
133 (file-name-as-directory dir)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
134 (setq found t))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
135 ) package-get-remote)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
136 found
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
137 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
138
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
139 (defun pui-package-dir-list (buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
140 "In BUFFER, format the list of package binary paths."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
141 (let ( (count 1) paths sys dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
142 (set-buffer buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
143 (buffer-disable-undo buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
144 (erase-buffer buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
145 (insert "Existing package binary paths:\n\n")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
146 (setq paths package-get-remote)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
147 (while paths
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
148 (setq sys (car (car paths))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
149 dir (car (cdr (car paths))))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
150 (insert (format "%2s. " count))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
151 (if (null sys)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
152 (insert dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
153 (insert sys ":" dir))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
154 (insert "\n")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
155 (setq count (1+ count))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
156 (setq paths (cdr paths))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
157 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
158 (insert "\nThese are the places that will be searched for package binaries.\n")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
159 (goto-char (point-min))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
160 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
161
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
162 ;;;###autoload
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
163 (defun pui-add-install-directory (dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
164 "Add a new package binary directory to the head of `package-get-remote'.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
165 Note that no provision is made for saving any changes made by this function.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
166 It exists mainly as a convenience for one-time package installations from
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
167 disk."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
168 (interactive (let ( (tmpbuf (get-buffer-create
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
169 "*Existing Package Binary Paths*"))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
170 dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
171 (save-window-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
172 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
173 (unwind-protect
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
174 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
175 (pui-package-dir-list tmpbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
176 (display-buffer tmpbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
177 (setq dir (read-directory-name
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
178 "New package binary directory to add? "
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
179 nil nil t))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
180 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
181 (kill-buffer tmpbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
182 )))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
183 (list dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
184 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
185 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
186 (if (not (pui-directory-exists dir))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
187 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
188 (setq package-get-remote (cons (list nil dir) package-get-remote))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
189 (message "Package directory \"%s\" added." dir)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
190 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
191 (message "Directory \"%s\" already exists in `package-get-remote'." dir))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
192 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
193
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
194 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
195 ;; Package list/installer routines
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
196
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
197 (defun pui-quit ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
198 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
199 (kill-buffer nil))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
200
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
201 (defun pui-help ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
202 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
203 (let ( (help-buffer (get-buffer-create "*Help*")) )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
204 (display-buffer help-buffer t)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
205 (save-window-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
206 (set-buffer help-buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
207 (buffer-disable-undo help-buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
208 (erase-buffer help-buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
209 (insert (pui-help-string))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
210 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
211 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
212
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
213 (defun pui-package-symbol-char (pkg-sym version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
214 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
215 (if (package-get-info-find-package packages-package-list pkg-sym)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
216 (if (package-get-installedp pkg-sym version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
217 (list " " pui-up-to-date-package-face)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
218 (list "*" pui-outdated-package-face))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
219 (list "-" pui-uninstalled-package-face))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
220 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
221
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
222 (defun pui-update-package-display (extent &optional pkg-sym version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
223 "Update the package status for EXTENT.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
224 If PKG-SYM or VERSION are not given, they are read from the extent.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
225 These are used to determine whether or not the package is installed,
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
226 and whether or not it is up-to-date."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
227 (let (buffer-read-only disp sym-char)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
228 (if (not pkg-sym)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
229 (setq pkg-sym (extent-property extent 'pui-package)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
230 (if (not version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
231 (setq version (package-get-info-prop (extent-property extent 'pui-info)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
232 'version)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
233 (if (member pkg-sym pui-selected-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
234 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
235 (if pui-selected-package-face
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
236 (set-extent-face extent (get-face pui-selected-package-face))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
237 (set-extent-face extent (get-face 'default)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
238 (setq sym-char "+")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
239 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
240 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
241 (setq disp (pui-package-symbol-char pkg-sym version))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
242 (setq sym-char (car disp))
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
243 (if (car (cdr disp))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
244 (set-extent-face extent (get-face (car (cdr disp))))
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
245 (set-extent-face extent (get-face 'default)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
246 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
247 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
248 (goto-char (extent-start-position extent))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
249 (delete-char 1)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
250 (insert sym-char)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
251 (set-buffer-modified-p nil)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
252 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
253 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
254
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
255 (defun pui-toggle-package (extent)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
256 (let (pkg-sym)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
257 (setq pkg-sym (extent-property extent 'pui-package))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
258 (if (member pkg-sym pui-selected-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
259 (setq pui-selected-packages
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
260 (delete pkg-sym pui-selected-packages))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
261 (setq pui-selected-packages
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
262 (cons pkg-sym pui-selected-packages)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
263 (pui-update-package-display extent pkg-sym)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
264 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
265
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
266 (defun pui-toggle-package-key ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
267 "Select/unselect package for installation, using the keyboard."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
268 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
269 (let (extent)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
270 (if (setq extent (extent-at (point) (current-buffer) 'pui))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
271 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
272 (pui-toggle-package extent)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
273 (forward-line 1)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
274 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
275 (error "No package under cursor!"))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
276 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
277
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
278 (defun pui-toggle-package-event (event)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
279 "Select/unselect package for installation, using the mouse."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
280 (interactive "e")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
281 (let* ( (ep (event-point event))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
282 (buffer (window-buffer (event-window event)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
283 (extent (extent-at ep buffer 'pui-package))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
284 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
285 (pui-toggle-package extent)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
286 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
287
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
288 (defun pui-toggle-verbosity-redisplay ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
289 "Toggle verbose package info."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
290 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
291 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
292 (setq pui-list-verbose (not pui-list-verbose))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
293 (pui-list-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
294 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
295
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
296 (defun pui-install-selected-packages ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
297 "Install selected packages."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
298 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
299 (let ( (tmpbuf "*Packages-To-Install*") do-install)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
300 (if pui-selected-packages
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
301 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
302 ;; Don't change window config when asking the user if he really
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
303 ;; wants to install the packages. We do this to avoid messing up
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
304 ;; the window configuration if errors occur (we don't want to
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
305 ;; display random buffers in addition to the error buffer, if
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
306 ;; errors occur, which would normally be caused by display-buffer).
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
307 (save-window-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
308 (with-output-to-temp-buffer tmpbuf
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
309 (display-completion-list (sort
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
310 (mapcar '(lambda (pkg)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
311 (symbol-name pkg)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
312 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
313 pui-selected-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
314 'string<)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
315 :activate-callback nil
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
316 :help-string "Packages selected for installation:\n"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
317 :completion-string t
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
318 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
319 (setq tmpbuf (get-buffer-create tmpbuf))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
320 (display-buffer tmpbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
321 (setq do-install (y-or-n-p "Install these packages? "))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
322 (kill-buffer tmpbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
323 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
324 (if do-install
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
325 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
326 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
327 ;; Clear old temp buffer history
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
328 (set-buffer (get-buffer-create package-admin-temp-buffer))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
329 (buffer-disable-undo package-admin-temp-buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
330 (erase-buffer package-admin-temp-buffer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
331 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
332 (message "Installing selected packages ...") (sit-for 0)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
333 (if (catch 'done
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
334 (mapcar (lambda (pkg)
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
335 (if (not (package-get pkg
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
336 pui-package-install-dest-dir))
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
337 (throw 'done nil)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
338 pui-selected-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
339 t)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
340 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
341 (pui-list-packages)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
342 (message "Packages installed")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
343 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
344 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
345 (clear-message)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
346 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
347 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
348 (error "No packages have been selected!"))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
349 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
350
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
351 (defun pui-add-required-packages ()
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
352 "Select packages required by those already selected for installation."
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
353 (interactive)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
354 (let ((tmpbuf "*Required-Packages*") do-select)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
355 (if pui-selected-packages
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
356 (let ((dependencies (package-get-dependencies pui-selected-packages)))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
357 ;; Don't change window config when asking the user if he really
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
358 ;; wants to add the packages. We do this to avoid messing up
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
359 ;; the window configuration if errors occur (we don't want to
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
360 ;; display random buffers in addition to the error buffer, if
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
361 ;; errors occur, which would normally be caused by display-buffer).
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
362 (save-window-excursion
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
363 (with-output-to-temp-buffer tmpbuf
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
364 (display-completion-list (sort
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
365 (mapcar #'(lambda (pkg)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
366 (symbol-name pkg))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
367 dependencies)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
368 'string<)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
369 :activate-callback nil
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
370 :help-string "Required packages:\n"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
371 :completion-string t))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
372 (setq tmpbuf (get-buffer-create tmpbuf))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
373 (display-buffer tmpbuf)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
374 (setq do-select (y-or-n-p "Select these packages? "))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
375 (kill-buffer tmpbuf))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
376 (if do-select
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
377 (progn
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
378 (setq pui-selected-packages
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
379 (union pui-selected-packages dependencies))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
380 (map-extents #'(lambda (extent maparg)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
381 (pui-update-package-display extent))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
382 nil nil nil nil nil 'pui)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
383 (message "added dependencies"))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
384 (clear-message)))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
385 (error "No packages have been selected!"))))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
386
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
387 (defun pui-help-echo (extent &optional force-update)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
388 "Display additional package info in the modeline.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
389 EXTENT determines the package to display (the package information is
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
390 attached to the extent as properties)."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
391 (let (pkg-sym info inst-ver auth-ver date maintainer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
392 (if (or force-update (not (current-message))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
393 (string-match ".*: .*: " (current-message))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
394 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
395 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
396 (setq pkg-sym (extent-property extent 'pui-package)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
397 info (extent-property extent 'pui-info)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
398 inst-ver (package-get-key pkg-sym :version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
399 auth-ver (package-get-info-prop info 'author-version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
400 date (package-get-info-prop info 'date)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
401 maintainer (package-get-info-prop info 'maintainer))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
402 (if (not inst-ver)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
403 (setq inst-ver ""))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
404 (if pui-list-verbose
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
405 (format "Author version: %-8s %11s: %s"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
406 auth-ver date maintainer)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
407 (format "%-6s: %-8s %11s: %s"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
408 inst-ver auth-ver date maintainer))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
409 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
410 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
411
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
412 (defun pui-display-info (&optional no-error)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
413 "Display additional package info in the modeline.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
414 Designed to be called interactively (from a keypress)."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
415 (interactive)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
416 (let (extent)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
417 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
418 (beginning-of-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
419 (if (setq extent (extent-at (point) (current-buffer) 'pui))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
420 (message (pui-help-echo extent t))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
421 (if no-error
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
422 (clear-message nil)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
423 (error "No package under cursor!")))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
424 )))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
425
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
426 (defun pui-help-string ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
427 "Return the help string for the package-info buffer.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
428 This is not a defconst because of the call to substitute-command-keys."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
429 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
430 (set-buffer (get-buffer pui-info-buffer))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
431 (substitute-command-keys
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
432 "Symbols in the leftmost column:
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
433
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
434 + The package is marked for installation.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
435 - The package has not been installed.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
436 * The currently installed package is old, and a newer version is
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
437 available.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
438
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
439 Useful keys:
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
440
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
441 `\\[pui-toggle-package-key]' to select/unselect the current package for installation.
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
442 `\\[pui-add-required-packages]' to add any packages required by those selected.
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
443 `\\[pui-install-selected-packages]' to install selected packages.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
444 `\\[pui-display-info]' to display additional information about the package in the modeline.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
445 `\\[pui-list-packages]' to refresh the package list.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
446 `\\[pui-toggle-verbosity-redisplay]' to toggle between a verbose and non-verbose display.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
447 `\\[pui-quit]' to kill this buffer.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
448 ")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
449 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
450
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
451 (defvar pui-menu
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
452 '("Packages"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
453 ["Select" pui-toggle-package-key t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
454 ["Info" pui-display-info t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
455 "---"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
456 ["Add Required" pui-add-required-packages t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
457 ["Install Selected" pui-install-selected-packages t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
458 "---"
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
459 ["Verbose" pui-toggle-verbosity-redisplay
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
460 :active t :style toggle :selected pui-list-verbose]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
461 ["Refresh" pui-list-packages t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
462 ["Help" pui-help t]
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
463 ["Quit" pui-quit t]))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
464
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
465
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
466 ;;;###autoload
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
467 (defun pui-list-packages ()
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
468 "List all packages and package information.
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
469 The package name, version, and description are displayed. From the displayed
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
470 buffer, the user can see which packages are installed, which are not, and
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
471 which are out-of-date (a newer version is available). The user can then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
472 select packages for installation via the keyboard or mouse."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
473 (interactive)
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
474 (package-get-require-base)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
475 (let ( (outbuf (get-buffer-create pui-info-buffer))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
476 (sep-string "===============================================================================\n")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
477 start )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
478 (message "Creating package list ...") (sit-for 0)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
479 (set-buffer outbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
480 (setq buffer-read-only nil)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
481 (buffer-disable-undo outbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
482 (erase-buffer outbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
483 (use-local-map pui-display-keymap)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
484 (if pui-list-verbose
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
485 (insert " Latest Installed
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
486 Package name Vers. Vers. Description
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
487 ")
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
488 (insert " Latest
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
489 Package name Vers. Description
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
490 "))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
491 (insert sep-string)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
492 (setq start (point))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
493 (mapcar '(lambda (pkg)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
494 (let (pkg-sym info version desc
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
495 b e extent current-vers disp)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
496 (setq pkg-sym (car pkg)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
497 info (package-get-info-version (cdr pkg) nil))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
498 (setq version (package-get-info-prop info 'version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
499 desc (package-get-info-prop info 'description))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
500
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
501 (setq disp (pui-package-symbol-char pkg-sym
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
502 version))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
503 (setq b (point))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
504 (if pui-list-verbose
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
505 (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
506 (setq current-vers (package-get-key pkg-sym :version))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
507 (cond
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
508 ( (not current-vers)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
509 (setq current-vers "-----") )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
510 ( (stringp current-vers)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
511 (setq current-vers
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
512 (format "%.2f"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
513 (string-to-number current-vers))) )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
514 ( (numberp current-vers)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
515 (setq current-vers (format "%.2f" current-vers)) )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
516 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
517 (insert
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
518 (format "%s %-15s %-5.2f %-5s %s\n"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
519 (car disp) pkg-sym
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
520 (if (stringp version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
521 (string-to-number version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
522 version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
523 current-vers desc))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
524 ;; (insert
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
525 ;; (format "\t\t %-12s %s\n"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
526 ;; (package-get-info-prop info 'author-version)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
527 ;; (package-get-info-prop info 'date)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
528 ;; ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
529 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
530 (insert (format "%s %-15s %-5s %s\n"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
531 (car disp)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
532 pkg-sym version desc)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
533 (save-excursion
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
534 (setq e (progn
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
535 (forward-line -1)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
536 (end-of-line)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
537 (point)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
538 )
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
539 (setq extent (make-extent b e))
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
540 (if (car (cdr disp))
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
541 (set-extent-face extent (get-face (car (cdr disp))))
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
542 (set-extent-face extent (get-face 'default)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
543 (set-extent-property extent 'highlight t)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
544 (set-extent-property extent 'pui t)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
545 (set-extent-property extent 'pui-package pkg-sym)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
546 (set-extent-property extent 'pui-info info)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
547 (set-extent-property extent 'help-echo 'pui-help-echo)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
548 (set-extent-property extent 'keymap pui-package-keymap)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
549 )) (sort (copy-sequence package-get-base)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
550 '(lambda (a b)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
551 (string< (symbol-name (car a))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
552 (symbol-name (car b)))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
553 )))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
554 (insert sep-string)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
555 (insert (pui-help-string))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
556 (set-buffer-modified-p nil)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
557 (setq buffer-read-only t)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
558 (pop-to-buffer outbuf)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
559 (delete-other-windows)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
560 (goto-char start)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
561 (setq pui-selected-packages nil) ; Reset list
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
562 (when (featurep 'menubar)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
563 (set-buffer-menubar current-menubar)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
564 (add-submenu '() pui-menu)
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
565 (setq mode-popup-menu pui-menu))
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
566 (clear-message)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
567 ; (message (substitute-command-keys "Press `\\[pui-help]' for help."))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
568 ))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
569
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
570
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
571 (provide 'package-ui)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
572
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents:
diff changeset
573 ;;; package-ui.el ends here