diff options
| author | Stefan Kangas | 2020-11-03 02:23:46 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-11-03 02:23:46 +0100 |
| commit | 0462ba3032633f3de08eb24e1dab89859bb726c7 (patch) | |
| tree | 0dd610acc785553c40f0003a859db2d886d53741 | |
| parent | 499847ab952299f0d978291ed8e84a9b13786e80 (diff) | |
| download | emacs-0462ba3032633f3de08eb24e1dab89859bb726c7.tar.gz emacs-0462ba3032633f3de08eb24e1dab89859bb726c7.zip | |
Use lexical-binding in pcmpl-rpm.el
* lisp/pcmpl-rpm.el: Use lexical-binding. Remove redundant :group
args.
(pcmpl-rpm-packages): Quote function symbol as such.
| -rw-r--r-- | lisp/pcmpl-rpm.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/pcmpl-rpm.el b/lisp/pcmpl-rpm.el index 52a1dd486bd..efd255908cd 100644 --- a/lisp/pcmpl-rpm.el +++ b/lisp/pcmpl-rpm.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; pcmpl-rpm.el --- functions for dealing with rpm completions | 1 | ;;; pcmpl-rpm.el --- functions for dealing with rpm completions -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999-2020 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1999-2020 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -47,14 +47,12 @@ | |||
| 47 | :version "24.3" | 47 | :version "24.3" |
| 48 | :type '(choice (const :tag "No options" nil) | 48 | :type '(choice (const :tag "No options" nil) |
| 49 | (string :tag "Single option") | 49 | (string :tag "Single option") |
| 50 | (repeat :tag "List of options" string)) | 50 | (repeat :tag "List of options" string))) |
| 51 | :group 'pcmpl-rpm) | ||
| 52 | 51 | ||
| 53 | (defcustom pcmpl-rpm-cache t | 52 | (defcustom pcmpl-rpm-cache t |
| 54 | "Whether to cache the list of installed packages." | 53 | "Whether to cache the list of installed packages." |
| 55 | :version "24.3" | 54 | :version "24.3" |
| 56 | :type 'boolean | 55 | :type 'boolean) |
| 57 | :group 'pcmpl-rpm) | ||
| 58 | 56 | ||
| 59 | (defconst pcmpl-rpm-cache-stamp-file "/var/lib/rpm/Packages" | 57 | (defconst pcmpl-rpm-cache-stamp-file "/var/lib/rpm/Packages" |
| 60 | "File used to check that the list of installed packages is up-to-date.") | 58 | "File used to check that the list of installed packages is up-to-date.") |
| @@ -78,7 +76,7 @@ | |||
| 78 | (message "Getting list of installed rpms...") | 76 | (message "Getting list of installed rpms...") |
| 79 | (setq pcmpl-rpm-cache-time (current-time) | 77 | (setq pcmpl-rpm-cache-time (current-time) |
| 80 | pcmpl-rpm-packages | 78 | pcmpl-rpm-packages |
| 81 | (split-string (apply 'pcomplete-process-result "rpm" | 79 | (split-string (apply #'pcomplete-process-result "rpm" |
| 82 | (append '("-q" "-a") | 80 | (append '("-q" "-a") |
| 83 | (if (stringp pcmpl-rpm-query-options) | 81 | (if (stringp pcmpl-rpm-query-options) |
| 84 | (list pcmpl-rpm-query-options) | 82 | (list pcmpl-rpm-query-options) |