summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/copyright.el
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2004-01-06 17:09:40 +0000
committerKaroly Lorentey <lorentey@elte.hu>2004-01-06 17:09:40 +0000
commit12e1ee02b6f80a3e06f3ffb98f85e2023102f1e8 (patch)
tree0a3665678bb4ba266d3f6c40af86ecc72f6dccff /lisp/emacs-lisp/copyright.el
parent0221d2bfcbc9a3571fdbfbf3d8ad464aae4ffd24 (diff)
parent2e3b4a0b359380880d5dad013a3286a6217e2ae2 (diff)
downloademacs-12e1ee02b6f80a3e06f3ffb98f85e2023102f1e8.tar.gz
emacs-12e1ee02b6f80a3e06f3ffb98f85e2023102f1e8.tar.bz2
emacs-12e1ee02b6f80a3e06f3ffb98f85e2023102f1e8.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-19 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-20 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-21 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-46
Diffstat (limited to 'lisp/emacs-lisp/copyright.el')
-rw-r--r--lisp/emacs-lisp/copyright.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index 4532f7e5b77..6a95c60f859 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -27,7 +27,8 @@
;; Allows updating the copyright year and above mentioned GPL version manually
;; or when saving a file.
-;; Do (add-hook 'write-file-functions 'copyright-update).
+;; Do (add-hook 'before-save-hook 'copyright-update), or use
+;; M-x customize-variable RET before-save-hook RET.
;;; Code:
@@ -47,7 +48,7 @@ A value of nil means to search whole buffer."
(defcustom copyright-regexp
"\\([]\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
\\|[Cc]opyright\\s *:?\\s *[]\\)\
-\\s *\\([1-9]\\([-0-9, ';%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
+\\s *\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
"*What your copyright notice looks like.
The second \\( \\) construct must match the years."
:group 'copyright