bug-bash
[Top][All Lists]
Advanced

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

Re: About `M-C-e` expand result `'` failed


From: Chet Ramey
Subject: Re: About `M-C-e` expand result `'` failed
Date: Wed, 7 Feb 2024 10:55:00 -0500
User-agent: Mozilla Thunderbird

On 2/6/24 4:14 PM, Mike Jonkmans wrote:
On Tue, Feb 06, 2024 at 02:59:21PM -0500, Chet Ramey wrote:
On 2/4/24 2:35 AM, Martin D Kealey wrote:

PS: Sadly M-C-r seems to be already taken, so I can't just hop one key over.

You can rebind it, you know. Anyway, let's assume the existence of a new
bindable command that (shell) quotes the (shell? readline?) words on a
line. Let's assume that this new command is bound to some sequence like
\C-xq. Then you can use a macro to create something like what you want:

"\M-\C-w":"\M-\C-e\C-xq"

with each command being separately undoable.

Assuming you want M-C-e, C-xq, Return to be a equivalent to a verbose Return.
I don't think it is doable that way, please consider:

Well, that's probably true. It argues for a separate bindable
shell-expand-and-requote command so the readline command can get access
to the still-quoted unsplit shell words and quote them appropriately.
All of it can still be individually undoable.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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