2008-04-12 Reiner Steib <Reiner.Steib@gmx.de>
+ * emacs-lisp/copyright.el (copyright-update-directory): New
+ command.
+
* ediff-wind.el (ediff-split-window-function)
(ediff-merge-split-window-function): Improve custom type.
(message "Copyright extends beyond `copyright-limit' and won't be updated automatically."))
comment-end \n)
+(defun copyright-update-directory (directory match)
+ "Update copyright notice for all files in DIRECTORY matching MATCH."
+ (interactive "DDirectory: \nMFilenames matching: ")
+ (dolist (file (directory-files directory t match nil))
+ (find-file file)
+ (let ((copyright-query nil))
+ (copyright-update))
+ (save-buffer)
+ (kill-buffer (current-buffer))))
+
(provide 'copyright)
;; For the copyright sign: