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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28171 invoked from network); 10 Dec 2023 22:57:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Dec 2023 22:57:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1702249038; b=Ov/g6o3GVrkPreiEU4Q3ATJvQ9Vyh3uNhEjuzMR0eTTaJ/QzOkbD+GxQYGqaShImlQKaJXU62Q jb+R3S5dJdW6v0xnXFjeZth5qyTqLBaxMRAx9hvlWTa6197qTjz+29KVNR583QroxahXmQ4vtg xwl1TUxbPxkehw17Blg7CZEMhveBCtUu7HeKvjKYgFvG4OFMqRavMIrdEav8JTaBZ08CvCKlOk zT77uJ9XipY3UAhZ3fV7Wc26Xfgxb2y/lry5WC9hSH1qi21dggz0xyZOnT6nsPaecfZwsmWDyU xofSnPgmT7J9zJLvYvx7r+PYYT5rjbs5AeRteBLbf8vMgw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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=1702249038; bh=ci1HUbiVqswewxj7hkjh889Ydz/EL0xs+JdtUHFB0Gc=; 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=eFxFMZAEPcOYjxlpeUxMzyudlNUL4RaWRjbIgV4ZqvmmiMaeL1PepSx2N41WDUsMkz1u+iLt4h CV6cK1x9lWPIP9+lMUacW6Pnt+0BadVtzkrWVbEufeGIamqi4hLkQ0IQS/rSSHOGidhZloqhFM HLxHVCtwcSlb05qD2c3IDK0nMSDmEqHjIKeTjSPWfU+AePF8O0kYBajl07ET9JGpDNIumQ9Ky7 AW49SPug2uNOvY18QWPCbQYq7CRt7rOE0dM5QdP64UqLGukm8f8ObUVFKbHy5FvhVpVZSBghOF uV7PxTGqxENFBVS6ibqAtMEtyqpoveHoaH3+Kg0NWpAJ8g==; 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=odeUFWbOngaayrSYOCXYxd/JbM2ws2oWYDFVypOZXn8=; b=sSKf6HwdWoyMgaU+Yn0UsJq5MW qR+vdQBfrPyBHbxfkOig26y9xf2hn/7zxsOMyM4pLhKteWO37n+0d/JUGfZb8IAOJe4PgWRrkWE+e y06faDoTR8Ss4PtGwc5mjqYRKCZ6meX7/X9JFf++EhF48PAwkaDo0WXbwy8+XcMvkb95T9HQ67B5T ZIoOTnDR2EkUNSzTncv1gkusnp/QImQuWwaG9zZrWDTH90Zgp25MgXoTuvHYdJezk/jYB+8cHM8d8 6Mr5AZuNGW2Fvh+j48n/Sx4t3Lfo5VOOXgjm/CoPXpfB5UG7JErIE42ibfu6escZZxf0H0fNpcTR4 hGE7Qtgg==; Received: by zero.zsh.org with local id 1rCSjd-0007iH-Ug; Sun, 10 Dec 2023 22:57:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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-ej1-f51.google.com ([209.85.218.51]:53545) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rCSjO-0007Pj-Sx; Sun, 10 Dec 2023 22:57:04 +0000 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a1f33c13ff2so325466466b.3 for ; Sun, 10 Dec 2023 14:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1702249022; x=1702853822; 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=odeUFWbOngaayrSYOCXYxd/JbM2ws2oWYDFVypOZXn8=; b=xGsYb34jT9bhThEj/fnAtEVC+68GG3Kd7F1KUQfKh6IEGdaXY5e1MJkg8AQIJWXJ7X 0V66+plt8tQu18VRscaYn3R0dvesjIZtBac+TNM0N1Z5iSsI9fHm6sLpS86vfbgdhfSg 3jziiA5H8PGCUEeLoXA6+mkYjXh/HgrtPm2HejtxbvhltRfzL+U6kqvEkd22AnkasujK BscJydVw4H+Fbq7MB742S4vNljNjD8N5sWwBViSLmkz9zULSsfDHIMp+juwaSTzXeoXE i39NJehDrFToZS0z/miZLlOdk8PC5rOamIYY+lb6gAj1OtxzwsTziGzup/xQ/2gKLdNe 9wfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702249022; x=1702853822; 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=odeUFWbOngaayrSYOCXYxd/JbM2ws2oWYDFVypOZXn8=; b=m2GECIfwUzF9FMPGxCx/toMWjumkcLCWXTzhxtNkxwucGd5/irOMJDCRem8pBLouRl 0I3ReKy8NlTjwrVhP8CZ9UCV0PtbLp8lgnsOW+9kQQbdtH2UA0zTyRW/Vhe3+fVonh1R 2uwcPKZor+I63CyvGn51WNyZrXc/U+xLjBne7f+TW2W/wwNcMmMrs9KqsiVSP8oRwhuX kJUTKWiZEpNafv+39L+h5ErnnLaNLDoDRHkFMhQLHf2SGh9aiyCbZ1fkWln6sBruUWs6 yFHF0guSk/JGwzPqiwN/obrS7HEx8gSGbEugyVDo6x8Mrp8TBIxFvEEZsGuhr0I98Qw1 uHcA== X-Gm-Message-State: AOJu0Yze5fp3YSginTnUxTO5jo9nFjpS/lI7x6H9hTCQBHk25SteArJy qFJUXWUa+CAIyUHUPJ+y7D5zU6W9P6O5MgcObFVQujnvoXUbu2sD X-Google-Smtp-Source: AGHT+IFjuroFLVl3McqBMew5IvYPDuVlEmnndNo5vNCkPO/bjIgoFREwnCzDySSHbyehOPt1Zdy87sZTz5iH/TzhUEE= X-Received: by 2002:a17:907:3a97:b0:a18:8f5c:fb93 with SMTP id fh23-20020a1709073a9700b00a188f5cfb93mr1399134ejc.28.1702249022214; Sun, 10 Dec 2023 14:57:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 10 Dec 2023 14:56:51 -0800 Message-ID: Subject: Re: Completion oddities To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52402 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, Dec 10, 2023 at 9:27=E2=80=AFAM Bart Schaefer wrote: > > #1 > It appears that setting MENUSELECT globally, overrides the "no-select" > string in the "menu" zstyle. It's a problem with mixing no-select and yes=3DNUM: zstyle ':completion:*' menu no-select yes=3D2 Having yes=3D2 means arriving at _main_complete line 301 with compstate[insert]=3Dunambiguous from line 293 so we never take the branch that would unset MENUSELECT. > #2 > When the "original" style is true for _approximate and _correct, the > REC_EXACT option seems to be ignored. Is there a way around that? This seems to do it: zstyle -e ':completion:*:(approximate|correct)*:*' original \ 'if [[ $compstate[nmatches] -eq 1 && -o recexact ]]; \ then reply=3D(false); else reply=3D(true); fi' #3 and #4 are sort of rehetorical.