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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31442 invoked from network); 18 Sep 2023 14:21:46 -0000 Received: from zero.zsh.org (94.142.241.90) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2023 14:21:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1695046906; b=hTq+06UGlluwtp6cCTIG87yfAyNV0Cn+JjkQ6ztNFp0NRda63+KOczwzhwK465RAWEpT1rNe5S UfteKVmB1vj2FkMrwgdcOkzKOXePnKIY5xg8KpAAJvpehXT+mDF9HPKFMSf3jzvKkXuoBfkOvq UMFTLX2ahtCNsj0YxH0ptSbrE/a+15L5epvkC0b3RqYUPiJ74xndGNQSZEEF0NL+U1ZzoVL62f GxSrCsuBLNE3L176EU7WGk72il5KCq3EfjsY/dAhO593S6tKA2yraW619XIWwjZnoFqfwHoy1x i7g34TscpyOLTm/EvBIW5QAeOpsKlHasuN5Uv0LFFJiFKw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 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-20210803; t=1695046906; bh=7y61XbKftfiUMeJj8WTQMJ+ZBo0GNeZpdbQeSrHPhN8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:List-Archive: List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:List-Id: Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID:Date: From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature: DKIM-Signature; b=rc0XwgI9lMxyJOIabBYNPrqGYgKtS187TKLiajUv0If1+72ao6xtbswBKx58wGEal6Sx58A0ds BxQlelMjYeLE7j3JnHnR3fDto9mSev+vThMQ48mucLh3YUaxOOusr0QR2PjmQ9tu3xUUUQPU2j hdFeGb8ecMefAxoYjxnTaQXF2qPZrAz64ez1UYoAliI2y251OOwNGDwXUiYpLFxsWyrPdTgh0d LkGHGjGRdlKa9rh8FiTRT5SaeAP1a6A331DkJqL4L7nv7X0ejSsxMI1fLiq2ed8KDbDF6X+m7Q GS8kPJ7AUEyLWJRiOg0krSKSp5Yz/ca6Nge2DZLWX7DX/Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=XtPv5eBzOibGcIsn1wCqDrxIwixW/G0J0M8A88fITO8=; b=F1tOrtNA2CTYAKG6M0PDfyTbFH 9Vt84EPQU3pq6/ZB80jV1BJ/3x03eQ/+rIYHI/giFSTBOmXOacjMvRjxqsmfBi5BlysUfQ+pKAKdr BaiQ16xcwQQFKSLBht4mo5hfY0rN93Bllky8CpoBvgE96hnfFFbZ7YfIXrw4g9ijl2HJlr1BWZwl+ rU+SueDqpsUQyt8wnUIibIB1dJdZF8a2ktGSwa64qdIQq9XgP9BM2sAe9LLqSJ8LoJb7VDyfeq4GY t9y/fCzKkxlR3CTetXhpiRlBLJXOqt1Z+84B0mTIwWSB9a/cTmJZZxzb8hA2RnTNL+UhSKFnX6I7C BTYwTeoQ==; Received: by zero.zsh.org with local id 1qiF8C-00012m-EV; Mon, 18 Sep 2023 14:21:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f44.google.com ([209.85.208.44]:51373) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qiF7e-0000is-Mq; Mon, 18 Sep 2023 14:21:11 +0000 Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-530e721f077so1945462a12.2 for ; Mon, 18 Sep 2023 07:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1695046870; x=1695651670; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XtPv5eBzOibGcIsn1wCqDrxIwixW/G0J0M8A88fITO8=; b=oD0H6+nVdmayQVM3K18+IPqYaXbk2hnhKCQLm8f7ilS0q+lXW+l9fabRxPUBx8acn5 QJpezr+9NFfyOwXt/p+QZI2CJibSy2mJAg03ospLAOsznRpynPWkMIE1lkQKRoB9FtOO aifFV6hRF7fyx9u22xIAL7YVcWRwoYjxcJ3WUzVgdKA7lXJgIwHNYdsK9s5F5CZL+IJr poT1tUbhXotjRQofbwWpf3uzKBGgwU4Nie5Am9LVQ9OBglAoznvKVKQ/R9aNdLshsWJN LQ9Sdc+L4F/LUTMxA+WracQQ0nEdjeqLnsebdGDjW2tJxCjVIOXsNPSjGhHxDCD+XlV/ t8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695046870; x=1695651670; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XtPv5eBzOibGcIsn1wCqDrxIwixW/G0J0M8A88fITO8=; b=bc2KHO5srPkqebkbB9qQqQayamckl1VNXvePtjstKFRjxO9QXsq8w2rSlwc5hBWuNo pkzMi6T5uO71G81mkaohnByOAeNPzWk4f2BEDEPOIykVgqNQouwQORnDT9sWJlLRyXeh 493lIvweDfEVq0nIpyC5xQfHomnjQAJ1oZ5yuBl6dvqw3nz6VynWwoaSQIW+2ITlH9SU KyB9r5PZvLQxo77u5UN69XWmUeB8oBnNojNpronkb3N1gPTx9O6jEA13oZtoNYSi4K4S d0MQzJZLaQ456m4AwCA7KuYITz63stX5HdjkAt9qyKnTptYqPV5KyZFDuJa6g2NdSeF2 UnEA== X-Gm-Message-State: AOJu0YzxCUJ1XMSgVOOnDDs5OJbl6DlKGbgjgqiKufm1myfFCJf4lnSa KCNEINlrt96lMEGrDmNU8pLNRJkTLlkbzvZfL9+DM/5FUseJ6k32 X-Google-Smtp-Source: AGHT+IGSuM4VQYO3i1Dm+tJoIkl5/ovxiOkLfTtO3a/yU4m8G+iJ24Yc7CHJfIFfURv9lQzqzXZh2221p5Yl3bBN5CU= X-Received: by 2002:a17:906:74d4:b0:9a1:c2fe:41d9 with SMTP id z20-20020a17090674d400b009a1c2fe41d9mr8165523ejl.47.1695046869899; Mon, 18 Sep 2023 07:21:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 18 Sep 2023 07:20:58 -0700 Message-ID: Subject: Re: [PATCH] User-defined widgets can continue past push-line-or-edit To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52158 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 Sun, Sep 17, 2023 at 2:55=E2=80=AFPM Bart Schaefer wrote: > > With this patch, the current user-defined widget may continue > executing through to either normal return or until another widget that > ends the ZLE session (such as accept-line) is called. However, this > is not transitive, that is, if user-defined widget X uses "zle Y" and > Y is a user-defined widget that calls push-line-or-edit, then X will > stop immediately after Y returns. Evidently I fooled myself with my test case on this one. I thought that errflag nonzero would prevent any further commands from executing in the calling function X, but the use of a new flag value avoids that, so X proceeds. However, the accept-* family are not the only other widgets that can have confusing side-effects if run after push-line-or-edit, most obviously get-line.