diff options
| author | Paul Eggert | 2015-09-17 16:08:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-09-17 16:09:39 -0700 |
| commit | 284c470ef752967fcd8bae6a450dc138462b1e49 (patch) | |
| tree | 83e8bcfe4c756e741ee9d4ecdf80f6b8d0e73c91 /lisp/vc | |
| parent | d149ff5233805c0a09b6067e0cf27549291cc83a (diff) | |
| download | emacs-284c470ef752967fcd8bae6a450dc138462b1e49.tar.gz emacs-284c470ef752967fcd8bae6a450dc138462b1e49.zip | |
Backslash cleanup in Elisp source files
This patch should not change behavior. It typically omits backslashes
where they are redundant (e.g., in the string literal "^\$").
In a few places, insert backslashes where they make regular
expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
"^\\*", which has the same effect as a regular expression.
Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
RCS IDs, as that makes it clearer that the backslash is intended.
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/diff-mode.el | 4 | ||||
| -rw-r--r-- | lisp/vc/ediff-diff.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-init.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-ptch.el | 4 | ||||
| -rw-r--r-- | lisp/vc/ediff-util.el | 18 | ||||
| -rw-r--r-- | lisp/vc/ediff-wind.el | 4 | ||||
| -rw-r--r-- | lisp/vc/ediff.el | 4 | ||||
| -rw-r--r-- | lisp/vc/log-edit.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc-annotate.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc-cvs.el | 4 | ||||
| -rw-r--r-- | lisp/vc/vc-rcs.el | 10 | ||||
| -rw-r--r-- | lisp/vc/vc-svn.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 6 |
13 files changed, 32 insertions, 32 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 37ed4a53b44..464e3754eb9 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -1427,8 +1427,8 @@ modified lines of the diff." | |||
| 1427 | (diff-hunk-style))))) | 1427 | (diff-hunk-style))))) |
| 1428 | (set (make-local-variable 'whitespace-trailing-regexp) | 1428 | (set (make-local-variable 'whitespace-trailing-regexp) |
| 1429 | (if (eq style 'context) | 1429 | (if (eq style 'context) |
| 1430 | "^[-\+!] .*?\\([\t ]+\\)$" | 1430 | "^[-+!] .*?\\([\t ]+\\)$" |
| 1431 | "^[-\+!<>].*?\\([\t ]+\\)$")))) | 1431 | "^[-+!<>].*?\\([\t ]+\\)$")))) |
| 1432 | 1432 | ||
| 1433 | (defun diff-delete-if-empty () | 1433 | (defun diff-delete-if-empty () |
| 1434 | ;; An empty diff file means there's no more diffs to integrate, so we | 1434 | ;; An empty diff file means there's no more diffs to integrate, so we |
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el index 352892c945a..7647544d65d 100644 --- a/lisp/vc/ediff-diff.el +++ b/lisp/vc/ediff-diff.el | |||
| @@ -168,7 +168,7 @@ This variable can be set either in .emacs or toggled interactively. | |||
| 168 | Use `setq-default' if setting it in .emacs") | 168 | Use `setq-default' if setting it in .emacs") |
| 169 | 169 | ||
| 170 | (ediff-defvar-local ediff-auto-refine-limit 14000 | 170 | (ediff-defvar-local ediff-auto-refine-limit 14000 |
| 171 | "Auto-refine only the regions of this size \(in bytes\) or less.") | 171 | "Auto-refine only the regions of this size (in bytes) or less.") |
| 172 | 172 | ||
| 173 | ;;; General | 173 | ;;; General |
| 174 | 174 | ||
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el index 8c935bfab19..bf211599b9f 100644 --- a/lisp/vc/ediff-init.el +++ b/lisp/vc/ediff-init.el | |||
| @@ -776,7 +776,7 @@ TYPE-OF-EMACS is either 'xemacs or 'emacs." | |||
| 776 | 776 | ||
| 777 | ;; A var local to each control panel buffer. Indicates highlighting style | 777 | ;; A var local to each control panel buffer. Indicates highlighting style |
| 778 | ;; in effect for this buffer: `face', `ascii', | 778 | ;; in effect for this buffer: `face', `ascii', |
| 779 | ;; `off' -- turned off \(on a dumb terminal only\). | 779 | ;; `off' -- turned off (on a dumb terminal only). |
| 780 | (ediff-defvar-local ediff-highlighting-style | 780 | (ediff-defvar-local ediff-highlighting-style |
| 781 | (if (and (ediff-has-face-support-p) ediff-use-faces) 'face 'ascii) | 781 | (if (and (ediff-has-face-support-p) ediff-use-faces) 'face 'ascii) |
| 782 | "") | 782 | "") |
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el index b5835cb2d6e..a3b8bf0a28a 100644 --- a/lisp/vc/ediff-ptch.el +++ b/lisp/vc/ediff-ptch.el | |||
| @@ -90,14 +90,14 @@ See also `ediff-backup-specs'." | |||
| 90 | ;; traditional `patch' | 90 | ;; traditional `patch' |
| 91 | (format "-b %s" ediff-backup-extension)))) | 91 | (format "-b %s" ediff-backup-extension)))) |
| 92 | "Backup directives to pass to the patch program. | 92 | "Backup directives to pass to the patch program. |
| 93 | Ediff requires that the old version of the file \(before applying the patch\) | 93 | Ediff requires that the old version of the file \(before applying the patch) |
| 94 | be saved in a file named `the-patch-file.extension'. Usually `extension' is | 94 | be saved in a file named `the-patch-file.extension'. Usually `extension' is |
| 95 | `.orig', but this can be changed by the user and may depend on the system. | 95 | `.orig', but this can be changed by the user and may depend on the system. |
| 96 | Therefore, Ediff needs to know the backup extension used by the patch program. | 96 | Therefore, Ediff needs to know the backup extension used by the patch program. |
| 97 | 97 | ||
| 98 | Some versions of the patch program let you specify `-b backup-extension'. | 98 | Some versions of the patch program let you specify `-b backup-extension'. |
| 99 | Other versions only permit `-b', which assumes the extension `.orig' | 99 | Other versions only permit `-b', which assumes the extension `.orig' |
| 100 | \(in which case ediff-backup-extension MUST be also `.orig'\). The latest | 100 | \(in which case ediff-backup-extension MUST be also `.orig'). The latest |
| 101 | versions of GNU patch require `-b -z backup-extension'. | 101 | versions of GNU patch require `-b -z backup-extension'. |
| 102 | 102 | ||
| 103 | Note that both `ediff-backup-extension' and `ediff-backup-specs' | 103 | Note that both `ediff-backup-extension' and `ediff-backup-specs' |
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index bf5bb5cd5da..e664f9fdac3 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el | |||
| @@ -1500,7 +1500,7 @@ Used in ediff-windows/regions only." | |||
| 1500 | (select-window wind))) | 1500 | (select-window wind))) |
| 1501 | 1501 | ||
| 1502 | (defun ediff-scroll-vertically (&optional arg) | 1502 | (defun ediff-scroll-vertically (&optional arg) |
| 1503 | "Vertically scroll buffers A, B \(and C if appropriate\). | 1503 | "Vertically scroll buffers A, B (and C if appropriate). |
| 1504 | With optional argument ARG, scroll ARG lines; otherwise scroll by nearly | 1504 | With optional argument ARG, scroll ARG lines; otherwise scroll by nearly |
| 1505 | the one half of the height of window-A." | 1505 | the one half of the height of window-A." |
| 1506 | (interactive "P") | 1506 | (interactive "P") |
| @@ -1544,7 +1544,7 @@ the one half of the height of window-A." | |||
| 1544 | 1544 | ||
| 1545 | 1545 | ||
| 1546 | (defun ediff-scroll-horizontally (&optional arg) | 1546 | (defun ediff-scroll-horizontally (&optional arg) |
| 1547 | "Horizontally scroll buffers A, B \(and C if appropriate\). | 1547 | "Horizontally scroll buffers A, B (and C if appropriate). |
| 1548 | If an argument is given, that is how many columns are scrolled, else nearly | 1548 | If an argument is given, that is how many columns are scrolled, else nearly |
| 1549 | the width of the A/B/C windows." | 1549 | the width of the A/B/C windows." |
| 1550 | (interactive "P") | 1550 | (interactive "P") |
| @@ -1822,7 +1822,7 @@ If the prefix is negative, count differences from the end." | |||
| 1822 | 1822 | ||
| 1823 | (defun ediff-jump-to-difference-at-point (arg) | 1823 | (defun ediff-jump-to-difference-at-point (arg) |
| 1824 | "Go to difference closest to the point in buffer A, B, or C. | 1824 | "Go to difference closest to the point in buffer A, B, or C. |
| 1825 | The buffer depends on last command character \(a, b, or c\) that invoked this | 1825 | The buffer depends on last command character \(a, b, or c) that invoked this |
| 1826 | command. For instance, if the command was `ga' then the point value in buffer | 1826 | command. For instance, if the command was `ga' then the point value in buffer |
| 1827 | A is used. | 1827 | A is used. |
| 1828 | With a prefix argument, synchronize all files around the current point position | 1828 | With a prefix argument, synchronize all files around the current point position |
| @@ -1921,7 +1921,7 @@ in the specified buffer." | |||
| 1921 | ;;; Copying diffs. | 1921 | ;;; Copying diffs. |
| 1922 | 1922 | ||
| 1923 | (defun ediff-diff-to-diff (arg &optional keys) | 1923 | (defun ediff-diff-to-diff (arg &optional keys) |
| 1924 | "Copy buffer-X'th difference region to buffer Y \(X,Y are A, B, or C\). | 1924 | "Copy buffer-X'th difference region to buffer Y (X,Y are A, B, or C). |
| 1925 | If numerical prefix argument, copy the difference specified in the arg. | 1925 | If numerical prefix argument, copy the difference specified in the arg. |
| 1926 | Otherwise, copy the difference given by `ediff-current-difference'. | 1926 | Otherwise, copy the difference given by `ediff-current-difference'. |
| 1927 | This command assumes it is bound to a 2-character key sequence, `ab', `ba', | 1927 | This command assumes it is bound to a 2-character key sequence, `ab', `ba', |
| @@ -1986,7 +1986,7 @@ ARG is a prefix argument. If nil, copy the current difference region." | |||
| 1986 | 1986 | ||
| 1987 | 1987 | ||
| 1988 | 1988 | ||
| 1989 | ;; Copy diff N from FROM-BUF-TYPE \(given as A, B or C\) to TO-BUF-TYPE. | 1989 | ;; Copy diff N from FROM-BUF-TYPE (given as A, B or C) to TO-BUF-TYPE. |
| 1990 | ;; If optional DO-NOT-SAVE is non-nil, do not save the old value of the | 1990 | ;; If optional DO-NOT-SAVE is non-nil, do not save the old value of the |
| 1991 | ;; target diff. This is used in merging, when constructing the merged | 1991 | ;; target diff. This is used in merging, when constructing the merged |
| 1992 | ;; version. | 1992 | ;; version. |
| @@ -2065,7 +2065,7 @@ ARG is a prefix argument. If nil, copy the current difference region." | |||
| 2065 | (message "%s" messg)) | 2065 | (message "%s" messg)) |
| 2066 | )) | 2066 | )) |
| 2067 | 2067 | ||
| 2068 | ;; Save Nth diff of buffer BUF-TYPE \(A, B, or C\). | 2068 | ;; Save Nth diff of buffer BUF-TYPE (A, B, or C). |
| 2069 | ;; That is to say, the Nth diff on the `ediff-killed-diffs-alist'. REG | 2069 | ;; That is to say, the Nth diff on the `ediff-killed-diffs-alist'. REG |
| 2070 | ;; is the region to save. It is redundant here, but is passed anyway, for | 2070 | ;; is the region to save. It is redundant here, but is passed anyway, for |
| 2071 | ;; convenience. | 2071 | ;; convenience. |
| @@ -2385,10 +2385,10 @@ the number seen by the user." | |||
| 2385 | "Finish an Ediff session and exit Ediff. | 2385 | "Finish an Ediff session and exit Ediff. |
| 2386 | Unselects the selected difference, if any, restores the read-only and modified | 2386 | Unselects the selected difference, if any, restores the read-only and modified |
| 2387 | flags of the compared file buffers, kills Ediff buffers for this session | 2387 | flags of the compared file buffers, kills Ediff buffers for this session |
| 2388 | \(but not buffers A, B, C\). | 2388 | \(but not buffers A, B, C). |
| 2389 | 2389 | ||
| 2390 | If `ediff-keep-variants' is nil, the user will be asked whether the buffers | 2390 | If `ediff-keep-variants' is nil, the user will be asked whether the buffers |
| 2391 | containing the variants should be removed \(if they haven't been modified\). | 2391 | containing the variants should be removed \(if they haven't been modified). |
| 2392 | If it is t, they will be preserved unconditionally. A prefix argument, | 2392 | If it is t, they will be preserved unconditionally. A prefix argument, |
| 2393 | temporarily reverses the meaning of this variable." | 2393 | temporarily reverses the meaning of this variable." |
| 2394 | (interactive "P") | 2394 | (interactive "P") |
| @@ -3312,7 +3312,7 @@ and `wd' saves the diff output. | |||
| 3312 | 3312 | ||
| 3313 | With prefix argument, `wd' saves plain diff output. | 3313 | With prefix argument, `wd' saves plain diff output. |
| 3314 | Without an argument, it saves customized diff argument, if available | 3314 | Without an argument, it saves customized diff argument, if available |
| 3315 | \(and plain output, if customized output was not generated\)." | 3315 | \(and plain output, if customized output was not generated)." |
| 3316 | (interactive "P") | 3316 | (interactive "P") |
| 3317 | (ediff-barf-if-not-control-buffer) | 3317 | (ediff-barf-if-not-control-buffer) |
| 3318 | (ediff-compute-custom-diffs-maybe) | 3318 | (ediff-compute-custom-diffs-maybe) |
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el index c31df824996..e0887f03b62 100644 --- a/lisp/vc/ediff-wind.el +++ b/lisp/vc/ediff-wind.el | |||
| @@ -211,7 +211,7 @@ responsibility." | |||
| 211 | "Function to call to determine the desired location for the control panel. | 211 | "Function to call to determine the desired location for the control panel. |
| 212 | Expects three parameters: the control buffer, the desired width and height | 212 | Expects three parameters: the control buffer, the desired width and height |
| 213 | of the control frame. It returns an association list | 213 | of the control frame. It returns an association list |
| 214 | of the form \(\(top . <position>\) \(left . <position>\)\)" | 214 | of the form \((top . <position>) \(left . <position>))" |
| 215 | :type 'function | 215 | :type 'function |
| 216 | :group 'ediff-window) | 216 | :group 'ediff-window) |
| 217 | 217 | ||
| @@ -432,7 +432,7 @@ into icons, regardless of the window manager." | |||
| 432 | three-way-comparison ediff-3way-comparison-job)) | 432 | three-way-comparison ediff-3way-comparison-job)) |
| 433 | ;; if in minibuffer go somewhere else | 433 | ;; if in minibuffer go somewhere else |
| 434 | (if (save-match-data | 434 | (if (save-match-data |
| 435 | (string-match "\*Minibuf-" (buffer-name (window-buffer)))) | 435 | (string-match "\\*Minibuf-" (buffer-name (window-buffer)))) |
| 436 | (select-window (next-window nil 'ignore-minibuf))) | 436 | (select-window (next-window nil 'ignore-minibuf))) |
| 437 | (delete-other-windows) | 437 | (delete-other-windows) |
| 438 | (set-window-dedicated-p (selected-window) nil) | 438 | (set-window-dedicated-p (selected-window) nil) |
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el index 65ca0bd4408..3a2d1e48aac 100644 --- a/lisp/vc/ediff.el +++ b/lisp/vc/ediff.el | |||
| @@ -963,7 +963,7 @@ If WIND-B is nil, use window next to WIND-A." | |||
| 963 | ;;;###autoload | 963 | ;;;###autoload |
| 964 | (defun ediff-regions-wordwise (buffer-A buffer-B &optional startup-hooks) | 964 | (defun ediff-regions-wordwise (buffer-A buffer-B &optional startup-hooks) |
| 965 | "Run Ediff on a pair of regions in specified buffers. | 965 | "Run Ediff on a pair of regions in specified buffers. |
| 966 | Regions \(i.e., point and mark\) can be set in advance or marked interactively. | 966 | Regions (i.e., point and mark) can be set in advance or marked interactively. |
| 967 | This function is effective only for relatively small regions, up to 200 | 967 | This function is effective only for relatively small regions, up to 200 |
| 968 | lines. For large regions, use `ediff-regions-linewise'." | 968 | lines. For large regions, use `ediff-regions-linewise'." |
| 969 | (interactive | 969 | (interactive |
| @@ -1003,7 +1003,7 @@ lines. For large regions, use `ediff-regions-linewise'." | |||
| 1003 | ;;;###autoload | 1003 | ;;;###autoload |
| 1004 | (defun ediff-regions-linewise (buffer-A buffer-B &optional startup-hooks) | 1004 | (defun ediff-regions-linewise (buffer-A buffer-B &optional startup-hooks) |
| 1005 | "Run Ediff on a pair of regions in specified buffers. | 1005 | "Run Ediff on a pair of regions in specified buffers. |
| 1006 | Regions \(i.e., point and mark\) can be set in advance or marked interactively. | 1006 | Regions (i.e., point and mark) can be set in advance or marked interactively. |
| 1007 | Each region is enlarged to contain full lines. | 1007 | Each region is enlarged to contain full lines. |
| 1008 | This function is effective for large regions, over 100-200 | 1008 | This function is effective for large regions, over 100-200 |
| 1009 | lines. For small regions, use `ediff-regions-wordwise'." | 1009 | lines. For small regions, use `ediff-regions-wordwise'." |
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el index acbd9c0cd9f..9857116e2d4 100644 --- a/lisp/vc/log-edit.el +++ b/lisp/vc/log-edit.el | |||
| @@ -905,7 +905,7 @@ Return non-nil if it is." | |||
| 905 | The return value looks like this: | 905 | The return value looks like this: |
| 906 | (LOGBUFFER (ENTRYSTART ENTRYEND) ...) | 906 | (LOGBUFFER (ENTRYSTART ENTRYEND) ...) |
| 907 | where LOGBUFFER is the name of the ChangeLog buffer, and each | 907 | where LOGBUFFER is the name of the ChangeLog buffer, and each |
| 908 | \(ENTRYSTART . ENTRYEND\) pair is a buffer region." | 908 | \(ENTRYSTART . ENTRYEND) pair is a buffer region." |
| 909 | (let ((changelog-file-name | 909 | (let ((changelog-file-name |
| 910 | (let ((default-directory | 910 | (let ((default-directory |
| 911 | (file-name-directory (expand-file-name file))) | 911 | (file-name-directory (expand-file-name file))) |
diff --git a/lisp/vc/vc-annotate.el b/lisp/vc/vc-annotate.el index 3a50c9b6a2d..ab3161e11e6 100644 --- a/lisp/vc/vc-annotate.el +++ b/lisp/vc/vc-annotate.el | |||
| @@ -269,7 +269,7 @@ cover the range from the oldest annotation to the newest." | |||
| 269 | (/ (- (if full newest current) oldest) | 269 | (/ (- (if full newest current) oldest) |
| 270 | (vc-annotate-oldest-in-map vc-annotate-color-map)) | 270 | (vc-annotate-oldest-in-map vc-annotate-color-map)) |
| 271 | (if full newest)) | 271 | (if full newest)) |
| 272 | (message "Redisplaying annotation...done \(%s\)" | 272 | (message "Redisplaying annotation...done (%s)" |
| 273 | (if full | 273 | (if full |
| 274 | (format "Spanned from %.1f to %.1f days old" | 274 | (format "Spanned from %.1f to %.1f days old" |
| 275 | (- current oldest) | 275 | (- current oldest) |
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 0aa9c5a1e22..73ef42ac7d6 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el | |||
| @@ -107,7 +107,7 @@ switches." | |||
| 107 | :version "25.1" | 107 | :version "25.1" |
| 108 | :group 'vc-cvs) | 108 | :group 'vc-cvs) |
| 109 | 109 | ||
| 110 | (defcustom vc-cvs-header '("\$Id\$") | 110 | (defcustom vc-cvs-header '("$Id\ $") |
| 111 | "Header keywords to be inserted by `vc-insert-headers'." | 111 | "Header keywords to be inserted by `vc-insert-headers'." |
| 112 | :version "24.1" ; no longer consult the obsolete vc-header-alist | 112 | :version "24.1" ; no longer consult the obsolete vc-header-alist |
| 113 | :type '(repeat string) | 113 | :type '(repeat string) |
| @@ -932,7 +932,7 @@ state." | |||
| 932 | (when (and full | 932 | (when (and full |
| 933 | (re-search-forward | 933 | (re-search-forward |
| 934 | "\\(RCS Version\\|RCS Revision\\|Repository revision\\):\ | 934 | "\\(RCS Version\\|RCS Revision\\|Repository revision\\):\ |
| 935 | \[\t ]+\\([0-9.]+\\)" | 935 | [\t ]+\\([0-9.]+\\)" |
| 936 | nil t)) | 936 | nil t)) |
| 937 | (vc-file-setprop file 'vc-latest-revision (match-string 2))) | 937 | (vc-file-setprop file 'vc-latest-revision (match-string 2))) |
| 938 | (vc-file-setprop | 938 | (vc-file-setprop |
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el index 71ffa55a6e9..995bd059f2d 100644 --- a/lisp/vc/vc-rcs.el +++ b/lisp/vc/vc-rcs.el | |||
| @@ -76,7 +76,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 76 | :version "21.1" | 76 | :version "21.1" |
| 77 | :group 'vc-rcs) | 77 | :group 'vc-rcs) |
| 78 | 78 | ||
| 79 | (defcustom vc-rcs-header '("\$Id\$") | 79 | (defcustom vc-rcs-header '("$Id\ $") |
| 80 | "Header keywords to be inserted by `vc-insert-headers'." | 80 | "Header keywords to be inserted by `vc-insert-headers'." |
| 81 | :type '(repeat string) | 81 | :type '(repeat string) |
| 82 | :version "24.1" ; no longer consult the obsolete vc-header-alist | 82 | :version "24.1" ; no longer consult the obsolete vc-header-alist |
| @@ -1118,12 +1118,12 @@ Returns: nil if no headers were found | |||
| 1118 | (defun vc-release-greater-or-equal (r1 r2) | 1118 | (defun vc-release-greater-or-equal (r1 r2) |
| 1119 | "Compare release numbers, represented as strings. | 1119 | "Compare release numbers, represented as strings. |
| 1120 | Release components are assumed cardinal numbers, not decimal fractions | 1120 | Release components are assumed cardinal numbers, not decimal fractions |
| 1121 | \(5.10 is a higher release than 5.9\). Omitted fields are considered | 1121 | \(5.10 is a higher release than 5.9). Omitted fields are considered |
| 1122 | lower \(5.6.7 is earlier than 5.6.7.1\). Comparison runs till the end | 1122 | lower \(5.6.7 is earlier than 5.6.7.1). Comparison runs till the end |
| 1123 | of the string is found, or a non-numeric component shows up \(5.6.7 is | 1123 | of the string is found, or a non-numeric component shows up \(5.6.7 is |
| 1124 | earlier than \"5.6.7 beta\", which is probably not what you want in | 1124 | earlier than \"5.6.7 beta\", which is probably not what you want in |
| 1125 | some cases\). This code is suitable for existing RCS release numbers. | 1125 | some cases). This code is suitable for existing RCS release numbers. |
| 1126 | CVS releases are handled reasonably, too \(1.3 < 1.4* < 1.5\)." | 1126 | CVS releases are handled reasonably, too \(1.3 < 1.4* < 1.5)." |
| 1127 | (let (v1 v2 i1 i2) | 1127 | (let (v1 v2 i1 i2) |
| 1128 | (catch 'done | 1128 | (catch 'done |
| 1129 | (or (and (string-match "^\\.?\\([0-9]+\\)" r1) | 1129 | (or (and (string-match "^\\.?\\([0-9]+\\)" r1) |
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el index 755dbc1ca3b..4ef63a23db5 100644 --- a/lisp/vc/vc-svn.el +++ b/lisp/vc/vc-svn.el | |||
| @@ -106,7 +106,7 @@ switches." | |||
| 106 | :version "25.1" | 106 | :version "25.1" |
| 107 | :group 'vc-svn) | 107 | :group 'vc-svn) |
| 108 | 108 | ||
| 109 | (defcustom vc-svn-header '("\$Id\$") | 109 | (defcustom vc-svn-header '("$Id\ $") |
| 110 | "Header keywords to be inserted by `vc-insert-headers'." | 110 | "Header keywords to be inserted by `vc-insert-headers'." |
| 111 | :version "24.1" ; no longer consult the obsolete vc-header-alist | 111 | :version "24.1" ; no longer consult the obsolete vc-header-alist |
| 112 | :type '(repeat string) | 112 | :type '(repeat string) |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 3b9e788b7ab..90d450a5ab9 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -850,9 +850,9 @@ See `run-hooks'." | |||
| 850 | 850 | ||
| 851 | (defcustom vc-static-header-alist | 851 | (defcustom vc-static-header-alist |
| 852 | '(("\\.c\\'" . | 852 | '(("\\.c\\'" . |
| 853 | "\n#ifndef lint\nstatic char vcid[] = \"\%s\";\n#endif /* lint */\n")) | 853 | "\n#ifndef lint\nstatic char vcid[] = \"%s\";\n#endif /* lint */\n")) |
| 854 | "Associate static header string templates with file types. | 854 | "Associate static header string templates with file types. |
| 855 | A \%s in the template is replaced with the first string associated with | 855 | A %s in the template is replaced with the first string associated with |
| 856 | the file's version control type in `vc-BACKEND-header'." | 856 | the file's version control type in `vc-BACKEND-header'." |
| 857 | :type '(repeat (cons :format "%v" | 857 | :type '(repeat (cons :format "%v" |
| 858 | (regexp :tag "File Type") | 858 | (regexp :tag "File Type") |
| @@ -2093,7 +2093,7 @@ changes from the current branch." | |||
| 2093 | (defun vc-tag-precondition (dir) | 2093 | (defun vc-tag-precondition (dir) |
| 2094 | "Scan the tree below DIR, looking for files not up-to-date. | 2094 | "Scan the tree below DIR, looking for files not up-to-date. |
| 2095 | If any file is not up-to-date, return the name of the first such file. | 2095 | If any file is not up-to-date, return the name of the first such file. |
| 2096 | \(This means, neither tag creation nor retrieval is allowed.\) | 2096 | \(This means, neither tag creation nor retrieval is allowed.) |
| 2097 | If one or more of the files are currently visited, return `visited'. | 2097 | If one or more of the files are currently visited, return `visited'. |
| 2098 | Otherwise, return nil." | 2098 | Otherwise, return nil." |
| 2099 | (let ((status nil)) | 2099 | (let ((status nil)) |