mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-22 21:50:45 -08:00
(copyright-update-directory): New command.
This commit is contained in:
parent
c12b5b0035
commit
470fc3548e
2 changed files with 13 additions and 0 deletions
|
|
@ -255,6 +255,16 @@ Uses heuristic: year >= 50 means 19xx, < 50 means 20xx."
|
|||
(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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue