From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23660-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 56ca4790 for ; Thu, 20 Sep 2018 10:11:18 +0000 (UTC) Received: (qmail 25231 invoked by alias); 20 Sep 2018 10:11:06 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23660 Received: (qmail 14311 invoked by uid 1010); 20 Sep 2018 10:11:06 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f171.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.216.171):SA:0(-1.9/5.0):. Processed in 5.410477 secs); 20 Sep 2018 10:11:06 -0000 X-Envelope-From: mikachu@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; bh=glhhtXACFXfyCDMikfpOoEvd1oPUZZ/cayEBB171094=; b=Doang4r+j8DVIs7l50bau4weG6nybizFHgFBBvotuBs2D7INhUrcba5VYRj8drKAiV EURZkuFVKr3AcbjrTQgcNWAkTl9xA+ZS4hLHkRaWzexRx0UTdmCqrTpKQ6Hg/DT0MYO7 xlAZSvYMxt+T+oQu/Q27nAM1j5xRirTSd9/2ZARJ0EG1otuFiluiIk8Gfq2Yiu0oMLFS OMrp5/pBniyNkE1vTlAg5hLrXpMFryOe+4XFQkh6QBCEN9z73m4CWa/XMlCZYwEO5zYj hdKCyhoedrOJ1vuFECPVGs9LRH+qP2tcjCWpcn3/861HY/VA9ZPb7kCEBVX1H2BcPLGd srrA== 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; bh=glhhtXACFXfyCDMikfpOoEvd1oPUZZ/cayEBB171094=; b=AgL4XDHgmC5wurs65KpU+De52AQ2a3AOXlFpBLWJU2/hnwFGscDFkF4nNbE6LiT556 WWkLgSnKK1v6CtG8Qc9UiQGSIjIpSFn1j7piXboqr3jOuML7jp0j132gGZdxnql16UEy uublD7+Oawt2ZdtPSbKFq4GeXlefTvwfYc4o86Rl1dIq0WrKrVaP6a69ROhEtwoYpO2T HRqYXxt6cJmJx7YgoMX2E+zqypY+gZGxfhqP0fxU5riWyrJoPI/Q2nYIKijv9qg3Ujct 21GEY/I+9p1a2iezWro+FD41rh3EMhUH/4sGpz/d23H1P8HsrZAQ+iAR5m6DzjGV/S6h Ao4g== X-Gm-Message-State: APzg51AGwFTk0CL58PVtaIfs459S2ckIkEs9/s0AgrL0pfyd4pRilOmT 9WxigaDA/Xk6ncs1FKYhnoui+TOzpWHkamez5+5KBA== X-Google-Smtp-Source: ANB0VdZMdOt8aPO6fkPUXDaZ5tt/hv1M9OtR0NCZDA2I1zOUmTSCniVYfcUfaGFhwWGxovtrE27X5ipl4ugDGQxJisA= X-Received: by 2002:a0c:f0c8:: with SMTP id d8-v6mr27358061qvl.155.1537438257240; Thu, 20 Sep 2018 03:10:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180919182732.6h4ytozjg4vt2bud@spiegl.de> References: <20180912184227.yahwsdnwfddtqv3m@spiegl.de> <20180919182732.6h4ytozjg4vt2bud@spiegl.de> From: Mikael Magnusson Date: Thu, 20 Sep 2018 12:10:56 +0200 Message-ID: Subject: Re: How can I debug lost keyboard input? To: Zsh Users Content-Type: text/plain; charset="UTF-8" On Wed, Sep 19, 2018 at 8:27 PM, Andy Spiegl wrote: >> Any ideas how I can debug this? > Unfortunately I still don't know a good way to debug problems like that. > This time, I found the solution by reading zsh man pages over and over. :-) > >> BTW if I bind the functions to a different key the same thing happens. >> Uhm, as if the function would have to be loaded/initialized on the first try? > > Turned out to be exactly that. On the first call the function file is > loaded and the function initialized but NOT executed. So, I added the line > "zle finer-forward-word" at the end of the function file - after the > function definition. And now it works as expected again. zsh's default > behavior of this must have changed recently, right? > > -------- > finer-forward-word() { > local WORDCHARS=$WORDCHARS_FINER > zle forward-word > } > zle finer-forward-word > -------- > > But is that the "correct" way to do it or just a dumb workaround? Your mails are somewhat unclear, but if you have these functions defined in autoloadable files then they should look as following % cat finer-forward-word local WORDCHARS=$WORDCHARS_FINER zle forward-word Ie, do not include the "finer-forward-word() {" and "}" lines in the file. Your original versions probably work if you use autoload -k, but you don't show your autoload lines at all in the example. -- Mikael Magnusson