Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'modify': 0.07; 'assuming': 0.09; 'bash': 0.09; 'statements': 0.09; 'cc:addr:python-list': 0.11; 'assume': 0.14; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'presume': 0.16; 'attach': 0.16; 'do,': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'ticket': 0.19; 'finished': 0.19; 'input': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'mon,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'possibly': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'patch': 0.29; 'message- id:@mail.gmail.com': 0.30; 'correctly.': 0.31; 'default,': 0.31; 'enabled': 0.31; 'subject:next': 0.31; 'open': 0.33; 'there,': 0.34; "i'd": 0.34; 'received:google.com': 0.35; 'next': 0.36; 'should': 0.36; 'positive': 0.37; 'clear': 0.37; 'easily': 0.37; 'skip:o 20': 0.38; 'apple': 0.38; 'pm,': 0.38; 'does': 0.39; 'even': 0.60; 'eventually': 0.60; 'forum': 0.61; 'hear': 0.63; 'series': 0.66; 'here': 0.66; 'opinions': 0.70; 'press': 0.70; 'touch': 0.74; 'subject:get': 0.81; 'disappear': 0.84; 'keystrokes': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2AdAo53ATCuj7/Za+i3vBi/By60kZPmeolE6NEHFLro=; b=02tsQkS++mUwWFZwLTgs8aWLSudfkviOr8Zr160ySzokdx5VKgu+aKpadUZ/k18ses 8cueFmIp3J1Y5N86U/HtRnyAaHZA74Lqc38TWWW+XDkMagqKR6fIUg6SlvnvNVZGBVNd MsqDhaYaDssOw9v8dJJ7OB97KSqUI1R9j1S0PPWt+sB7FNVwFsFYWSTmjDvrqqZC/EVm 35gjyuNrPtlsTaX1alnJPiHk5TYN9/dru86rkcH3ivWSUW8aRDKtzYiPoltz8XQJNeg2 G6eGbdh1I3vetFaVuzYZKVeja/nh5gwSBCayUdjjjksUYWgqaMao5wwtf2sXMaReZTfr n7ng== MIME-Version: 1.0 X-Received: by 10.50.39.8 with SMTP id l8mr833696igk.13.1408388761059; Mon, 18 Aug 2014 12:06:01 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <87egwdiqfq.fsf_-_@nautilus.nautilus> References: <232acf45-096d-466a-aa75-06d8c378b128@googlegroups.com> <53cc376e$0$2898$e4fe514c@news.xs4all.nl> <53926733-5e65-482f-96bc-0171c6a93d59@googlegroups.com> <4882fd4d-b772-4ebb-8aaa-0c20be6051b6@googlegroups.com> <53cd47fc$0$6574$c3e8da3$5496439d@news.astraweb.com> <87egwdiqfq.fsf_-_@nautilus.nautilus> Date: Mon, 18 Aug 2014 14:06:01 -0500 X-Google-Sender-Auth: ABlH5x5ndVbcqi21vJq32uH1mPE Subject: Re: Adapt bash readline operate-and-get-next From: Skip Montanaro To: Lele Gaifax Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408388768 news.xs4all.nl 2970 [2001:888:2000:d::a6]:58385 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76504 On Mon, Aug 18, 2014 at 1:49 PM, Lele Gaifax wrote: > Even if I know this is not the right forum and I should (and I > eventually do, assuming a positive feedback) instead open a ticket and > attach the patch there, I'd like to hear opinions on whether this should > be enabled by default, and possibly get in touch with some Apple > owner... Looks reasonable to me, at least if I understand the intent correctly. I've never used this functionality in bash (wasn't aware it existed). I assume the intention here is to easily re-execute compound statements pulled from saved history. Does your position in the history disappear if you operate_and_get_next(), then modify the next recalled input line? When you are finished with a series of Ctl-O keystrokes I presume you (as the user) press Ctl-U or Ctl-K to clear the input buffer? Skip