don't invoke editor when not on tty?

Martin Pool mbp at
Mon Jul 25 22:41:07 BST 2005

On Mon, 2005-07-25 at 16:38 -0500, John A Meinel wrote:
> Martin Pool wrote:
> > bzr commit runs an editor if no message is given, which is good - but
> > less so when it starts the editor when invoked from the command window
> > of emacs or an ide.  So I propose to invoke the editor only when it's
> > run from a terminal.  Is that reasonable?
> >
> Sounds okay. Except it might be nice to spawn "Notepad" or "gvim" sort
> of thing, which means it doesn't matter if you have a tty.
> (Though from my experiments of using gvim as my cvs editor, it doesn't
> work because gvim seems to detach from the calling process, so it looks
> like the editor just returns empty.)
> It might make more sense to have a "--no-editor" flag, so that emacs or
> some other ide can force the behavior instead.

That's true, or maybe a --batch as a global option?


More information about the bazaar mailing list