unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Eric Hanchrow <offby1@blarg.net>
Cc: emacs-devel@gnu.org
Subject: Re: C-x v v no longer works the way it used to
Date: Mon, 15 Oct 2007 07:51:24 +0900	[thread overview]
Message-ID: <87odf18g43.fsf@catnip.gol.com> (raw)
In-Reply-To: <87y7e59zs1.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Sun\, 14 Oct 2007 14\:01\:18 -0700")

Eric Hanchrow <offby1@blarg.net> writes:
>     Jim> if I were visiting a non-version-controlled file and hit C-x
>     Jim> v v, it would effectively add that single file to the version
>     Jim> control system.  i.e., cvs add, git add, etc.
>
>     Jim> Now, all it does is print "No fileset is available here."
>     Jim> Is this intentional?  
>
> I assume so.

If so, it's arguably wrong.  "C-x v v" is "do the right thing for
version control", not "commit this file".

Even if new behavior _is_ desirable, the error message is very vague and
confusing; something like "The file NAME is not under revision control;
use <binding> to add it" would be much more useful.

I think maybe some good guidelines might be:

  1) Don't use unusual terms like "fileset" in error messages unless
     it's impossible to do better.

  2) Try to refer to something concrete that the user can associate with
     the command he gave (one could use a helper function for signalling
     vc errors that would use alternative phrasing depending on the
     situation, e.g., "file FOO" for a single file, and "files FOO, BAR,
     BAZ" for multiple files, etc).

  3) Don't use vague phrasing like "not available here".  What does
     "here" refer to -- the machine, the current directory, some
     internal code state...?  What does "not available" mean?  It sounds
     like it could be a temporary error...

-Miles

-- 
((lambda (x) (list x x)) (lambda (x) (list x x)))

  reply	other threads:[~2007-10-14 22:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-14 20:51 C-x v v no longer works the way it used to Jim Meyering
2007-10-14 21:01 ` Eric Hanchrow
2007-10-14 22:51   ` Miles Bader [this message]
2007-10-15  0:50 ` Stefan Monnier
2007-10-15  2:09   ` Eric S. Raymond
2007-10-19 23:21   ` Dan Nicolaescu
2007-10-20 16:56     ` Jim Meyering
2007-10-20 21:07     ` Eric S. Raymond
2007-10-21  2:59       ` Dan Nicolaescu
2007-11-12 15:32         ` Dan Nicolaescu
2007-11-13 16:48           ` Dan Nicolaescu
2007-11-14 10:54             ` Jim Meyering

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87odf18g43.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=offby1@blarg.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).