Skip to content

Commit

Permalink
elx-license: state IANAL and WITHOUT ANY WARRANTY
Browse files Browse the repository at this point in the history
... also provide a definition of the word "unknown".
  • Loading branch information
tarsius committed Jul 12, 2017
1 parent d869cd6 commit 6ce9a2f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion elx.el
Expand Up @@ -232,13 +232,29 @@ version \\(?2:[0-9.]*[0-9]\\)[.,:;]?\
Or the license used for the file that is being visited in the
current buffer if FILE is nil.
*** A value is returned in the hope that it will be useful, but
*** WITHOUT ANY WARRANTY; without even the implied warranty of
*** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This function completely ignores and \"LICENSE\" or similar file
in the proximity of FILE. The returned value is solely based on
the contents of FILE itself.
The license is determined from the permission statement, if any.
Otherwise the value of the \"License\" header keyword is
considered. An effort is made to normalize the returned value."
considered. An effort is made to normalize the returned value.
*** However this function does not always return the correct
*** value and the returned value is not legal advice.
Note in particular that if this function returns nil, then that
merely merely means that it is not known what license applies.
This may be because the library lacks a permission statement
altogether (possibly because an accompanying \"LICENSE\" file
is considered sufficient by the upstream), but it may also be
because this function does not attempt to detect the used
non-standard and/or non-fsf permission statement, or because
of typos in the statement, or for a number of other reasons."
(lm-with-file file
(cl-flet ((format-gnu-abbrev
(&optional object)
Expand Down

0 comments on commit 6ce9a2f

Please sign in to comment.