Skip to content

Commit

Permalink
elx-license-substitutions: Allow matching lack of license
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Mar 21, 2022
1 parent a457a59 commit fb5fe4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions elx.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; elx.el --- extract information from Emacs Lisp libraries -*- lexical-binding: t -*-

;; Copyright (C) 2008-2021 Jonas Bernoulli
;; Copyright (C) 2008-2022 Jonas Bernoulli

;; Author: Jonas Bernoulli <[email protected]>
;; Created: 20081202
Expand Down Expand Up @@ -912,14 +912,15 @@ Public License as published by the Free Software Foundation\\.")) ; lmselect, ti
(defcustom elx-license-substitutions nil
"License substitutions performed `elx-license'.
A list of the form ((NAME STRING SUBSTITUTE)...). Each element
A list of the form ((NAME FOUND SUBSTITUTE)...). Each element
is tried in order. If NAME is nil or the PACKAGE-NAME argument
is NAME, and the license that would be returned is STRING, then
is NAME, and the license that would be returned is FOUND, then
`elx-license' returns SUBSTITUTE instead."
:group 'elx
:type '(repeat (list (choice (string :tag "Package")
(const :tag "All packages" nil))
(string :tag "Replace string")
(choice (string :tag "Replace license")
(const :tag "No license"))
(string :tag "Substitute"))))

(defcustom elx-license-use-licensee t
Expand Down

0 comments on commit fb5fe4e

Please sign in to comment.