diff options
| author | Glenn Morris | 2012-06-22 09:00:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-06-22 09:00:34 -0700 |
| commit | b57b344b51c06239b4f3584f9ab946dd48c60bb2 (patch) | |
| tree | 1e7513c58774fb5eb0505f44bd5fe29b4e430247 /lisp | |
| parent | 76386c5a9856e58e97194ff7d128062afb36241d (diff) | |
| download | emacs-b57b344b51c06239b4f3584f9ab946dd48c60bb2.tar.gz emacs-b57b344b51c06239b4f3584f9ab946dd48c60bb2.zip | |
Improve pcmpl-rpm-query-options custom type
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/pcmpl-rpm.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/pcmpl-rpm.el b/lisp/pcmpl-rpm.el index 12fce363804..4afda82ff91 100644 --- a/lisp/pcmpl-rpm.el +++ b/lisp/pcmpl-rpm.el | |||
| @@ -43,9 +43,11 @@ | |||
| 43 | (if (search-forward "--nosignature " nil t) | 43 | (if (search-forward "--nosignature " nil t) |
| 44 | (push "--nosignature" opts)))) | 44 | (push "--nosignature" opts)))) |
| 45 | opts) | 45 | opts) |
| 46 | "List of extra options to add to an rpm query command." | 46 | "String, or list of strings, with extra options for an rpm query command." |
| 47 | :version "24.2" | 47 | :version "24.2" |
| 48 | :type '(repeat string) | 48 | :type '(choice (const :tag "No options" nil) |
| 49 | (string :tag "Single option") | ||
| 50 | (repeat :tag "List of options" string)) | ||
| 49 | :group 'pcmpl-rpm) | 51 | :group 'pcmpl-rpm) |
| 50 | 52 | ||
| 51 | (defcustom pcmpl-rpm-cache t | 53 | (defcustom pcmpl-rpm-cache t |
| @@ -78,7 +80,9 @@ | |||
| 78 | pcmpl-rpm-packages | 80 | pcmpl-rpm-packages |
| 79 | (split-string (apply 'pcomplete-process-result "rpm" | 81 | (split-string (apply 'pcomplete-process-result "rpm" |
| 80 | (append '("-q" "-a") | 82 | (append '("-q" "-a") |
| 81 | pcmpl-rpm-query-options)))))) | 83 | (if (stringp pcmpl-rpm-query-options) |
| 84 | (list pcmpl-rpm-query-options) | ||
| 85 | pcmpl-rpm-query-options))))))) | ||
| 82 | 86 | ||
| 83 | ;; Should this use pcmpl-rpm-query-options? | 87 | ;; Should this use pcmpl-rpm-query-options? |
| 84 | ;; I don't think it would speed it up at all (?). | 88 | ;; I don't think it would speed it up at all (?). |