aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-17 05:08:23 +0000
committerRichard M. Stallman1993-06-17 05:08:23 +0000
commit590cc44988b4ba7cd6fa8e3126d2d91c2760afd6 (patch)
tree0a94117fa8d7ffe07d17e7ac52b0e637521ad19d
parent1bc981d2b5016077f8d96e7384148f7444dbc120 (diff)
downloademacs-590cc44988b4ba7cd6fa8e3126d2d91c2760afd6.tar.gz
emacs-590cc44988b4ba7cd6fa8e3126d2d91c2760afd6.zip
(vc-rename-file): Remove periods from error messages.
(vc-backend-logentry-check, vc-revert-buffer): Likewise. (vc-retrieve-snapshot, vc-create-snapshot): Likewise. (vc-diff, vc-finish-logentry, vc-steal-lock): Likewise. (vc-register, vc-next-action-on-file, vc-registration-error): Likewise. (vc-cancel-version): Add space to end of question.
-rw-r--r--lisp/vc.el34
1 files changed, 17 insertions, 17 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 840113f58de..ff6b8e2166b 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -159,8 +159,8 @@ is sensitive to blank lines.")
159 159
160(defun vc-registration-error (file) 160(defun vc-registration-error (file)
161 (if file 161 (if file
162 (error "File %s is not under version control." file) 162 (error "File %s is not under version control" file)
163 (error "Buffer %s is not associated with a file." (buffer-name)))) 163 (error "Buffer %s is not associated with a file" (buffer-name))))
164 164
165(defvar vc-binary-assoc nil) 165(defvar vc-binary-assoc nil)
166 166
@@ -372,7 +372,7 @@ the master name of FILE; this is appended to an optional list of FLAGS."
372 ;; a checked-out version exists, but the user may not own the lock 372 ;; a checked-out version exists, but the user may not own the lock
373 ((not (string-equal owner (user-login-name))) 373 ((not (string-equal owner (user-login-name)))
374 (if comment 374 (if comment
375 (error "Sorry, you can't steal the lock on %s this way." file)) 375 (error "Sorry, you can't steal the lock on %s this way" file))
376 (vc-steal-lock 376 (vc-steal-lock
377 file 377 file
378 (and verbose (read-string "Version to steal: ")) 378 (and verbose (read-string "Version to steal: "))
@@ -472,7 +472,7 @@ lock steals will raise an error."
472 "Register the current file into your version-control system." 472 "Register the current file into your version-control system."
473 (interactive "P") 473 (interactive "P")
474 (if (vc-name buffer-file-name) 474 (if (vc-name buffer-file-name)
475 (error "This file is already registered.")) 475 (error "This file is already registered"))
476 ;; Watch out for new buffers of size 0: the corresponding file 476 ;; Watch out for new buffers of size 0: the corresponding file
477 ;; does not exist yet, even though buffer-modified-p is nil. 477 ;; does not exist yet, even though buffer-modified-p is nil.
478 (if (and (not (buffer-modified-p)) 478 (if (and (not (buffer-modified-p))
@@ -554,7 +554,7 @@ level to check it in under. COMMENT, if specified, is the checkin comment."
554 (if (not owner) 554 (if (not owner)
555 (setq owner (vc-locking-user file))) 555 (setq owner (vc-locking-user file)))
556 (if (not (y-or-n-p (format "Take the lock on %s:%s from %s? " file rev owner))) 556 (if (not (y-or-n-p (format "Take the lock on %s:%s from %s? " file rev owner)))
557 (error "Steal cancelled.")) 557 (error "Steal cancelled"))
558 (pop-to-buffer (get-buffer-create "*VC-mail*")) 558 (pop-to-buffer (get-buffer-create "*VC-mail*"))
559 (setq default-directory (expand-file-name "~/")) 559 (setq default-directory (expand-file-name "~/"))
560 (auto-save-mode auto-save-default) 560 (auto-save-mode auto-save-default)
@@ -619,7 +619,7 @@ See `vc-update-change-log'."
619 vc-log-file 619 vc-log-file
620 vc-log-version 620 vc-log-version
621 (buffer-string))) 621 (buffer-string)))
622 (error "No log operation is pending.")) 622 (error "No log operation is pending"))
623 ;; Return to "parent" buffer of this checkin and remove checkin window 623 ;; Return to "parent" buffer of this checkin and remove checkin window
624 (pop-to-buffer vc-parent-buffer) 624 (pop-to-buffer vc-parent-buffer)
625 (delete-windows-on (get-buffer "*VC-log*")) 625 (delete-windows-on (get-buffer "*VC-log*"))
@@ -708,7 +708,7 @@ and two version designators specifying which versions to compare."
708 (if historic 708 (if historic
709 (call-interactively 'vc-version-diff) 709 (call-interactively 'vc-version-diff)
710 (if (or (null buffer-file-name) (null (vc-name buffer-file-name))) 710 (if (or (null buffer-file-name) (null (vc-name buffer-file-name)))
711 (error "There is no version-control master associated with this buffer.")) 711 (error "There is no version-control master associated with this buffer"))
712 (let ((file buffer-file-name) 712 (let ((file buffer-file-name)
713 unchanged) 713 unchanged)
714 (or (and file (vc-name file)) 714 (or (and file (vc-name file))
@@ -979,7 +979,7 @@ directory. For each file, the version level of its latest
979version becomes part of the named configuration." 979version becomes part of the named configuration."
980 (interactive "sNew snapshot name: ") 980 (interactive "sNew snapshot name: ")
981 (if (not (vc-quiescent-p)) 981 (if (not (vc-quiescent-p))
982 (error "Can't make a snapshot, locked files are in the way.") 982 (error "Can't make a snapshot since some files are locked")
983 (vc-file-tree-walk 983 (vc-file-tree-walk
984 (function (lambda (f) (and 984 (function (lambda (f) (and
985 (vc-name f) 985 (vc-name f)
@@ -994,7 +994,7 @@ Otherwise, all registered files are checked out (unlocked) at their version
994levels in the snapshot." 994levels in the snapshot."
995 (interactive "sSnapshot name to retrieve: ") 995 (interactive "sSnapshot name to retrieve: ")
996 (if (not (vc-quiescent-p)) 996 (if (not (vc-quiescent-p))
997 (error "Can't retrieve a snapshot, locked files are in the way.") 997 (error "Can't retrieve snapshot sine some files are locked")
998 (vc-file-tree-walk 998 (vc-file-tree-walk
999 (function (lambda (f) (and 999 (function (lambda (f) (and
1000 (vc-name f) 1000 (vc-name f)
@@ -1038,7 +1038,7 @@ to that version."
1038 (not (yes-or-no-p "Discard changes? ")))) 1038 (not (yes-or-no-p "Discard changes? "))))
1039 (progn 1039 (progn
1040 (delete-window) 1040 (delete-window)
1041 (error "Revert cancelled.")) 1041 (error "Revert cancelled"))
1042 (set-buffer obuf)) 1042 (set-buffer obuf))
1043 (if changed 1043 (if changed
1044 (delete-window)) 1044 (delete-window))
@@ -1059,8 +1059,8 @@ A prefix argument means do not revert the buffer afterwards."
1059 (let* ((target (concat (vc-latest-version (buffer-file-name)))) 1059 (let* ((target (concat (vc-latest-version (buffer-file-name))))
1060 (yours (concat (vc-your-latest-version (buffer-file-name)))) 1060 (yours (concat (vc-your-latest-version (buffer-file-name))))
1061 (prompt (if (string-equal yours target) 1061 (prompt (if (string-equal yours target)
1062 "Remove your version %s from master?" 1062 "Remove your version %s from master? "
1063 "Version %s was not your change. Remove it anyway?"))) 1063 "Version %s was not your change. Remove it anyway? ")))
1064 (if (null (yes-or-no-p (format prompt target))) 1064 (if (null (yes-or-no-p (format prompt target)))
1065 nil 1065 nil
1066 (vc-backend-uncheck (buffer-file-name) target) 1066 (vc-backend-uncheck (buffer-file-name) target)
@@ -1075,17 +1075,17 @@ A prefix argument means do not revert the buffer afterwards."
1075 (interactive "fVC rename file: \nFRename to: ") 1075 (interactive "fVC rename file: \nFRename to: ")
1076 (let ((oldbuf (get-file-buffer old))) 1076 (let ((oldbuf (get-file-buffer old)))
1077 (if (buffer-modified-p oldbuf) 1077 (if (buffer-modified-p oldbuf)
1078 (error "Please save files before moving them.")) 1078 (error "Please save files before moving them"))
1079 (if (get-file-buffer new) 1079 (if (get-file-buffer new)
1080 (error "Already editing new file name.")) 1080 (error "Already editing new file name"))
1081 (let ((oldmaster (vc-name old))) 1081 (let ((oldmaster (vc-name old)))
1082 (if oldmaster 1082 (if oldmaster
1083 (if (vc-locking-user old) 1083 (if (vc-locking-user old)
1084 (error "Please check in files before moving them.")) 1084 (error "Please check in files before moving them"))
1085 (if (or (file-symlink-p oldmaster) 1085 (if (or (file-symlink-p oldmaster)
1086 ;; This had FILE, I changed it to OLD. -- rms. 1086 ;; This had FILE, I changed it to OLD. -- rms.
1087 (file-symlink-p (vc-backend-subdirectory-name old))) 1087 (file-symlink-p (vc-backend-subdirectory-name old)))
1088 (error "This is not a safe thing to do in the presence of symbolic links.")) 1088 (error "This is not a safe thing to do in the presence of symbolic links"))
1089 (rename-file oldmaster (vc-name new))) 1089 (rename-file oldmaster (vc-name new)))
1090 (if (or (not oldmaster) (file-exists-p old)) 1090 (if (or (not oldmaster) (file-exists-p old))
1091 (rename-file old new))) 1091 (rename-file old new)))
@@ -1390,7 +1390,7 @@ Return nil if there is no such person."
1390 (progn 1390 (progn
1391 (goto-char 512) 1391 (goto-char 512)
1392 (error 1392 (error
1393 "Log must be less than 512 characters. Point is now at char 512."))) 1393 "Log must be less than 512 characters; point is now at pos 512")))
1394 nil) 1394 nil)
1395 ) 1395 )
1396 1396