From: Stefan Kangas Date: Tue, 27 Dec 2022 17:12:02 +0000 (+0100) Subject: Support Apache License 2.0 in elide-head-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=efc44727daaee4d3f9aeb19864074472e99b296a;p=emacs.git Support Apache License 2.0 in elide-head-mode * lisp/elide-head.el (elide-head-headers-to-hide): Add the Apache License, Version 2.0. * test/lisp/elide-head-tests.el (apache1-1): New test. --- diff --git a/lisp/elide-head.el b/lisp/elide-head.el index 7f565d346d4..71e7e67e3f7 100644 --- a/lisp/elide-head.el +++ b/lisp/elide-head.el @@ -79,8 +79,12 @@ . "POSSIBILITY OF SUCH DAMAGE\\.") ;; X11 and Expat ("Permission is hereby granted, free of charge" . - ,(rx (or "authorization from the X Consortium." ; X11 - "THE USE OR OTHER DEALINGS IN THE SOFTWARE."))))) ; Expat + ,(rx (or "authorization from the X Consortium." ; X11 + "THE USE OR OTHER DEALINGS IN THE SOFTWARE."))) ; Expat + ;; Apache + ("Licensed under the Apache License, Version 2.0" . + "limitations under the License.") + )) "Alist of regexps defining start and end of text to elide. The cars of elements of the list are searched for in order. Text is @@ -91,7 +95,7 @@ cdr. This affects `elide-head-mode'." :type '(alist :key-type (regexp :tag "Start regexp") :value-type (regexp :tag "End regexp")) - :version "29.1") + :version "30.1") (defvar-local elide-head-overlay nil) diff --git a/test/lisp/elide-head-tests.el b/test/lisp/elide-head-tests.el index 293fb0dc09d..3d6e7686935 100644 --- a/test/lisp/elide-head-tests.el +++ b/test/lisp/elide-head-tests.el @@ -284,6 +284,28 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. " "This program is distributed in the hope that") + +;;; Apache License + +(elide-head--add-test apache1-1 "\ +/* + * Copyright 2011-2016 The Pkcs11Interop Project + * + * Licensed under the Apache License, Version 2.0 (the \"License\"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an \"AS IS\" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +" "Unless required by applicable law") + + ;;; Obsolete