all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Subject: pcl-cvs's prompts
Date: Fri, 19 Sep 2003 17:19:14 +0900 (JST)	[thread overview]
Message-ID: <20030919.171914.105822927.jet@gyve.org> (raw)

pcl-cvs's prompts shown when I press `r(cvs-mode-remove)' and
`U(cvs-mode-unde)' are the same:

		   Delete file: "foo.el" ? (yes or no) 

They should be different to avoid the users are confused.

For undo:
		   Restore file: "foo.el" ? (yes or no) 

For remoev:
		   Delete file: "foo.el" ? (yes or no) 

Masatake YAMATO

2003-09-19  Masatake YAMATO  <jet@gyve.org>

	* pcvs.el (cvs-do-removal): Change the prompt depending on
	`filter' value.

Index: lisp/pcvs.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/pcvs.el,v
retrieving revision 1.62
diff -u -r1.62 pcvs.el
--- lisp/pcvs.el	1 Sep 2003 15:45:14 -0000	1.62
+++ lisp/pcvs.el	19 Sep 2003 08:17:04 -0000
@@ -2044,11 +2044,15 @@
     (if (not (or silent
 		 (unwind-protect
 		     (yes-or-no-p 
-		      (let ((nfiles (length files)))
+		      (let ((nfiles (length files))
+			    (verb (if (eq filter 'undo) "Restore" "Delete")))
 			(if (= 1 nfiles)
-			    (format "Delete file: \"%s\" ? " 
+			    (format "%s file: \"%s\" ? " 
+				    verb
 				    (cvs-fileinfo->file (car files)))
-			  (format "Delete %d files? " nfiles))))
+			  (format "%s %d files? " 
+				  verb
+				  nfiles))))
 		   (cvs-bury-buffer tmpbuf cvs-buffer))))
 	(progn (message "Aborting") nil)
       (dolist (fi files)

             reply	other threads:[~2003-09-19  8:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19  8:19 Masatake YAMATO [this message]
2003-09-19 16:01 ` pcl-cvs's prompts Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030919.171914.105822927.jet@gyve.org \
    --to=jet@gyve.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.