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
4182531c
Commit
4182531c
authored
Jan 03, 2009
by
Reiner Steib
Browse files
(copyright-update-directory): Autoload.
Clarify MATCH argument. Print filenames.
parent
29659067
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/copyright.el
lisp/emacs-lisp/copyright.el
+4
-2
No files found.
lisp/ChangeLog
View file @
4182531c
2009-01-03 Reiner Steib <Reiner.Steib@gmx.de>
* emacs-lisp/copyright.el (copyright-update-directory): Autoload.
Clarify MATCH argument. Print filenames.
2009-01-03 Michael Albinus <michael.albinus@gmx.de>
* net/dbus.el (dbus-string-to-byte-array): Handle empty string.
...
...
lisp/emacs-lisp/copyright.el
View file @
4182531c
;;; copyright.el --- update the copyright notice in current buffer
;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1998, 2001, 2002, 2003,
;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; 2004, 2005, 2006, 2007, 2008
, 2009
Free Software Foundation, Inc.
;; Author: Daniel Pfeiffer <occitan@esperanto.org>
;; Keywords: maint, tools
...
...
@@ -282,10 +282,12 @@ Uses heuristic: year >= 50 means 19xx, < 50 means 20xx."
(message "
Copyright
extends
beyond
`
copyright-limit
'
and
won
't
be
updated
automatically.
"))
comment-end \n)
;;;###autoload
(defun copyright-update-directory (directory match)
"
Update
copyright
notice
for
all
files
in
DIRECTORY
matching
MATCH.
"
(interactive "
DDirectory:
\nMFilenames
matching:
"
)
(interactive "
DDirectory:
\nMFilenames
matching
(
regexp
)
:
")
(dolist (file (directory-files directory t match nil))
(message "
Updating
file
`
%s
'
"
file
)
(
find-file
file
)
(
let
((
copyright-query
nil
))
(
copyright-update
))
...
...
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