Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3f251fcd
Commit
3f251fcd
authored
Apr 01, 1998
by
Andreas Schwab
Browse files
Customized.
parent
04d807e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
lisp/emacs-lisp/copyright.el
lisp/emacs-lisp/copyright.el
+20
-7
No files found.
lisp/emacs-lisp/copyright.el
View file @
3f251fcd
;;; copyright.el --- update the copyright notice in current buffer
;; Copyright (C) 1991, 1992
,
199
3
, 199
4, 1995
Free Software Foundation, Inc.
;; Copyright (C) 1991, 1992
-
199
5
, 199
8
Free Software Foundation, Inc.
;; Author: Daniel.Pfeiffer@Informatik.START.dbp.de
;; fax (+49 69) 7588-2389
...
...
@@ -30,22 +30,35 @@
;;; Code:
(
defvar
copyright-limit
2000
(
defgroup
copyright
nil
"Update the copyright notice in current buffer."
:group
'tools
)
(
defcustom
copyright-limit
2000
"*Don't try to update copyright beyond this position unless interactive.
`nil' means to search whole buffer."
)
`nil' means to search whole buffer."
:group
'copyright
:type
'
(
choice
(
integer
:tag
"Limit"
)
(
const
:tag
"No limit"
)))
(
def
var
copyright-regexp
(
def
custom
copyright-regexp
"
\\
(
[
©
\251]\\|@copyright{}\\|[Cc]opyright\\s
*:?\\s
*
(
C
)
\
\\|[Cc]opyright\\s *:?\\s *[©\251]\\)\
\\s *\\([1-9][-0-9, ']*[0-9]+\\) "
"*What your copyright notice looks like.
The second \\( \\) construct must match the years.")
The second \\( \\) construct must match the years."
:group 'copyright
:type 'regexp)
(def
var
copyright-query 'function
(def
custom
copyright-query 'function
"*If non-`nil', ask user before changing copyright.
When this is `function', only ask when called non-interactively.")
When this is `function', only ask when called non-interactively."
:group 'copyright
:type '(choice (const :tag "Do not ask")
(const :tag "Ask" t)
(const :tag "Ask unless interactive" function)))
(defconst copyright-current-year (substring (current-time-string) -4)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment