Mercurial > emacs
annotate lisp/emacs-lisp/copyright.el @ 17803:906dcb974266
Don't include term.el.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 14 May 1997 19:51:33 +0000 |
parents | 5f9cf553d44b |
children | 727cf56647a4 |
rev | line source |
---|---|
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
1 ;;; copyright.el --- update the copyright notice in current buffer |
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
611
diff
changeset
|
2 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
3 ;; Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. |
841 | 4 |
12518
b832e70e3258
Fixed Author: comment. This code bears no relation to what I wrote.
Roland McGrath <roland@gnu.org>
parents:
12503
diff
changeset
|
5 ;; Author: Daniel.Pfeiffer@Informatik.START.dbp.de, fax (+49 69) 7588-2389 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
6 ;; Keywords: maint, tools |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
7 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
8 ;; This file is part of GNU Emacs. |
773
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
718
diff
changeset
|
9 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
11 ;; it under the terms of the GNU General Public License as published by |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
13 ;; any later version. |
841 | 14 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
15 ;; GNU Emacs is distributed in the hope that it will be useful, |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
18 ;; GNU General Public License for more details. |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
19 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
14169 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
24 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
25 ;;; Commentary: |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
26 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
27 ;; Allows updating the copyright year and above mentioned GPL version manually |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
28 ;; or when saving a file. Do (add-hook 'write-file-hooks 'copyright-update). |
288 | 29 |
773
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
718
diff
changeset
|
30 ;;; Code: |
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
718
diff
changeset
|
31 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
32 (defvar copyright-limit 2000 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
33 "*Don't try to update copyright beyond this position unless interactive. |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
34 `nil' means to search whole buffer.") |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
35 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
36 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
37 (defvar copyright-regexp |
17203
5f9cf553d44b
(copyright-regexp): Allow "Copyright" and the copyright symbol together.
Richard M. Stallman <rms@gnu.org>
parents:
14169
diff
changeset
|
38 "\\(\251\\|[Cc]opyright\\s *:?\\s *(C)\ |
5f9cf553d44b
(copyright-regexp): Allow "Copyright" and the copyright symbol together.
Richard M. Stallman <rms@gnu.org>
parents:
14169
diff
changeset
|
39 \\|[Cc]opyright\\s *:?\\s *\251\\)\ |
5f9cf553d44b
(copyright-regexp): Allow "Copyright" and the copyright symbol together.
Richard M. Stallman <rms@gnu.org>
parents:
14169
diff
changeset
|
40 \\s *\\([1-9][-0-9, ']*[0-9]+\\) " |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
41 "*What your copyright notice looks like. |
13684
0263e1d2888e
(copyright-regexp): Recognize ISO copyright symbol.
Karl Heuer <kwzh@gnu.org>
parents:
12518
diff
changeset
|
42 The second \\( \\) construct must match the years.") |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
43 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
44 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
45 (defvar copyright-query 'function |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
46 "*If non-`nil', ask user before changing copyright. |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
47 When this is `function', only ask when called non-interactively.") |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
48 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
49 |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
50 (defconst copyright-current-year (substring (current-time-string) -4) |
288 | 51 "String representing the current year.") |
52 | |
53 | |
14040 | 54 ;; when modifying this, also modify the comment generated by autoinsert.el |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
55 (defconst copyright-current-gpl-version "2" |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
56 "String representing the current version of the GPL or `nil'.") |
288 | 57 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
58 (defvar copyright-update t) |
718 | 59 |
288 | 60 ;;;###autoload |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
61 (defun copyright-update (&optional arg) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
62 "Update the copyright notice at the beginning of the buffer to indicate |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
63 the current year. If optional prefix ARG is given replace the years in the |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
64 notice rather than adding the current year after them. If necessary and |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
65 `copyright-current-gpl-version' is set, the copying permissions following the |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
66 copyright, if any, are updated as well." |
288 | 67 (interactive "*P") |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
68 (if copyright-update |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
69 (save-excursion |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
70 (save-restriction |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
71 (widen) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
72 (goto-char (point-min)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
73 (if (re-search-forward copyright-regexp copyright-limit t) |
13684
0263e1d2888e
(copyright-regexp): Recognize ISO copyright symbol.
Karl Heuer <kwzh@gnu.org>
parents:
12518
diff
changeset
|
74 (if (string= (buffer-substring (- (match-end 2) 2) (match-end 2)) |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
75 (substring copyright-current-year -2)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
76 () |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
77 (backward-char 1) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
78 (if (or (not copyright-query) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
79 (and (eq copyright-query 'function) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
80 (eq this-command 'copyright-update)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
81 (y-or-n-p (if arg |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
82 (concat "Replace copyright year(s) by " |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
83 copyright-current-year "? ") |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
84 (concat "Add " copyright-current-year |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
85 " to copyright? ")))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
86 (if arg |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
87 (progn |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
88 (delete-region (match-beginning 1) (match-end 1)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
89 (insert copyright-current-year)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
90 (setq arg (save-excursion (skip-chars-backward "0-9"))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
91 (if (and (eq (% (- (string-to-number |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
92 copyright-current-year) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
93 (string-to-number (buffer-substring |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
94 (+ (point) arg) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
95 (point)))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
96 100) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
97 1) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
98 (or (eq (char-after (+ (point) arg -1)) ?-) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
99 (eq (char-after (+ (point) arg -2)) ?-))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
100 (delete-char arg) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
101 (insert ", ") |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
102 (if (eq (char-after (+ (point) arg -3)) ?') |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
103 (insert ?'))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
104 (insert (substring copyright-current-year arg)))))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
105 (goto-char (point-min)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
106 (and copyright-current-gpl-version |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
107 ;; match the GPL version comment in .el files, including the |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
108 ;; bilingual Esperanto one in two-column, and in texinfo.tex |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
109 (re-search-forward "\\(the Free Software Foundation; either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)version \\([0-9]+\\), or (at" |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
110 copyright-limit t) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
111 (not (string= (buffer-substring (match-beginning 3) (match-end 3)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
112 copyright-current-gpl-version)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
113 (or (not copyright-query) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
114 (and (eq copyright-query 'function) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
115 (eq this-command 'copyright-update)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
116 (y-or-n-p (concat "Replace GPL version by " |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
117 copyright-current-gpl-version "? "))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
118 (progn |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
119 (if (match-end 2) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
120 ;; Esperanto bilingual comment in two-column.el |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
121 (progn |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
122 (delete-region (match-beginning 2) (match-end 2)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
123 (goto-char (match-beginning 2)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
124 (insert copyright-current-gpl-version))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
125 (delete-region (match-beginning 3) (match-end 3)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
126 (goto-char (match-beginning 3)) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
127 (insert copyright-current-gpl-version)))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
128 (set (make-local-variable 'copyright-update) nil))) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
129 ;; If a write-file-hook returns non-nil, the file is presumed to be written. |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
130 nil) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
131 |
581 | 132 |
133 ;;;###autoload | |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
134 (define-skeleton copyright |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
135 "Insert a copyright by $ORGANIZATION notice at cursor." |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
136 "Company: " |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
137 comment-start |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
138 "Copyright (C) " copyright-current-year " by " |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
139 (or (getenv "ORGANIZATION") |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
140 str) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
141 '(if (> (point) copyright-limit) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
142 (message "Copyright extends beyond `copyright-limit' and won't be updated automatically.")) |
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
143 comment-end) |
288 | 144 |
12503
f77164f5bc6b
New name for generalized upd-copyr.el
Karl Heuer <kwzh@gnu.org>
parents:
10510
diff
changeset
|
145 ;; copyright.el ends here |