mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 13:27:36 +00:00
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.
This commit is contained in:
parent
fb0ff54eb4
commit
efc44727da
2 changed files with 29 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue