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 2136 invoked from network); 26 Jul 2021 22:50:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jul 2021 22:50:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1627339846; b=moCFeXssUwlYSD4XITI+wf3wR8E4ynmxrWGvzWMkvv235zx+jXh+JYmrK0+dlglOeyrnQT9SmW p38jTvy5/d6hMRyGWqdcoK3g14o6i0Vqi+xaVzA4q6OJlSwcrlqg32n9mejqrGlVPYgyxWN5K6 zCyPDPxbn+4mMCS0jG+XhTcdhc268sOAx+jgOZqjjVTM/on3g9HbtN0cmCQa3yQZCpGrBq81mu 0i2zmO6Omms7doPxkmpwQLCCr42KSZCBbpIgYIW6ScBKjXprMPOTmg3+iNbrZ0orbzMrl9WXhW +Z86bKXAbsCKfQo2nHLZZyBITjRZVCg864V7XFa7XYtNEg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f180.google.com) smtp.remote-ip=209.85.219.180; 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=1627339846; bh=HWk1ZWffVbVkDVXrG6c5XjHkjpQZTpc8nGzCm7pBzfA=; 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=yud3AfLRuqNqX/nKHBv+w7UejoOL6thkfDiUQ4Mev7Cbw0OJ2gI4cB+rTzjKlSkuUdLMxpyi81 mwttBeJ9fB9CNSJNKblbzXq4D7KyoycmPkH2hnxTPkKgQdDYZ7ra+ZU+tjFkdtFg5OPUOgeIVm ccpSGliEDpJiv4HdRIjpadEmUELQXKVUoBrvyo1gtsOAVHMGpcXiZMi0RfdxjsHxWyBth5YSsf HxSBxUsi0L08tueQUVQLsh87fQLe7MOFcbZDUvVlj4IA5R3eJFsFxG5CRfs4A8zLZZOejp2KJs 3CrrIq7do39MF1jQlgS5EFyap1HkmX9ADmhHGhYJFIG0ig==; 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=xfEeVn74uM2bMWqemKrPFzmYGrg7x3BrZjQ8kx9Q6Ho=; b=GkqYXB/+NBi5X8DRMZ757T4833 vRb6SE3BUxXjgTagsmqJ5EcCbGsZVN3r/SNCiVe8M9L4bLnbI7qddfARokWa16VR43DtqAAnf5T2U /bXa9he4vbGmArJ6XlAT9gC4jZx1AzEGnrPDnTS2SCGmuF8bg9Y63DkW565rBVvTF5sGUrn4oJQ79 4EYJiqmIJLD0EBThRNpsMH2LSk3EKf+aRWouLbxo074T4GQUN79FI9ArmfMcXExg9AfkQ1yyu3x/S 6qouC6f6L1nTqKxpHqvwO+jv61E/3Fda0AapVbjjgkPU1W6FEkTBYToDLzdDcKAYZrWK2O9H8nGmJ UC1U7G0w==; Received: from authenticated user by zero.zsh.org with local id 1m89Qq-000KDR-Pa; Mon, 26 Jul 2021 22:50:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f180.google.com) smtp.remote-ip=209.85.219.180; 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-f180.google.com ([209.85.219.180]:41617) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1m89Qb-000Jvr-8r; Mon, 26 Jul 2021 22:50:29 +0000 Received: by mail-yb1-f180.google.com with SMTP id z18so17496140ybg.8 for ; Mon, 26 Jul 2021 15:50:29 -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=xfEeVn74uM2bMWqemKrPFzmYGrg7x3BrZjQ8kx9Q6Ho=; b=mLgGehmPohEh4pyd7Ozrpn/IcpHqarwvxW1RkF3HV9SlMS0JY4oxKoMVyqB5YJq+1/ /bmXlXRmQphRW2Usrbu51g9/PYR/5GxLsw8NwkP2S946YxCNP7smwv1yDEZok+Wko4br jXFFpjzg+v5BaRuW9P0JDYNC51oLGtGEI9xHRcR6PU8z/FVXVzP7oVwY0e+bXrxSNIeO i6PdSXc86/+2FcuVZ3vlQpLRJOA16IWGuYp2o0cqvB8ceviFuTDNIAYkBsvdVg5N5ZYO lCGX9K/t9fXeYcIEUvUoHrcnwqNeD9lfPtKzWO8v2G0wFolRBgQw5Z0v37Uch5Qnqhq3 Bsow== 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=xfEeVn74uM2bMWqemKrPFzmYGrg7x3BrZjQ8kx9Q6Ho=; b=bkpezkRDX8Un/WyB1v1t+jjOjjkqyDfGw/kkAzDB5oZaQYgODYYsSuA6gSrcSLwsUg X2D9PSQKxB7fskauVsRyWYCIh/VFhD8xlh72Cgm1EjtMIBlJcA8ZosVzmY8hcc1AGUCc TclAfiJmfrGt9dtZm/zu+HdgRWLxjnU5/pKVgKAB2Zk2ZCB6dfSEBYi6D2doQMxU5y6R N0pB560vtTSyxE8oH3kNVwB0gBo2mv11u+dqJ9bcTAWmwXIX8/MrHhhl+ZhxA5X8HeZt 4PcxdkZ/qaKF8i50D2pV0KtVfr5p7eABTCVjH7aYJvKCb7sxKVIfAR3NnGrJieuxXDr7 Bi/g== X-Gm-Message-State: AOAM533rfOeHsxYOzMBf+s/9hKI27eckmjbyVwSg8z3+gj2hzziqhoI1 hDULSXqdVsdJMuyk9S/pqIywJDznwrAwDTHCQCtS5w== X-Google-Smtp-Source: ABdhPJxsjbRzK9WaFq7fK5HHFv2nrtSa5lx8+bqUvMiJdQ1CoCFRqQTk+5vl4i6vupgCa0Q/3nb7LCj/Ho3bmSZagog= X-Received: by 2002:a25:9201:: with SMTP id b1mr106513ybo.354.1627339828127; Mon, 26 Jul 2021 15:50:28 -0700 (PDT) MIME-Version: 1.0 References: <20210726070654.v33wzoiwpqibwlas@localhost> In-Reply-To: <20210726070654.v33wzoiwpqibwlas@localhost> From: Bart Schaefer Date: Mon, 26 Jul 2021 15:50:17 -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: 49195 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 Mon, Jul 26, 2021 at 12:07 AM Frederick Eaton wrote: > > This may be a somewhat minor bug, but I think that when > interactive_comments is set, the 'insert-last-word' widget gets stuck > on lines that are fully commented: I'm able to reproduce this. A fully-commented line has an event number but contains no words; e.g., it's also an "error" to attempt to refer to event number 3 e.g. with !3 in the example: > $ zsh -f -i > % setopt interactive_comments > % echo hi #comment > hi > % # blah blah > % echo bye #comment > bye > % echo foo > foo > % echo ... At this point: % !3 zsh: no such word in event Even though !2 and !4 work as expected. So insert-last-word gets as far as event 3 and then gets the no-such-word error, which interrupts it. A workaround is to enable smart-insert-last-word.