aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-06-22 21:02:17 -0400
committerGlenn Morris2012-06-22 21:02:17 -0400
commit7117e105bb5cb268e5d6b233b284e8401134ad09 (patch)
tree32caeb5c1a35ef23306c52c9bb6daf3f53618eda
parentc8fff8630133fea7c4e279458d10d825e5028c62 (diff)
downloademacs-7117e105bb5cb268e5d6b233b284e8401134ad09.tar.gz
emacs-7117e105bb5cb268e5d6b233b284e8401134ad09.zip
* lisp/pcmpl-rpm.el (pcmpl-rpm-packages): Give status messages.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/pcmpl-rpm.el7
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4a92a427342..2763234e05a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-06-23 Glenn Morris <rgm@gnu.org>
2
3 * pcmpl-rpm.el (pcmpl-rpm-packages): Give status messages.
4
12012-06-22 Stefan Monnier <monnier@iro.umontreal.ca> 52012-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 Further GV/CL cleanups. 7 Further GV/CL cleanups.
diff --git a/lisp/pcmpl-rpm.el b/lisp/pcmpl-rpm.el
index 4afda82ff91..e637c3407f0 100644
--- a/lisp/pcmpl-rpm.el
+++ b/lisp/pcmpl-rpm.el
@@ -67,8 +67,6 @@
67 67
68;; Functions: 68;; Functions:
69 69
70;; This can be slow, so:
71;; Consider printing an explanatory message before running -qa.
72(defun pcmpl-rpm-packages () 70(defun pcmpl-rpm-packages ()
73 "Return a list of all installed rpm packages." 71 "Return a list of all installed rpm packages."
74 (if (and pcmpl-rpm-cache 72 (if (and pcmpl-rpm-cache
@@ -76,13 +74,16 @@
76 (let ((mtime (nth 5 (file-attributes pcmpl-rpm-cache-stamp-file)))) 74 (let ((mtime (nth 5 (file-attributes pcmpl-rpm-cache-stamp-file))))
77 (and mtime (not (time-less-p pcmpl-rpm-cache-time mtime))))) 75 (and mtime (not (time-less-p pcmpl-rpm-cache-time mtime)))))
78 pcmpl-rpm-packages 76 pcmpl-rpm-packages
77 (message "Getting list of installed rpms...")
79 (setq pcmpl-rpm-cache-time (current-time) 78 (setq pcmpl-rpm-cache-time (current-time)
80 pcmpl-rpm-packages 79 pcmpl-rpm-packages
81 (split-string (apply 'pcomplete-process-result "rpm" 80 (split-string (apply 'pcomplete-process-result "rpm"
82 (append '("-q" "-a") 81 (append '("-q" "-a")
83 (if (stringp pcmpl-rpm-query-options) 82 (if (stringp pcmpl-rpm-query-options)
84 (list pcmpl-rpm-query-options) 83 (list pcmpl-rpm-query-options)
85 pcmpl-rpm-query-options))))))) 84 pcmpl-rpm-query-options)))))
85 (message "Getting list of installed rpms...done")
86 pcmpl-rpm-packages))
86 87
87;; Should this use pcmpl-rpm-query-options? 88;; Should this use pcmpl-rpm-query-options?
88;; I don't think it would speed it up at all (?). 89;; I don't think it would speed it up at all (?).