This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 8/8] Convert between Windows and Unix paths directly on command line


On 11/2/2010 1:59 PM, Eric Blake wrote:
> I'm not so convinced about this one, particularly about the fact that it
> consumes a default binding rather than requiring explicit effort to enable.

It does require explicit effort: you have to type the key sequence.
There are lots of useful functions used by nobody except the half-dozen
people who know about inputrc. It's easy to tell users to type a certain
key sequence.

As for consuming a binding: rl_bind_key_if_unbound_in_map(), as the name
would suggest, defers to user-specified keybindings, and C-x C-w isn't
taken by anything by default. It's a convenient key sequence, and the
Emacs command bound to it, write-file, doesn't make any sense in a
readline context.

Doing this substitution directly on the command line is a hell of a lot
more convenient than using editing commands to wrap a word in $(cygpath
-w ...).

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]