aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-01-01 14:23:11 +0100
committerStefan Kangas2022-01-01 14:26:39 +0100
commit31fefef4a2f8536a23df94df46ecb4b5b4ff1efe (patch)
tree7991ef3a36de48bf8009ed69a9b7535667763286
parent823b6b8d260e6e5bc0c428c9b3d92b6822624761 (diff)
downloademacs-31fefef4a2f8536a23df94df46ecb4b5b4ff1efe.tar.gz
emacs-31fefef4a2f8536a23df94df46ecb4b5b4ff1efe.zip
elide-head: Support more licenses
* lisp/elide-head.el (elide-head-headers-to-hide): Add support for the Expat License, and more variants of the BSD-2-Clause License. Add old FSF address. This fixes a bug reported in 2003: https://lists.gnu.org/r/bug-gnu-emacs/2003-01/msg00142.html
-rw-r--r--lisp/elide-head.el20
1 files changed, 12 insertions, 8 deletions
diff --git a/lisp/elide-head.el b/lisp/elide-head.el
index d2e3ac6a996..30772fa514b 100644
--- a/lisp/elide-head.el
+++ b/lisp/elide-head.el
@@ -50,13 +50,16 @@
50 :group 'tools) 50 :group 'tools)
51 51
52(defcustom elide-head-headers-to-hide 52(defcustom elide-head-headers-to-hide
53 '(("is free software[:;] you can redistribute it" . ; GNU boilerplate 53 `(("is free software[:;] you can redistribute it" . ; GNU boilerplate
54 "\\(Boston, MA 0211\\(1-1307\\|0-1301\\), USA\\|\ 54 "\\(If not, see <https?://www\\.gnu\\.org/licenses/>\\|\
55If not, see <https?://www\\.gnu\\.org/licenses/>\\)\\.") 55Boston, MA 0211\\(1-1307\\|0-1301\\), USA\\|\
56 ("The Regents of the University of California\\. All rights reserved\\." . 56675 Mass Ave, Cambridge, MA 02139, USA\\)\\.")
57 "SUCH DAMAGE\\.") ; BSD 57 (,(rx (or "The Regents of the University of California. All rights reserved."
58 ("Permission is hereby granted, free of charge" . ; X11 58 "Redistribution and use in source and binary"))
59 "authorization from the X Consortium\\.")) 59 . "THE POSSIBILITY OF SUCH DAMAGE\\.") ; BSD
60 ("Permission is hereby granted, free of charge" .
61 ,(rx (or "authorization from the X Consortium." ; X11
62 "THE USE OR OTHER DEALINGS IN THE SOFTWARE.")))) ; Expat
60 "Alist of regexps defining start and end of text to elide. 63 "Alist of regexps defining start and end of text to elide.
61 64
62The cars of elements of the list are searched for in order. Text is 65The cars of elements of the list are searched for in order. Text is
@@ -64,7 +67,8 @@ elided with an invisible overlay from the end of the line where the
64first match is found to the end of the match for the corresponding 67first match is found to the end of the match for the corresponding
65cdr." 68cdr."
66 :type '(alist :key-type (regexp :tag "Start regexp") 69 :type '(alist :key-type (regexp :tag "Start regexp")
67 :value-type (regexp :tag "End regexp"))) 70 :value-type (regexp :tag "End regexp"))
71 :version "29.1")
68 72
69(defvar-local elide-head-overlay nil) 73(defvar-local elide-head-overlay nil)
70 74