You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by cm...@collab.net on 2002/04/08 16:43:58 UTC

Re: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

<<Removed svn@subversion.collab.net from the Cc: list>>

> I'm with Ben here.

For what it's worth, I'm with Ben, too, so long as we have a config
option for disabling pop-up editors.  If that is in place, I'm fine
with VI/NOTEPAD as defaults (though I really think they should be in
the svn_private_configs.h/.hw files as a compile time #define,
something like SVN_DEFAULT_TEXT_EDITOR or something).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

Posted by Colin Putney <co...@whistler.com>.
On Tuesday, April 9, 2002, at 10:53  AM, Karl Fogel wrote:

> Sorry, still a strong -1 on defaulting to vi/notepad.

I'm strongly -1 as well. I'd been struggling to figure out why exactly, 
until Karl nailed it.

Surprising an experienced CVS user with a detailed error message 
describing how to reproduce CVS's behaviour is far preferable to 
surprising a newbie with vi.

-cwp

Colin Putney				www.whistler.com
Information Systems			(877) 932-0606
Whistler.com				(604) 935-0035 x221


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
cmpilato@collab.net writes:
> > I'm with Ben here.
> 
> For what it's worth, I'm with Ben, too, so long as we have a config
> option for disabling pop-up editors.  If that is in place, I'm fine
> with VI/NOTEPAD as defaults (though I really think they should be in
> the svn_private_configs.h/.hw files as a compile time #define,
> something like SVN_DEFAULT_TEXT_EDITOR or something).

Sorry, still a strong -1 on defaulting to vi/notepad.

First: the claim that "10 million other programs on Unix" pop up
editors is not really true.  Maybe there are zillions of such
programs, but they are not commonly used programs.  Except for CVS, I
don't recall ever running into one, in more than 10 years of almost
daily Unix use.

Another bit of evidence contributing to my opinion is: I've helped
train tons of newbie CVS users, and by far the most common reaction to
editor pop-up is confusion.  "Why did it do that?  I just wanted to
commit something!"  (And a user who is surprised by this is *not*
going to know what to do when confronted with vi, let's face it.  The
failure mode here is awful because it targets precisely the people
least likely to have the experience to handle it.)

Mike Pilato's initial reasoning was spot on: if people's environment
indicates that they have a default editor for such situations (and
we'll just have to trust $EDITOR here), then we pop it up.  If there's
no such indication, then we error out, and the error explains the
various ways (including $EDITOR) that one can specify a log message.

This is preferable because it doesn't leave the user in a "state" that
they then have to get out of before they feel safe.  Seeing an error
on your screen may be a surprise, but you know what to do -- namely,
read it -- and in the meantime, you've got your prompt back (by
prompt, I just mean "your prior state", IOW, this reasoning applies to
GUIs as well).  Whereas having an editor pop up in your face means you
don't necessarily know what to do next.  Something truly unexpected
has happened, and now you'll have to spend an arbitrary amount of time
figuring it out.  Blecch.

Tossing people into that kind of state is exactly what makes computers
unpleasant.

It's irrelevant to offer a configuration option for turning off pop-up
behavior.  If a person knew enough to set that option, then they'd
probably know enough not to be bothered by pop-up behavior.  But we
need a default behavior that works for people who *don't* know about
this whole question.

(This doesn't mean that such a config option is a bad idea.  Users who
know the available options may still want to suppress pop-up behavior.
All I'm saying is that the config option is useless *as a solution for
those who don't already know*, and therefore this discussion must
still be about the right default behavior.)

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

Posted by Branko Čibej <br...@xbc.nu>.
Sander Striker wrote:

>>From: Greg Stein [mailto:gstein@lyra.org]
>>Sent: 08 April 2002 20:13
>>
>
>>On Mon, Apr 08, 2002 at 11:43:58AM -0500, cmpilato@collab.net wrote:
>>
>>><<Removed svn@subversion.collab.net from the Cc: list>>
>>>
>>>>I'm with Ben here.
>>>>
>>>For what it's worth, I'm with Ben, too, so long as we have a config
>>>option for disabling pop-up editors.  If that is in place, I'm fine
>>>with VI/NOTEPAD as defaults (though I really think they should be in
>>>the svn_private_configs.h/.hw files as a compile time #define,
>>>something like SVN_DEFAULT_TEXT_EDITOR or something).
>>>
>>Wouldn't /bin/false be a good way to disable the functionality? It will
>>return a failure, so we get the whole "abort" thing. Maybe that still isn't
>>quite nice enough, so an "editor = no" option might be possible.
>>
>
>An "editor = no" option is the cleanest way to do it IMO.  At least
>the user will think of this.  I don't want to document: "if you don't
>want an editor popping up, edit your shell profile by adding a line
>like: export SVN_EDITOR=/bin/false".  Seems a bit silly.
>
Not to mention that It Does Not Work On Windows^TM.


-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

Posted by Sander Striker <st...@apache.org>.
> From: Greg Stein [mailto:gstein@lyra.org]
> Sent: 08 April 2002 20:13

> On Mon, Apr 08, 2002 at 11:43:58AM -0500, cmpilato@collab.net wrote:
> > <<Removed svn@subversion.collab.net from the Cc: list>>
> > 
> > > I'm with Ben here.
> > 
> > For what it's worth, I'm with Ben, too, so long as we have a config
> > option for disabling pop-up editors.  If that is in place, I'm fine
> > with VI/NOTEPAD as defaults (though I really think they should be in
> > the svn_private_configs.h/.hw files as a compile time #define,
> > something like SVN_DEFAULT_TEXT_EDITOR or something).
> 
> Wouldn't /bin/false be a good way to disable the functionality? It will
> return a failure, so we get the whole "abort" thing. Maybe that still isn't
> quite nice enough, so an "editor = no" option might be possible.

An "editor = no" option is the cleanest way to do it IMO.  At least
the user will think of this.  I don't want to document: "if you don't
want an editor popping up, edit your shell profile by adding a line
like: export SVN_EDITOR=/bin/false".  Seems a bit silly.
 
> Cheers,
> -g

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 1649 - trunk/subversion/libsvn_client trunk/subversion/clients/cmdline

Posted by Greg Stein <gs...@lyra.org>.
On Mon, Apr 08, 2002 at 11:43:58AM -0500, cmpilato@collab.net wrote:
> <<Removed svn@subversion.collab.net from the Cc: list>>
> 
> > I'm with Ben here.
> 
> For what it's worth, I'm with Ben, too, so long as we have a config
> option for disabling pop-up editors.  If that is in place, I'm fine
> with VI/NOTEPAD as defaults (though I really think they should be in
> the svn_private_configs.h/.hw files as a compile time #define,
> something like SVN_DEFAULT_TEXT_EDITOR or something).

Wouldn't /bin/false be a good way to disable the functionality? It will
return a failure, so we get the whole "abort" thing. Maybe that still isn't
quite nice enough, so an "editor = no" option might be possible.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org