ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] Patch for frames et al...


From: Mike Meyer
Subject: Re: [RP] Patch for frames et al...
Date: Fri Nov 2 14:50:02 2001

Ryan Yeske <address@hidden> types:
> Mike Meyer <address@hidden> writes:
> > Doug Kearns <address@hidden> types:
> > > On Mon, Oct 29, 2001 at 08:22:38AM -0600, Mike Meyer wrote:
> > > > More commands now return values. All the variable-setting commands
> > > > except those requiring knowledge of X do so, both interactively and
> > > > from scripts.
> > > 
> > > I think that the values returned should just be prefixed with the
> > > command name and a delimiter eg. defwinfmt = %n %s %w, or possibly just
> > > the value.
> > > 
> > > At least, when not called interactively.
> > 
> > I like the "name = <value>" format. One of the goals was to make as
> > few commands as possible change their behavior when run from a script
> > vs.  interactively. That format works nicely for scripts and is
> > sufficiently verbose for interactive use as well.
> 
> I'm not sure I understand.  You want to have it look like this:
> 
> $ ratpoison --command defwinfmt
> defwinfmt = %n %s %w
> 
> Why?

Because that's easy for scripts to parse and makes sense to people as
well. That's compared to the current behavior of having it say
"Default windows format is %n %s %w" which is more than most scripts
need, or just saying "%n %s %w", which isn't quite enough information
for people.

Except, of course, that %w is only valid in frame formats, and not
window formats. :-)

        <mike
--
Mike Meyer <address@hidden>                     http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?              A: Tell them your plans.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]