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 3136 invoked from network); 10 May 2021 17:12:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 May 2021 17:12:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620666734; b=oMOHdGuy2duJQRUM5FVWMstXEfx6bIKyLzV4XCz9xG8QDItWWPzvAq0WCTf/ni4DjV057i9/xE kEglScjth3vBkHdE6ORuzfOg2pKkWx76salW9mlaoGfyIB8UXJ3rCUmTrfNcdcz9XkelLmr1xU Na0TH+UOLZQVLMLmJPYa0wHQX4soan21QQNnED4VrH9zBaU4yOBewykYaijqtOxx/tAUV1b+nz 1Hg/mTbqH1zKXNcn578/3CtwkB/zPGRlmW6n0crWkvE1IBf7wO95ml6kdaDIdl73hIzMBCcPS/ AKkQvh+BIyxrGRrSUbnN+GoH88xICiQ8GDkz5gYcTWEzHg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; 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=1620666734; bh=2JllQX9poOlxO5W/HYbOuae5nP4h4OPUVEdQIDaI73o=; 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:DKIM-Signature; b=e+dkWgEg4X0aYCt6YnYDotQFr3cfZxuuGOqv53jUKvp+3hAN4oayeprUYdUR1R1t5BXXev244f Ijw68NP2k7l08cUKkYM1ggt1ALhjDQf7Aj/xHx3y+E4DngMIf/wyobHLEeHqmt+FRoZYDmVW7F GRUEANmDTb9DOGpHGEbKRDLlgKEQTSGDLE2rQ3cC7jFB/hXalQK5y61k5CJcq4XeRyCH7aR+Kb 1DhsUQ8xzmvOjvKs3WJ72HLvapxMrSaMLSuE543BWmOb4HV4stA02ATJPOInMhZhMiKtsDivU0 5eP3F18o0akdhiQzQ71/Ba+/nY7kGfz60rF9fe5LD/oP5g==; 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-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=wo0aTOWi/PcHE3LYZaeTVGDzfxyMRSUsvzcgw6a8n4U=; b=l03tD8nPBNwhFkp8bJcKCp1Oo4 FNZjWZ8roE57TT82JdEoFieb3Xbxi5pPuvnKXx8W1AC9DUaIt/06Tb3oSYcBgyed0XbOcLo85seua aW8DJFHnmCwVr/P5BFQj3j2VFLW09dpg6CiRvKnpMuYzjgjWE6X2mLM3KPv4qjDv1OoDglXxjrZ0e nIpJ/uTvVzehRucuYRZ/6fp71f0KaLk3oIJAHazzxlWrja/bguoUtI7tkfuubGx3XV3+kqaxnB9zG c3/J1vEl1HyFDcJmy3otHWiwCkmQntk5QRzr19jQYqAkXpvUOpIniBEtAfye6ijn90qED9O4WaZnc 9CkNJS4A==; Received: from authenticated user by zero.zsh.org with local id 1lg9S0-000Oc2-Qh; Mon, 10 May 2021 17:12:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; 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-ot1-f51.google.com ([209.85.210.51]:45705) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lg9Rj-000OKl-5Y; Mon, 10 May 2021 17:11:56 +0000 Received: by mail-ot1-f51.google.com with SMTP id f75-20020a9d03d10000b0290280def9ab76so15054707otf.12 for ; Mon, 10 May 2021 10:11:54 -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 :content-transfer-encoding; bh=wo0aTOWi/PcHE3LYZaeTVGDzfxyMRSUsvzcgw6a8n4U=; b=nbAuDfa3R6xHzQ0nIRP/eHLg4zyO1YpJqRRXuTRLl4O60mUbJ1Bpw3Nt7XVaejfYFs np3bAcQ0eyQIvGUatRBxlJA/5oYQob0FK96DpZXF+HbO9OzM8mDU9TYKevEzXXzlvvG8 mnLVf0dCCHCCUe4V2TVbCNWwYvFCnjn4UbSrTSlbZg7kOqn3pOGjAvnvgROEuMW/V7V6 MWY00K3EgAtt6SY3DKdrCpdMunMOgYbUmyp+QoAPr+nFtDnDK8O07t7Nz0HWfFLkjEg+ wdgheU6O2ofNJC449zoUn+npEwI30bmm1ufYk9QZQf7SgDRHobU1NbqnSc2iYkBc3nZY 0VfQ== 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:content-transfer-encoding; bh=wo0aTOWi/PcHE3LYZaeTVGDzfxyMRSUsvzcgw6a8n4U=; b=NamZO3nox+WBhm/G8MUZMLSmRRZw8CUTesQO06sY1O9ZKUte6ysbDn38BkHeEpelfF oVmDUEjcPVisRX+sLnRkEVVX6QDlwdd/okQmTlFLf63/4TfeAfCmjeRTaYKGYHJw+qxb cRrXQIsd6PnvVztoGFgfHkB4W+1+hsuO7FgXb8JmHEvjssWOrVmQtRGITyo/2yk0Z3Ex w2cZ+uIMwK6fPAh9pRlHKeYiQIMzeDIWp5wN3fmQ8l7NAaRT90Z8Nn4ku4qVqJj8qc0Z UzN2sKFL8S5FRFZfW1auJH71Xojml3h9oRqoCPBM8sbzk5a+iKfzYm/94bvBR/jV6/c9 BmSg== X-Gm-Message-State: AOAM533B12C+Nay+QW3eH4D8PYumCVJVdftT8tA5HU2u0sMRgYmgeaqE k8pLff9YaPAitiYHYEc0LqXxU6MXQwhUG1yIJt9ibyF/1ybkEw== X-Google-Smtp-Source: ABdhPJwDvL0BFsYI69mh05Oofzx2/nF6Y6DZjLI1FPTPnbfHdiaSZvUTGYeDrJL4ly30bies/LRDxlN5Kg4oJHyuvQw= X-Received: by 2002:a05:6830:55b:: with SMTP id l27mr21963591otb.260.1620666713559; Mon, 10 May 2021 10:11:53 -0700 (PDT) MIME-Version: 1.0 References: <80787-1617995485.617359@q0GB.FFaP.JPH4> In-Reply-To: From: Bart Schaefer Date: Mon, 10 May 2021 10:11:42 -0700 Message-ID: Subject: Re: Proposal: Let compinit make standard widgets with _generic instead of _main_complete To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 48808 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, May 9, 2021 at 1:51 PM Lawrence Vel=C3=A1zquez wro= te: > > Anything else on this? Attempting to summarize the conclusions (so far): There's no backward-compatible change that can be made to the widget definitions. _generic was not meant to be used to re-implement the default widgets; the expected approach is to create a custom widget with a different name. It's possible to achieve the desired effect by using "zstyle -e" to examine $WIDGET. An example appeared in another thread: zstyle -e ':completion::*:default' menu \ '[[ $WIDGET =3D (|reverse-)menu-complete ]] && reply=3D(yes select interactive)' I think it's therefore safe to say that we're not going to apply either of the patches that have appeared earlier in this thread. On a bit of further reflection, I think there's an even simpler formulation that should give the same effect (excuse possible gmail line wrap): zstyle -e ':completion::*:default' menu \ 'zstyle -a ":completion:${WIDGET}:${curcontext#*:}:default" menu reply' That avoids the issue mentioned in workers/48397 wherein _generic changes the call tree inside _complete_debug, but to completely mask the effect one would have to use ${WIDGET#_complete_(debug|help)} or similar.