From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25249 invoked by alias); 7 Nov 2014 10:23:01 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33629 Received: (qmail 15455 invoked from network); 7 Nov 2014 10:22:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1415355348; bh=n9unqzWjeNh0DLHup+Ttq+J6nRv5u3OS7tAI1xilvLY=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=QmqE/2ykAN+hNHeAT3WDHqVAfNO5GuAulzadMNrJsJsjcQQ+uNj4hsIOsAJWOFCNe8ic0zT+hR0Xb58DVQAUjI0tq7sIUNuCEpYiGyr1VOD8CmZUTmTzdQQ8RkClbaDHhBJHLakxhkZorSA36DQ81bkat+mmwQYTvgVRp89qpyf2hFhzT0JI85XrZSyA+tx43g84Di6fl0Ap8hG92fioJ8dBTbp87C+pk1Ro7BMOti3EiBRvLteAqkeBY/rl4H7kSnrnvJjmYZrp38pDRu/n0aBtiuHs6yxwBEmi0FNRldKRa7fG9IAJOTA6Iz2wQB6Gcfg/8ndDOXWVTeHH9m8a6w== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.co.uk; b=iNqbknVUzKLYlU2Hh8+nmU2eMntzXsmN1KTKBpO69P8ZauyIpWYpsMyhvrVEv5GQk02GAjGOblWPrr8i5NRJgLas7/F4gYNpzgfHw2h1rb2unJu2G5Oe2QuSCISYhGc+45LoYN1lBTFDJBg0Z+Gx1YbTuztCQUWAI8jIu7xl5Ka9lTLoRUuBjeECKkLqOzNFsynM/bHqTufom8mSDNWtR5/+TAuSJhk0hw45B8a/CWkLIA6s1CtD3cfaf2Eg1Mo4y4DlKBq41LDFqvZqLfQBe76c1cYCC89zzOaPTgq9ts2VymFVrQDQAIafVZ5wr/+GYb5Euvb1VIQPTrY08aLNXA==; X-Yahoo-Newman-Id: 134496.31236.bm@smtp124.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8HcF9voVM1kdDdz82haVeSkuIxBet0uiYuyurzv1BnzhRiC CA3.Td7K7Lc_Iu18TSzkKm9xKO83bMSCsv1fO3MazrZ07y6eTJgkk1TP4pE4 jgQCMfqcdA32gIx9anF0ygCirmfc9YYCLV7FHqgWqs_p0zgaHYKDuNXWw8Qu Jp3scFBbN__ZXVZRzbmel4F0WekKiN7TV6IjGZeHaG0P90.vQuj4oP8.P1Re 8cmE7H7vnTkRMPYgSs6ar8Idi1AtVpXm5zNucJ.DoppeJ7Q4.R..hN_oTQMb kKD.XLQl.QI.knBhiccfI_brZA4hUVvBxmvnTsW84NI5MR_tUXX.2NmRChhG uVXIkTD5NKgybiQfu2nZr9aQlh5onBpKTwAO4YzdNduQxIvIjHtixwTJe2bD glzC2IZle5R..6sAPWNgg9PFbaNSbm7vSJV8IfdTSknO8EyYhaKzpHdZ6q8P Z.lTf0LvtRlp.D2LDsNzLlsFhCw1pLVv.AD27lkkucVZv_opRAmiONdu2XWV LLZ1yGfHma._WfwR3Cf5KgM0INs8Yew-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <1415351070-22018-1-git-send-email-mikachu@gmail.com> From: Oliver Kiddle References: <8414.1415317703@thecus.kiddle.eu> <1415351070-22018-1-git-send-email-mikachu@gmail.com> To: zsh-workers@zsh.org Subject: Re: PATCH: Add an option to disable deactivating region hilighting whenever you edit something MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10471.1415354720.1@thecus.kiddle.eu> Date: Fri, 07 Nov 2014 11:15:46 +0100 Message-ID: <10571.1415355346@thecus.kiddle.eu> Mikael Magnusson wrote: > > While we're on the topic of deactivating the region, I've had this > patch lying around forever in my local tree, but never cared enough to > send it. It just keeps the region on until the user disables it again, I > use this very complicated widget: I'm concerned that, as is often the case with options, it is a somewhat blunt instrument. It isn't just edits that this affects. Most vi commands too: I'd want the option set for vi command mode but not for vi insert mode. That said, the use case you show is quite nice. The region should be more flexible (and I have some stuff coming in this area which I probably now need to start unloading). Currently, the region is fixed to an emacs region model so 'region_active = 0' typically appears in shared code. We need control to move up to individual widgets somewhat more. I can think of a few ways this might be more versatile, setting a flag on the zle widget so you might mark self-insert as being region preserving might be one option. I've pondered adding this for completion suffix removal too. We also have some prefix widgets such as for numeric arguments which affect the behaviour of the following widget. If we do go with the option, I'll have a think about the name. Oliver