delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/02/17:09:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CD07DED.9050200@gmail.com>
Date: Tue, 02 Nov 2010 14:09:01 -0700
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [patch 8/8] Convert between Windows and Unix paths directly on command line
References: <20101102204855 DOT 153395100 AT gmail DOT com> <20101102205043 DOT 339395100 AT gmail DOT com> <4CD07B9D DOT 5050605 AT redhat DOT com>
In-Reply-To: <4CD07B9D.5050605@redhat.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019