diff options
| author | Reiner Steib | 2008-04-12 10:06:28 +0000 |
|---|---|---|
| committer | Reiner Steib | 2008-04-12 10:06:28 +0000 |
| commit | 470fc3548e6d31ee172802c7ff3b1c97988c9ff5 (patch) | |
| tree | 348a35061dc858c1becdab51b401dab70079805c | |
| parent | c12b5b0035577589609f902d8069b3ba9839acb2 (diff) | |
| download | emacs-470fc3548e6d31ee172802c7ff3b1c97988c9ff5.tar.gz emacs-470fc3548e6d31ee172802c7ff3b1c97988c9ff5.zip | |
(copyright-update-directory): New command.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 253c2db6c72..763c1f3413f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-04-12 Reiner Steib <Reiner.Steib@gmx.de> | 1 | 2008-04-12 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 2 | ||
| 3 | * emacs-lisp/copyright.el (copyright-update-directory): New | ||
| 4 | command. | ||
| 5 | |||
| 3 | * ediff-wind.el (ediff-split-window-function) | 6 | * ediff-wind.el (ediff-split-window-function) |
| 4 | (ediff-merge-split-window-function): Improve custom type. | 7 | (ediff-merge-split-window-function): Improve custom type. |
| 5 | 8 | ||
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index d745a245e8e..910ac9eaa23 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -255,6 +255,16 @@ Uses heuristic: year >= 50 means 19xx, < 50 means 20xx." | |||
| 255 | (message "Copyright extends beyond `copyright-limit' and won't be updated automatically.")) | 255 | (message "Copyright extends beyond `copyright-limit' and won't be updated automatically.")) |
| 256 | comment-end \n) | 256 | comment-end \n) |
| 257 | 257 | ||
| 258 | (defun copyright-update-directory (directory match) | ||
| 259 | "Update copyright notice for all files in DIRECTORY matching MATCH." | ||
| 260 | (interactive "DDirectory: \nMFilenames matching: ") | ||
| 261 | (dolist (file (directory-files directory t match nil)) | ||
| 262 | (find-file file) | ||
| 263 | (let ((copyright-query nil)) | ||
| 264 | (copyright-update)) | ||
| 265 | (save-buffer) | ||
| 266 | (kill-buffer (current-buffer)))) | ||
| 267 | |||
| 258 | (provide 'copyright) | 268 | (provide 'copyright) |
| 259 | 269 | ||
| 260 | ;; For the copyright sign: | 270 | ;; For the copyright sign: |