From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14795 invoked by alias); 3 Jul 2015 15:33:42 -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: 35677 Received: (qmail 29910 invoked from network); 3 Jul 2015 15:33:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1435937193; bh=JUmboU6q0dcCAKLnXObVCrD+As6HUo6z1ho3F8yqzYI=; h=From:To:Subject:Date:From:Subject; b=JqqU/80wcFvGoBpL/oMDZ8Ii3QyPPEYllhwF5va8pbz0kt2iJhIroTXAuvUEhad+1Nh1nlININ9rvb5VdPw9DI1bXUkg5B15fA8bDaKmD3+4oJ+4ZrnnaaoTQf7AbW4waELNo8nSvZOat2vkjqOnaT1Dzus+uYekVq8cDVZ3b7vQHrRY9DAtFFkQSmq1TYKztUiFWVLQ+i2TLzeGFYmqSk3QXv4Lsjn602yd3EX0H5EXaHVGvaEAbdHcas8UidA3Is9aJsnZ2kzri4z4ifEMQyhk1MOPInqOwSnshJ4rRe55xDQcDqABPuWPlbABywiWUh2VsjAY4qUfdJP0m7/VuQ== X-Yahoo-Newman-Id: 446816.75093.bm@smtp146.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: sdZ9vPsVM1lhWteuzPDu9hrUA7m0ITnKKSy6Tw4VI8GA4DB qLAVg3e5biMfU7qTZrCdv.CwsTU2gxBPa5RWU8KXZhD_j4yuJb1NYgY0zMJq 1F0eVkk29dCpJ9pvzIVaj5QrSUaQedinabLtlLk4LZ.VcQm2GJkgaBx1t5Bt rfLLt2ITnYb6jwMejmxnh1Bq119IAibqxboFHckPsaamS1mvWglansQ0YN.B gCCWS4Zc0X9r4SKNg1H0dvHrQjQcThiKAVKpuvivspgtJMO11XXlDmnGOBm3 rZeG42WGxyzSByWeDc7g3pN8F6GtxZyP9rQd46u4YBUqJB7roXIx.HuEWXIc 8hW_IeoLTf9aLzEwZCOE9oiVdnd4DMbstwcJ_1GK49JwbWQm7bp_ynEtz9jx nww6BjsudYqnO3ufq36xAkDWnte3eF9iwuzJahFrB.fpE.oyAj.hZ27Fe9hh ke3c6DmwrTOaLB1cwNkSHMgIpyZyrEXdA5J0bziD7FIuaqL6suZwkeeRhc0n .l0_jpsCJorOCW.A0Bn.7ryKMbMsy4Q-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: Undo is also confused with narrow-to-region MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8241.1435937191.1@thecus.kiddle.eu> Date: Fri, 03 Jul 2015 17:26:31 +0200 Message-ID: <8242.1435937191@thecus.kiddle.eu> Within narrow-to-region, undo will put back the full BUFFER that is then duplicated from PREDISPLAY/POSTDISPLAY. After narrow-to-region, the opposite problem occurs with the part that was not part of the BUFFER being lost. This isn't that easy to solve. recursive-edit could save and restore the undo structures but for some uses of recursive-edit, such as that shown for it in the manual, that might not be the right thing anyway. Oliver