From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15130 invoked from network); 28 Jul 2021 01:37:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Jul 2021 01:37:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1627436229; b=A8fdFZELXQj3q1XYoHXmYh9QhDOPDW9Tw5Kv+FZshgauhmhQs9VFc7uu5r9EDUWDmRPLS+JsUr 0p3uGpXATHPCeJrnCXQfdRgab+MYm14pWWPiTX1QaLYzM2GzBMUhnjnXhyBbAU7njAdv2eTMm6 Cxn3YXAgalIfNrRnBurNz9G7hdFl5oHa6R+7Wi7W8YwoHiYEsEAWYqlTkdkKrTArrZUAPdC+PJ 4UYKfjwWJKXeRFEziqy5le4stz2gnx9JTnTJP+1cd4ylGhMNBQVfjCR2ZBfeRH3j3KcK7Quimc B/KwH+QXbgqF2JQyPN/7HGrxj1gMfyAZJFZi039kzElrcA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1627436229; bh=jPnYWIquVpuWWYHSxxGdrLeQ0g7xDFKOdWazqQBZx7o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=1nFUyPYrz1Rb32uZsXDiduoVHB+ZoPOcfL7MdkfTvfmhiBy1/ImGD7P/pHXM3F0JuXpOGsaVJ0 9/z48FDl4mqbkaZygtemb3Ho3Wu9suS5rtXH/4VamDP1QUFG05MzHNrEix32Mn/9dKGGvDNKaG Z0nMrOJ3fHOwa8SDaxQcWCCHYlOah/cO21u/Oj/6/FtKVaqWL1IA6uNnJEZm8d4HpX4xwwx0P4 k53OtdhlUjQPItXC8SIdljRRNdJzZuEoaAyPCbo8HlRhpXQ1sK6yschXJJEFG01shF5beRZNmd 8HlKqibpdWL+4zMxykzjtneISWg9FN0Aau9XRedAnp98oA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=1sfPhW6no+z4KXs3Y1yC8TKqMXF6Huy3D+1fXh+wa6A=; b=blsUXWFfzNvB4oSaeEZ5MysxWo f1lmOK8GRE+11CHJciZPC9R8OMfwa5hZC9SJwMQMQyI1Rl3fZL0GtT2w1o28J6S7WOthDgvp6xt+1 cgIGuVrTyRcT0RsEHKOIDJF500DBoowyAWxjeN/GA0CWrzYWRAykohCUW7tNCoGqSv+yRwdgH9nhc tynt7c6mb/SEPhnJOJMJLqt7+3Y8uJ7RLo4Hnnr9VXZgcdZF+hPKlYqcivUwK6a6Qg7HVZOSZPtgL Jo2sNNVYgnzIUjmT0aoNAtNiD9GDOSUy+HDfoU10xavq3Vuk/KIOyRPmq334/ceEf/ueBsA3dttnZ 1wlISO0w==; Received: from authenticated user by zero.zsh.org with local id 1m8YVP-000Mvm-Ny; Wed, 28 Jul 2021 01:37:07 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f169.google.com ([209.85.219.169]:44581) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1m8YUs-000MeL-S5; Wed, 28 Jul 2021 01:36:35 +0000 Received: by mail-yb1-f169.google.com with SMTP id w17so1189345ybl.11 for ; Tue, 27 Jul 2021 18:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1sfPhW6no+z4KXs3Y1yC8TKqMXF6Huy3D+1fXh+wa6A=; b=f5QESp79oF0UUrEalTRB3jRJYOeplVrwUmWPnfE+9nNz/wy4D2Zw6hhTfpwpj5vppI eeigZbnbwFR1RV24YQ3l2pcTNLPOUh8HbguT9u5gqcDRHRi6WvKfLqRQWrqgB3VgFlJi hgtYSeiE8V+S5NargKfdxWnPNABnen9BFnvlinmj8FWxJnX9gPN5LmgMo2AnnwbD59vm D3vLsA/L5FBCIQa3dRl8F+SYv0HpcG3ZkYl3UdylqV6YDV/VCHrDVchnvL6x9uG2rYoe CK/3vSoZ8d/hlyztBDBK+fIZByUHuJOje6Iurpyewzex+TIGA9w6f9Yu2P7HMOIx1y8M uKjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1sfPhW6no+z4KXs3Y1yC8TKqMXF6Huy3D+1fXh+wa6A=; b=gTD+mOXOY6Z1A3p7Dln4WOGW+rcZd344ATLbl23U9D+RPXFwmecq2sPRnVrMm+UYDe Kst9mFLVC2vlHYhTFw1LxM4ppgRwZFvTpOuWU0ez8P7/RgFmsNZYbTGiXqxVHJSvGbH2 TPhDgqdhERrfpxDb01FC9lCiaPBVmwSQ4MK4ilzDt1nP3eEENYeWvGyVOhcE4LqKdvzs 8mM2JbL3oJ8j+Ily7mmMbqXm/7MkasW9XePB/taTEN2gMd9/CVcltuXg1xDAPDfuND6s vQYPilquAqomYHrUtAVwWULKfAZZeXyLKQyHd+Ea1ZOoNqCbMxSFN/bz3c53cayGOd1j QNjQ== X-Gm-Message-State: AOAM532TF+tEyMtlb4Lg/CDJAyczyuClgNWFYt7M95t5ojbEtkrvwTJD fJt6jRENvyHKGXOQwozY9KdhAy8p2uGK/yhJ9FoKqg== X-Google-Smtp-Source: ABdhPJyrorR27hgHDwP12EZ6wN5yBF/HKTE3NjlSR+VCw/WMbDVfbOq5zcmTXbwla9R8wnP0CJVUwJ1XlOiqjTmIfyI= X-Received: by 2002:a25:d312:: with SMTP id e18mr18690402ybf.14.1627436193519; Tue, 27 Jul 2021 18:36:33 -0700 (PDT) MIME-Version: 1.0 References: <20210726070654.v33wzoiwpqibwlas@localhost> <20210727055227.4aobyf75yyckctve@localhost> In-Reply-To: From: Bart Schaefer Date: Tue, 27 Jul 2021 18:36:22 -0700 Message-ID: Subject: Re: [BUG] insert-last-word gets stuck at comments To: Frederick Eaton Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49202 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Jul 27, 2021 at 1:19 PM Bart Schaefer wrote: > > There's code in the insertlastword function that's (according to the > comment) supposed to stop us getting stuck, but apparently in the case > where the line is entirely empty that isn't working. It may be > possible to fix it. Hm. It's not difficult to fix in that continuing to hit picks up where it left off, but it still beeps and inserts nothing. I wonder if it would be preferable if it just skipped on to the next (that is, usually, the preceding) last word? It's possible the current misdocumented behavior dates all the way back to 849f4068de (workers/16767) in 2002 and nobody noticed. I can't find anything else obvious.