From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3168 invoked by alias); 7 Apr 2018 11:37:22 -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: List-Unsubscribe: X-Seq: 42606 Received: (qmail 5561 invoked by uid 1010); 7 Apr 2018 11:37:22 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.42):SA:0(-1.1/5.0):. Processed in 15.061795 secs); 07 Apr 2018 11:37:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,MIME_BOUND_DIGITS_15,RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=97C1lyljpnE79tzZpTAbdnI3XyljcqpNgWDNc2UszFY=; b=YJbpVZGmMyGD8TNHq06jkhmL31KDLk3i6MT7UT4doCSS/S4MN/1qUozdro1UrcBanl vnWX9BamCEAWuQB2u1nJN7JwFpNsukf0Xx7iSuKz+gSI9rWFVYHeTXs+SuYXKxsBddVc VpiUqQ5vi7SssRuzPP3cDG63QTc14FvG2b2UgXfiKrZok3l4qBPvH32kYlLcy1yTqiKj zsv6lig0GvO2DJt/a/qz9+MBmLKgxpzRd6uoaQmYzMUC3zdacxUifJclNcVMzT1eGePy V4ayl1CElqtLasEajo9QcRA18+9Hm0Yvy97XiT6V1xHQKyq9VOSUx7M1r/278uFt9yEK jUuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=97C1lyljpnE79tzZpTAbdnI3XyljcqpNgWDNc2UszFY=; b=tgvSwbtcOXhP9pxKd0yzi/x+Ge8q41MaHk4fgjjtWNhpv7S2NMziskJbf4TtTDzC6i VacxZK6R66sgcKieu8+9CwZvqlzbqoVV0n67kiXhNC3c6eO4g6BDo4msivUVW7A3ot9x TMGX5xTN04zSHea9r6b98/Uhcz9CKQca9vwiyvuz0cDU0C9nZsSYQ1Sl8o9EbMC6ZkyM eQ8xZbpnbP0vSYR5K3jF8GEXWg/5YS6jryC5LSA2rQYKdtnQAnQRGd/lmBf0Po3crGTR mTTljnD3zLhmEjBZerHAYbkXfu0D130zMqqppQzxWkclVZY+PjgPgmzIpabAW+W+CikN LzIQ== X-Gm-Message-State: AElRT7FUezAS3LuySsu90RzE7gWl4IHTfE7D6d9qDzFQNoHnGW942FTV 7ZF7CZsN3QQ56IdI8nXH2stbyqTA4sciOSO8cTM= X-Google-Smtp-Source: AIpwx4+nB9JbUkt76SK+pZT5fhC0mDcqo7RlsKCfpxVTpK5+tB/zHctcOIrBL0UV6U/plNsutIDfxO1UTtP7O7femWY= X-Received: by 2002:aca:ad4a:: with SMTP id w71-v6mr17817569oie.231.1523101024284; Sat, 07 Apr 2018 04:37:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <32761.1523065994@thecus> References: <32761.1523065994@thecus> From: Sebastian Gniazdowski Date: Sat, 7 Apr 2018 13:36:43 +0200 Message-ID: Subject: Re: PATCH: properly unset the zle registers hash To: Oliver Kiddle Cc: Zsh workers Content-Type: multipart/alternative; boundary="0000000000008276290569409793" --0000000000008276290569409793 Content-Type: text/plain; charset="UTF-8" On 7 April 2018 at 03:53, Oliver Kiddle wrote: > Though, mapfile triggers the address sanitizer for an invalid > free before I can verify this path with it. > mapfile has significant room for quality and feature improvements, but the fact that metafication and unicode are in the way is discouraging. I mean, to find character N=1000, one has to traverse buffer with mbtowc, counting unicode characters. So one feature could be allowing to index by bytes, with use case like: get last 1000 bytes from large log file, then process as unicode string, extracting last 10 lines. Metafication is in the way, getarg/getindex cannot be customized like getter and setter, so byte-indexing is problematic. -- Best regards, Sebastian Gniazdowski --0000000000008276290569409793--