summaryrefslogtreecommitdiff
path: root/lisp/pcmpl-rpm.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-11-03 02:23:46 +0100
committerStefan Kangas <stefan@marxist.se>2020-11-03 02:23:46 +0100
commit0462ba3032633f3de08eb24e1dab89859bb726c7 (patch)
tree0dd610acc785553c40f0003a859db2d886d53741 /lisp/pcmpl-rpm.el
parent499847ab952299f0d978291ed8e84a9b13786e80 (diff)
downloademacs-0462ba3032633f3de08eb24e1dab89859bb726c7.tar.gz
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.
Diffstat (limited to 'lisp/pcmpl-rpm.el')
-rw-r--r--lisp/pcmpl-rpm.el10
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 @@
-;;; pcmpl-rpm.el --- functions for dealing with rpm completions
+;;; pcmpl-rpm.el --- functions for dealing with rpm completions -*- lexical-binding: t -*-
;; Copyright (C) 1999-2020 Free Software Foundation, Inc.
@@ -47,14 +47,12 @@
:version "24.3"
:type '(choice (const :tag "No options" nil)
(string :tag "Single option")
- (repeat :tag "List of options" string))
- :group 'pcmpl-rpm)
+ (repeat :tag "List of options" string)))
(defcustom pcmpl-rpm-cache t
"Whether to cache the list of installed packages."
:version "24.3"
- :type 'boolean
- :group 'pcmpl-rpm)
+ :type 'boolean)
(defconst pcmpl-rpm-cache-stamp-file "/var/lib/rpm/Packages"
"File used to check that the list of installed packages is up-to-date.")
@@ -78,7 +76,7 @@
(message "Getting list of installed rpms...")
(setq pcmpl-rpm-cache-time (current-time)
pcmpl-rpm-packages
- (split-string (apply 'pcomplete-process-result "rpm"
+ (split-string (apply #'pcomplete-process-result "rpm"
(append '("-q" "-a")
(if (stringp pcmpl-rpm-query-options)
(list pcmpl-rpm-query-options)