aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorPaul Eggert2015-08-28 22:24:10 -0700
committerPaul Eggert2015-08-28 22:25:09 -0700
commit5e63c842007b0f85e91735a7c4e00be0b7fe9ba5 (patch)
treeebef360bed879a59b45e167f9679e6bbbe9369c7 /lisp/vc
parentff441d3508add9eed3c5217ae7b0a8800b9fc917 (diff)
downloademacs-5e63c842007b0f85e91735a7c4e00be0b7fe9ba5.tar.gz
emacs-5e63c842007b0f85e91735a7c4e00be0b7fe9ba5.zip
Fix minor text quoting in calc, calendar, vc
* lisp/calc/calc-ext.el (calc-shift-Z-prefix-help): * lisp/calc/calc-help.el (calc-j-prefix-help): * lisp/calc/calc-misc.el (calc-help): * lisp/calc/calc.el (calc-algebraic-mode, calc-mode): Escape an apostrophe in a docstring. * lisp/calc/calc-forms.el (calc-hms-notation): * lisp/calc/calc-mode.el (calc-display-raw, calc-algebraic-mode): Escape an apostrophe in a diagnostic. * lisp/calc/calc-misc.el (calc-help): * lisp/calendar/diary-lib.el (diary-include-files): * lisp/calendar/todo-mode.el (todo-prefix, todo-item-mark): * lisp/vc/diff-mode.el (diff-delete-trailing-whitespace): * lisp/vc/ediff-diff.el (ediff-same-contents): * lisp/vc/ediff-merg.el (ediff-re-merge): * lisp/vc/ediff-ptch.el (ediff-patch-file-internal): * lisp/vc/ediff-util.el (ediff-test-save-region) (ediff-status-info): * lisp/vc/ediff.el (ediff-merge-revisions) (ediff-merge-revisions-with-ancestor): * lisp/vc/pcvs.el (cvs-mode-checkout, cvs-vc-command-advice): * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string): Respect text quoting style in doc string or diagnostic. * lisp/calc/calc-prog.el (calc-kbd-push, calc-kbd-pop): * lisp/vc/add-log.el (change-log-goto-source): Avoid double-formatting. * lisp/vc/ediff-init.el (format-message): New backward-compatibility alias.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/add-log.el11
-rw-r--r--lisp/vc/diff-mode.el3
-rw-r--r--lisp/vc/ediff-diff.el2
-rw-r--r--lisp/vc/ediff-init.el3
-rw-r--r--lisp/vc/ediff-merg.el4
-rw-r--r--lisp/vc/ediff-ptch.el2
-rw-r--r--lisp/vc/ediff-util.el18
-rw-r--r--lisp/vc/ediff.el6
-rw-r--r--lisp/vc/pcvs.el14
-rw-r--r--lisp/vc/vc-cvs.el2
10 files changed, 35 insertions, 30 deletions
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index e24b6ccae01..d120d052215 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -481,9 +481,9 @@ try to visit the file for the change under `point' instead."
481 (apply 'change-log-goto-source-1 481 (apply 'change-log-goto-source-1
482 (append change-log-find-head change-log-find-tail)) 482 (append change-log-find-head change-log-find-tail))
483 (error 483 (error
484 (format "Cannot find more matches for tag `%s' in file `%s'" 484 "Cannot find more matches for tag `%s' in file `%s'"
485 (car change-log-find-head) 485 (car change-log-find-head)
486 (nth 2 change-log-find-head))))) 486 (nth 2 change-log-find-head))))
487 (save-excursion 487 (save-excursion
488 (let* ((at (point)) 488 (let* ((at (point))
489 (tag-at (change-log-search-tag-name)) 489 (tag-at (change-log-search-tag-name))
@@ -515,9 +515,8 @@ try to visit the file for the change under `point' instead."
515 (condition-case nil 515 (condition-case nil
516 (setq change-log-find-tail 516 (setq change-log-find-tail
517 (apply 'change-log-goto-source-1 change-log-find-head)) 517 (apply 'change-log-goto-source-1 change-log-find-head))
518 (error 518 (error "Cannot find matches for tag `%s' in file `%s'"
519 (format "Cannot find matches for tag `%s' in file `%s'" 519 tag file))))))))
520 tag file)))))))))
521 520
522(defun change-log-next-error (&optional argp reset) 521(defun change-log-next-error (&optional argp reset)
523 "Move to the Nth (default 1) next match in a ChangeLog buffer. 522 "Move to the Nth (default 1) next match in a ChangeLog buffer.
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 948a45e6f5c..37ed4a53b44 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -2128,7 +2128,8 @@ fixed, visit it in a buffer."
2128 (goto-char hunk-end)) 2128 (goto-char hunk-end))
2129 (if modified-buffers 2129 (if modified-buffers
2130 (message "Deleted trailing whitespace from %s." 2130 (message "Deleted trailing whitespace from %s."
2131 (mapconcat (lambda (buf) (concat "`" (buffer-name buf) "'")) 2131 (mapconcat (lambda (buf) (format-message
2132 "`%s'" (buffer-name buf)))
2132 modified-buffers ", ")) 2133 modified-buffers ", "))
2133 (message "No trailing whitespace to delete."))))) 2134 (message "No trailing whitespace to delete.")))))
2134 2135
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index b3093943d4e..352892c945a 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -1373,7 +1373,7 @@ affects only files whose names match the expression."
1373 ;; Normalize empty filter RE to nil. 1373 ;; Normalize empty filter RE to nil.
1374 (unless (> (length filter-re) 0) (setq filter-re nil)) 1374 (unless (> (length filter-re) 0) (setq filter-re nil))
1375 ;; Indicate progress 1375 ;; Indicate progress
1376 (message "Comparing %s and %s modulo %s" d1 d2 filter-re) 1376 (message "Comparing `%s' and `%s' modulo `%s'" d1 d2 filter-re)
1377 (cond 1377 (cond
1378 ;; D1 & D2 directories => recurse 1378 ;; D1 & D2 directories => recurse
1379 ((and (file-directory-p d1) 1379 ((and (file-directory-p d1)
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el
index d6b538cff2b..8c935bfab19 100644
--- a/lisp/vc/ediff-init.el
+++ b/lisp/vc/ediff-init.el
@@ -1719,6 +1719,9 @@ Unless optional argument INPLACE is non-nil, return a new string."
1719 (aset newstr i tochar))) 1719 (aset newstr i tochar)))
1720 newstr))) 1720 newstr)))
1721 1721
1722(unless (fboundp 'format-message)
1723 (defalias 'format-message 'format))
1724
1722(defun ediff-abbrev-jobname (jobname) 1725(defun ediff-abbrev-jobname (jobname)
1723 (cond ((eq jobname 'ediff-directories) 1726 (cond ((eq jobname 'ediff-directories)
1724 "Compare two directories") 1727 "Compare two directories")
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index 72dfc0861f5..2da3de1a10e 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -268,8 +268,8 @@ Buffer B."
268 (setq ediff-default-variant 268 (setq ediff-default-variant
269 (intern 269 (intern
270 (completing-read 270 (completing-read
271 (format "Current merge default is `%S'. New default: " 271 (format-message "Current merge default is `%S'. New default: "
272 ediff-default-variant) 272 ediff-default-variant)
273 actual-alist nil 'must-match))) 273 actual-alist nil 'must-match)))
274 (ediff-do-merge ediff-current-difference 'remerge) 274 (ediff-do-merge ediff-current-difference 'remerge)
275 (ediff-recenter) 275 (ediff-recenter)
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el
index 80990feac35..b665034d135 100644
--- a/lisp/vc/ediff-ptch.el
+++ b/lisp/vc/ediff-ptch.el
@@ -723,7 +723,7 @@ optional argument, then use it."
723 (with-output-to-temp-buffer ediff-msg-buffer 723 (with-output-to-temp-buffer ediff-msg-buffer
724 (ediff-with-current-buffer standard-output 724 (ediff-with-current-buffer standard-output
725 (fundamental-mode)) 725 (fundamental-mode))
726 (princ (format 726 (princ (format-message
727 "Patch program has failed due to a bad patch file, 727 "Patch program has failed due to a bad patch file,
728it couldn't apply all hunks, OR 728it couldn't apply all hunks, OR
729it couldn't create the backup for the file being patched. 729it couldn't create the backup for the file being patched.
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 26bba40b4b4..bf5bb5cd5da 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -2097,7 +2097,7 @@ ARG is a prefix argument. If nil, copy the current difference region."
2097 2097
2098 (if this-buf-n-th-diff-saved 2098 (if this-buf-n-th-diff-saved
2099 (if (yes-or-no-p 2099 (if (yes-or-no-p
2100 (format 2100 (format-message
2101 "You've previously copied diff region %d to buffer %S. Confirm? " 2101 "You've previously copied diff region %d to buffer %S. Confirm? "
2102 (1+ n) buf-type)) 2102 (1+ n) buf-type))
2103 t 2103 t
@@ -2858,13 +2858,14 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2858 (B-line (ediff-with-current-buffer ediff-buffer-B 2858 (B-line (ediff-with-current-buffer ediff-buffer-B
2859 (1+ (count-lines (point-min) (point))))) 2859 (1+ (count-lines (point-min) (point)))))
2860 C-line) 2860 C-line)
2861 (princ (format "\Buffer A's point is on line %d\n" A-line)) 2861 (princ (format-message "Buffer A's point is on line %d\n" A-line))
2862 (princ (format "Buffer B's point is on line %d\n" B-line)) 2862 (princ (format-message "Buffer B's point is on line %d\n" B-line))
2863 (if ediff-3way-job 2863 (if ediff-3way-job
2864 (progn 2864 (progn
2865 (setq C-line (ediff-with-current-buffer ediff-buffer-C 2865 (setq C-line (ediff-with-current-buffer ediff-buffer-C
2866 (1+ (count-lines (point-min) (point))))) 2866 (1+ (count-lines (point-min) (point)))))
2867 (princ (format "Buffer C's point is on line %d\n" C-line))))) 2867 (princ (format-message
2868 "Buffer C's point is on line %d\n" C-line)))))
2868 2869
2869 (princ (format "\nCurrent difference number = %S\n" 2870 (princ (format "\nCurrent difference number = %S\n"
2870 (cond ((< ediff-current-difference 0) 'start) 2871 (cond ((< ediff-current-difference 0) 'start)
@@ -2890,7 +2891,7 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2890 (princ 2891 (princ
2891 "\nIgnoring regions that match") 2892 "\nIgnoring regions that match")
2892 (princ 2893 (princ
2893 (format 2894 (format-message
2894 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n" 2895 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n"
2895 ediff-regexp-hide-A ediff-hide-regexp-connective 2896 ediff-regexp-hide-A ediff-hide-regexp-connective
2896 ediff-regexp-hide-B))) 2897 ediff-regexp-hide-B)))
@@ -2899,15 +2900,16 @@ Hit \\[ediff-recenter] to reset the windows afterward."
2899 (princ 2900 (princ
2900 "\nFocusing on regions that match") 2901 "\nFocusing on regions that match")
2901 (princ 2902 (princ
2902 (format 2903 (format-message
2903 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n" 2904 "\n\t regexp `%s' in buffer A %S\n\t regexp `%s' in buffer B\n"
2904 ediff-regexp-focus-A ediff-focus-regexp-connective 2905 ediff-regexp-focus-A ediff-focus-regexp-connective
2905 ediff-regexp-focus-B))) 2906 ediff-regexp-focus-B)))
2906 (t (princ "\nSelective browsing via a user-defined method.\n"))) 2907 (t (princ "\nSelective browsing via a user-defined method.\n")))
2907 2908
2908 (princ 2909 (princ
2909 (format "\nBugs/suggestions: type `%s' while in Ediff Control Panel." 2910 (format-message
2910 (substitute-command-keys "\\[ediff-submit-report]"))) 2911 "\nBugs/suggestions: type `%s' while in Ediff Control Panel."
2912 (substitute-command-keys "\\[ediff-submit-report]")))
2911 ) ; with output 2913 ) ; with output
2912 (if (frame-live-p ediff-control-frame) 2914 (if (frame-live-p ediff-control-frame)
2913 (ediff-reset-mouse ediff-control-frame)) 2915 (ediff-reset-mouse ediff-control-frame))
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index 837940c7763..65ca0bd4408 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -1294,7 +1294,7 @@ buffer."
1294 (let (rev1 rev2) 1294 (let (rev1 rev2)
1295 (setq rev1 1295 (setq rev1
1296 (read-string 1296 (read-string
1297 (format 1297 (format-message
1298 "Version 1 to merge (default %s's working version): " 1298 "Version 1 to merge (default %s's working version): "
1299 (if (stringp file) 1299 (if (stringp file)
1300 (file-name-nondirectory file) "current buffer"))) 1300 (file-name-nondirectory file) "current buffer")))
@@ -1326,7 +1326,7 @@ buffer."
1326 (let (rev1 rev2 ancestor-rev) 1326 (let (rev1 rev2 ancestor-rev)
1327 (setq rev1 1327 (setq rev1
1328 (read-string 1328 (read-string
1329 (format 1329 (format-message
1330 "Version 1 to merge (default %s's working version): " 1330 "Version 1 to merge (default %s's working version): "
1331 (if (stringp file) 1331 (if (stringp file)
1332 (file-name-nondirectory file) "current buffer"))) 1332 (file-name-nondirectory file) "current buffer")))
@@ -1338,7 +1338,7 @@ buffer."
1338 (file-name-nondirectory file) "current buffer"))) 1338 (file-name-nondirectory file) "current buffer")))
1339 ancestor-rev 1339 ancestor-rev
1340 (read-string 1340 (read-string
1341 (format 1341 (format-message
1342 "Ancestor version (default %s's base revision): " 1342 "Ancestor version (default %s's base revision): "
1343 (if (stringp file) 1343 (if (stringp file)
1344 (file-name-nondirectory file) "current buffer")))) 1344 (file-name-nondirectory file) "current buffer"))))
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el
index 6d8e5374145..f6a9e08d84b 100644
--- a/lisp/vc/pcvs.el
+++ b/lisp/vc/pcvs.el
@@ -968,10 +968,10 @@ With a prefix argument, prompt for cvs FLAGS to use."
968The files are stored to DIR." 968The files are stored to DIR."
969 (interactive 969 (interactive
970 (let* ((branch (cvs-prefix-get 'cvs-branch-prefix)) 970 (let* ((branch (cvs-prefix-get 'cvs-branch-prefix))
971 (prompt (format "CVS Checkout Directory for `%s%s': " 971 (prompt (format-message "CVS Checkout Directory for `%s%s': "
972 (cvs-get-module) 972 (cvs-get-module)
973 (if branch (format " (branch: %s)" branch) 973 (if branch (format " (branch: %s)" branch)
974 "")))) 974 ""))))
975 (list (read-directory-name prompt nil default-directory nil)))) 975 (list (read-directory-name prompt nil default-directory nil))))
976 (let ((modules (split-string-and-unquote (cvs-get-module))) 976 (let ((modules (split-string-and-unquote (cvs-get-module)))
977 (flags (cvs-add-branch-prefix 977 (flags (cvs-add-branch-prefix
@@ -2403,9 +2403,9 @@ The exact behavior is determined also by `cvs-dired-use-hook'."
2403 (goto-char (point-min)) 2403 (goto-char (point-min))
2404 (looking-at ".*to add this file permanently\n\\'")) 2404 (looking-at ".*to add this file permanently\n\\'"))
2405 (dolist (file (if (listp files) files (list files))) 2405 (dolist (file (if (listp files) files (list files)))
2406 (insert "cvs add: scheduling file `" 2406 (insert (format-message
2407 (file-name-nondirectory file) 2407 "cvs add: scheduling file `%s' for addition\n"
2408 "' for addition\n"))) 2408 (file-name-nondirectory file)))))
2409 ;; VC never (?) does `cvs -n update' so dcd=nil 2409 ;; VC never (?) does `cvs -n update' so dcd=nil
2410 ;; should probably always be the right choice. 2410 ;; should probably always be the right choice.
2411 (cvs-parse-process nil subdir)))))))) 2411 (cvs-parse-process nil subdir))))))))
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el
index 298bcefb7bf..0aa9c5a1e22 100644
--- a/lisp/vc/vc-cvs.el
+++ b/lisp/vc/vc-cvs.el
@@ -281,7 +281,7 @@ committed and support display of sticky tags."
281 (propertize 281 (propertize
282 (if (zerop (length sticky-tag)) 282 (if (zerop (length sticky-tag))
283 string 283 string
284 (setq help-echo (format-message "%s on the %s branch" 284 (setq help-echo (format-message "%s on the `%s' branch"
285 help-echo sticky-tag)) 285 help-echo sticky-tag))
286 (concat string "[" sticky-tag "]")) 286 (concat string "[" sticky-tag "]"))
287 'help-echo help-echo))) 287 'help-echo help-echo)))