diff options
| author | Stefan Monnier | 2007-10-03 23:42:06 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-03 23:42:06 +0000 |
| commit | 2cb250dd39044b7d07cb62267e04f43b079c0dab (patch) | |
| tree | 3336ff3b8aa74d9762569ec4e5c07fb5d657648f | |
| parent | e48a5bf9ddcf13d87aa4964de40df063333ce37e (diff) | |
| download | emacs-2cb250dd39044b7d07cb62267e04f43b079c0dab.tar.gz emacs-2cb250dd39044b7d07cb62267e04f43b079c0dab.zip | |
(copyright-update): Don't update if the file
already uses a more recent copyright version than the "current" one.
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 9 |
2 files changed, 19 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 72087863880..a4a176024fa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/copyright.el (copyright-update): Don't update if the file | ||
| 4 | already uses a more recent copyright version than the "current" one. | ||
| 5 | |||
| 1 | 2007-10-03 Micha,Ak(Bl Cadilhac <michael@cadilhac.name> | 6 | 2007-10-03 Micha,Ak(Bl Cadilhac <michael@cadilhac.name> |
| 2 | 7 | ||
| 3 | * doc-view.el (doc-view-dvi->pdf-sentinel, doc-view-reset-slice) | 8 | * doc-view.el (doc-view-dvi->pdf-sentinel, doc-view-reset-slice) |
| @@ -12,9 +17,9 @@ | |||
| 12 | 2007-10-03 Michael Albinus <michael.albinus@gmx.de> | 17 | 2007-10-03 Michael Albinus <michael.albinus@gmx.de> |
| 13 | 18 | ||
| 14 | * net/tramp.el (top): Add tramp-compat to `tramp-unload-hook'. | 19 | * net/tramp.el (top): Add tramp-compat to `tramp-unload-hook'. |
| 15 | (tramp-file-name-handler-alist): Add | 20 | (tramp-file-name-handler-alist): |
| 16 | `tramp-handle-insert-file-contents-literally'. Neded for XEmacs. | 21 | Add `tramp-handle-insert-file-contents-literally'. Needed for XEmacs. |
| 17 | (tramp-make-temp-file): Use `make-temp-name'. `make-temp-file', | 22 | (tramp-make-temp-file): Use `make-temp-name'. `make-temp-file', |
| 18 | used before, creates the file already, which is not desired. | 23 | used before, creates the file already, which is not desired. |
| 19 | (tramp-do-copy-or-rename-file-directly): Simplify handling of | 24 | (tramp-do-copy-or-rename-file-directly): Simplify handling of |
| 20 | temporary file. | 25 | temporary file. |
| @@ -32,8 +37,7 @@ | |||
| 32 | order to avoid autoloading problems. | 37 | order to avoid autoloading problems. |
| 33 | 38 | ||
| 34 | * net/tramp-fish.el: | 39 | * net/tramp-fish.el: |
| 35 | * net/tramp-smb.el: Move further compatibility code to | 40 | * net/tramp-smb.el: Move further compatibility code to tramp-compat.el. |
| 36 | tramp-compat.el. | ||
| 37 | 41 | ||
| 38 | * net/tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case | 42 | * net/tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case |
| 39 | where the second parameter of `copy-file' or `rename-file' is a | 43 | where the second parameter of `copy-file' or `rename-file' is a |
| @@ -71,14 +75,14 @@ | |||
| 71 | shrunk, tail the whole file again (the file presumably has been | 75 | shrunk, tail the whole file again (the file presumably has been |
| 72 | rewritten). | 76 | rewritten). |
| 73 | 77 | ||
| 74 | * woman.el (woman-topic-all-completions, woman-mini-help): Fix | 78 | * woman.el (woman-topic-all-completions, woman-mini-help): |
| 75 | fallout from 2007-09-07 introduction of `dolist' when the list | 79 | Fix fallout from 2007-09-07 introduction of `dolist' when the list |
| 76 | actually was being manipulated in the loop. | 80 | actually was being manipulated in the loop. |
| 77 | (woman-Cyg-to-Win, woman-pre-process-region) | 81 | (woman-Cyg-to-Win, woman-pre-process-region) |
| 78 | (woman-horizontal-escapes, woman-if-body, woman-unescape) | 82 | (woman-horizontal-escapes, woman-if-body, woman-unescape) |
| 79 | (woman-strings, woman-special-characters, woman1-hc) | 83 | (woman-strings, woman-special-characters, woman1-hc) |
| 80 | (woman-change-fonts, woman-find-next-control-line): Use | 84 | (woman-change-fonts, woman-find-next-control-line): |
| 81 | `match-beginning' rather than `match-string' when the result is | 85 | Use `match-beginning' rather than `match-string' when the result is |
| 82 | just used as a flag. | 86 | just used as a flag. |
| 83 | 87 | ||
| 84 | 2007-09-30 Michael Albinus <michael.albinus@gmx.de> | 88 | 2007-09-30 Michael Albinus <michael.albinus@gmx.de> |
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 318dcf611e3..b53ec9c217b 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -186,10 +186,13 @@ interactively." | |||
| 186 | either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)\ | 186 | either \\|; a\\^u eldono \\([0-9]+\\)a, ? a\\^u (la\\^u via \\)\ |
| 187 | version \\([0-9]+\\), or (at" | 187 | version \\([0-9]+\\), or (at" |
| 188 | (copyright-limit) t) | 188 | (copyright-limit) t) |
| 189 | (not (string= (match-string 3) copyright-current-gpl-version)) | 189 | ;; Don't update if the file is already using a more recent |
| 190 | ;; version than the "current" one. | ||
| 191 | (< (string-to-number (match-string 3)) | ||
| 192 | (string-to-number copyright-current-gpl-version)) | ||
| 190 | (or noquery | 193 | (or noquery |
| 191 | (y-or-n-p (concat "Replace GPL version by " | 194 | (y-or-n-p (format "Replace GPL version by %s? " |
| 192 | copyright-current-gpl-version "? "))) | 195 | copyright-current-gpl-version))) |
| 193 | (progn | 196 | (progn |
| 194 | (if (match-end 2) | 197 | (if (match-end 2) |
| 195 | ;; Esperanto bilingual comment in two-column.el | 198 | ;; Esperanto bilingual comment in two-column.el |