changeset 3804:d7d674c99039

(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.
author Richard M. Stallman <rms@gnu.org>
date Thu, 17 Jun 1993 05:08:23 +0000
parents c267c2431d92
children 21c6c1e1a38b
files lisp/vc.el
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Thu Jun 17 05:06:36 1993 +0000
+++ b/lisp/vc.el	Thu Jun 17 05:08:23 1993 +0000
@@ -159,8 +159,8 @@
 
 (defun vc-registration-error (file)
   (if file
-      (error "File %s is not under version control." file)
-    (error "Buffer %s is not associated with a file." (buffer-name))))
+      (error "File %s is not under version control" file)
+    (error "Buffer %s is not associated with a file" (buffer-name))))
 
 (defvar vc-binary-assoc nil)
 
@@ -372,7 +372,7 @@
      ;; a checked-out version exists, but the user may not own the lock
      ((not (string-equal owner (user-login-name)))
       (if comment
-	  (error "Sorry, you can't steal the lock on %s this way." file))
+	  (error "Sorry, you can't steal the lock on %s this way" file))
       (vc-steal-lock
        file
        (and verbose (read-string "Version to steal: "))
@@ -472,7 +472,7 @@
   "Register the current file into your version-control system."
   (interactive "P")
   (if (vc-name buffer-file-name)
-      (error "This file is already registered."))
+      (error "This file is already registered"))
   ;; Watch out for new buffers of size 0: the corresponding file
   ;; does not exist yet, even though buffer-modified-p is nil.
   (if (and (not (buffer-modified-p))
@@ -554,7 +554,7 @@
   (if (not owner)
       (setq owner (vc-locking-user file)))
   (if (not (y-or-n-p (format "Take the lock on %s:%s from %s? " file rev owner)))
-      (error "Steal cancelled."))
+      (error "Steal cancelled"))
   (pop-to-buffer (get-buffer-create "*VC-mail*"))
   (setq default-directory (expand-file-name "~/"))
   (auto-save-mode auto-save-default)
@@ -619,7 +619,7 @@
 		 vc-log-file
 		 vc-log-version
 		 (buffer-string)))
-    (error "No log operation is pending."))
+    (error "No log operation is pending"))
   ;; Return to "parent" buffer of this checkin and remove checkin window
   (pop-to-buffer vc-parent-buffer)
   (delete-windows-on (get-buffer "*VC-log*"))
@@ -708,7 +708,7 @@
   (if historic
       (call-interactively 'vc-version-diff)
     (if (or (null buffer-file-name) (null (vc-name buffer-file-name)))
-	(error "There is no version-control master associated with this buffer."))
+	(error "There is no version-control master associated with this buffer"))
     (let ((file buffer-file-name)
 	  unchanged)
       (or (and file (vc-name file))
@@ -979,7 +979,7 @@
 version becomes part of the named configuration."
   (interactive "sNew snapshot name: ")
   (if (not (vc-quiescent-p))
-      (error "Can't make a snapshot, locked files are in the way.")
+      (error "Can't make a snapshot since some files are locked")
     (vc-file-tree-walk
      (function (lambda (f) (and
 		   (vc-name f)
@@ -994,7 +994,7 @@
 levels in the snapshot."
   (interactive "sSnapshot name to retrieve: ")
   (if (not (vc-quiescent-p))
-      (error "Can't retrieve a snapshot, locked files are in the way.")
+      (error "Can't retrieve snapshot sine some files are locked")
     (vc-file-tree-walk
      (function (lambda (f) (and
 		   (vc-name f)
@@ -1038,7 +1038,7 @@
 			 (not (yes-or-no-p "Discard changes? "))))
 	(progn
 	  (delete-window)
-	  (error "Revert cancelled."))
+	  (error "Revert cancelled"))
       (set-buffer obuf))
     (if changed
 	(delete-window))
@@ -1059,8 +1059,8 @@
   (let* ((target (concat (vc-latest-version (buffer-file-name))))
 	(yours (concat (vc-your-latest-version (buffer-file-name))))
 	(prompt (if (string-equal yours target)
-		    "Remove your version %s from master?"
-		  "Version %s was not your change.  Remove it anyway?")))
+		    "Remove your version %s from master? "
+		  "Version %s was not your change.  Remove it anyway? ")))
     (if (null (yes-or-no-p (format prompt target)))
 	nil
       (vc-backend-uncheck (buffer-file-name) target)
@@ -1075,17 +1075,17 @@
   (interactive "fVC rename file: \nFRename to: ")
   (let ((oldbuf (get-file-buffer old)))
     (if (buffer-modified-p oldbuf)
-	(error "Please save files before moving them."))
+	(error "Please save files before moving them"))
     (if (get-file-buffer new)
-	(error "Already editing new file name."))
+	(error "Already editing new file name"))
     (let ((oldmaster (vc-name old)))
       (if oldmaster
 	(if (vc-locking-user old)
-	    (error "Please check in files before moving them."))
+	    (error "Please check in files before moving them"))
 	(if (or (file-symlink-p oldmaster)
 		;; This had FILE, I changed it to OLD. -- rms.
 		(file-symlink-p (vc-backend-subdirectory-name old)))
-	    (error "This is not a safe thing to do in the presence of symbolic links."))
+	    (error "This is not a safe thing to do in the presence of symbolic links"))
 	(rename-file oldmaster (vc-name new)))
       (if (or (not oldmaster) (file-exists-p old))
 	  (rename-file old new)))
@@ -1390,7 +1390,7 @@
        (progn
 	 (goto-char 512)
 	 (error
-	  "Log must be less than 512 characters.  Point is now at char 512.")))
+	  "Log must be less than 512 characters; point is now at pos 512")))
    nil)
   )