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 29124 invoked from network); 9 Aug 2021 21:51:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Aug 2021 21:51:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628545861; b=FmPTiLEDXFok+FIZ5Od1kQlw5EpJ048sThTWb79NMH7cJkgDOjyPVSPdxoU4dz9ti3DrJ99Jo0 j+Pge3LXlmH1BqyG8t18rb6P5vNJnnpMmrFEeLl5n29Pe9bXjrbFMeVP6NhF2qhFr486nsSXwO LFVZwIrjOIK0XmC9Lo3+0k33R1TnfCNqexkapvldmVgXJeHFH+zqANdSXM/w6MoYdeu/qw6m+a N5ARLv/j0tiE6+RyPf6Qw5Px6Wj5W4viGjbr3f0wb0zzesFW/NH3MPYKkiBrRFi4Kt1Vd2S7G6 7shm4O8aUcspg2EfLPe+0bMNcLwWtAJx9MQ2x9PloMwvFw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f176.google.com) smtp.remote-ip=209.85.219.176; 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-20210803; t=1628545861; bh=cXkcKEeTlvzifuf4zMZ0FhhUl6Uda0eCd2mXNpXZWec=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=pinWhkAyY3/NHltGvp2kaf/AKt8SCqAFwPwvOiTLb8sZtfRR5JZc0kfuBLnUnU73D93aRU8krF WZnwnQl1AlXZw/OCooACoG2BqR4b8ZQRdaKOtlfVmd1bozjA6Ck4sttMyCpMYk3/w4vuPBpI/6 ktLvpwSzDJ19hadpJLOT/TOw3amhT9WECRwhZbZFEAvWmlVak8PpMCLNdw4z/5rQxyL+E/M/LY n3FilXMrpl1xQF2tvkmPJRe2jtz+gQzlxB7uiUJ+04HdJzDdKrkxtrlNYL7KxtIxiuFg4s5mg+ UfngpK0OPVgvOIEk5tQ68JMRdwgklv6IBuo7Z8kWD8DpbA==; 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-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/TuIXcCc6fx20uK11abJzrBN/av0JJ9Umum72SCINmU=; b=Y2zwNkqq3Fg+fvHxXl3xMPpLCQ 8gUTInwAeMfqzp3hn3YQtcuayd38aboC7n6LtdMS2si3f2uryqLyaGUh4Jgay64814TjGzfLBUbc2 e8V6wDu/NtIC9C1Ur6Z3RXDHp74F/3at1JJPab1ZfB6Ieu2mjqV4nQHsz3lnpzIgDZSx+JhljrRSH vzWq8m+pv3s2vX3hKJbUfjouLFdOSYSRO4qBfe4xNJyjLkoz2iEYZPnmrWEwF174wo61wI7qyij4f IFcmFyShBa/dQ5/J6fr4hIdBneZ13ncx+AH5zWvUPPLuQHQV7/NAkDsbBTLBZsIxflFGb0SMYemyt 6ko7N1Xw==; Received: from authenticated user by zero.zsh.org with local id 1mDDAi-0002Kl-8r; Mon, 09 Aug 2021 21:51:00 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f176.google.com) smtp.remote-ip=209.85.219.176; 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-f176.google.com ([209.85.219.176]:38588) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mDD9w-00018c-7f; Mon, 09 Aug 2021 21:50:13 +0000 Received: by mail-yb1-f176.google.com with SMTP id e186so703227ybf.5 for ; Mon, 09 Aug 2021 14:50:12 -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; bh=/TuIXcCc6fx20uK11abJzrBN/av0JJ9Umum72SCINmU=; b=wuriOvHZK45z4UCxmfRURkB6qdTbTyCZF9GU+Z9Ih3xnXzQVnc9CZ6nkS2/gsfQYD2 lIvZFGEjA/ocfng7BSwAo6qgaPQInm+hTxz9ZAw48MpJH9a+7aTu2ugE36w3TVrbY2mx sOVRgm30AxfVz2n72EkN8oHsd/GLFDRMs5vQJUWIrSRPWdWV2wYdjdqABkfCFicpvr3M g/mf00P2HZOWAHikN6nYgXKMogvDemHgt+fceaN5Q5pZh023P4AhDkHtWA9t71NAVBKh dk8O48yISEDPwzqL/79mK3Upq3qaa+4ZyEpOwfOSr/PpCngDl6l4aBwq3/LkKlWlUVVP gf1g== 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; bh=/TuIXcCc6fx20uK11abJzrBN/av0JJ9Umum72SCINmU=; b=Tmur2io7AERWCnRXEi3jUdXy0n/nKtDdham919OjZIBLuZU8PpGPabQAZ0Y8SKXZqJ QxF9vxtGrX9PpSQLKstPpLmBJ90CXW+jyt6SJJFX5XdtwY18qb4gCmERLcIpioA4R3tT nfAHDgntXgzWUr7XTBAGtCcP1Lk46QnZJTtnZ9SpyQ0kxnODbWqavYBDae2idVNDdk2r bUQ1ErwhgwDa0WB4y9xl5rdQrvwZdDOaA4AXzxpWe4SaUnh8Vuo67X5/g6f6nxHQQiDm /WZEvLNFMUh2dCW630iMCanh654G8xEObpKyo2DGA18Re1dAN/RsN66mzyE07JGO9kQ4 sXdw== X-Gm-Message-State: AOAM533feEldoXLItQ1nS1S2513Wl4FJwtSMyjiziYrY+zokEr11r9f9 n4YDs6c3dZ4sjiT3/Nyk30LDaYTj3WqFU5xYvJXanpj+v70= X-Google-Smtp-Source: ABdhPJx/dQnB6OggH2DUyeVchysUSJ/l85aVYaPjHBDxhuU0/KB5DOhIWmkLXCbqmeCgYTQelVDPpjWM8fTSK/fvfAI= X-Received: by 2002:a25:31c5:: with SMTP id x188mr34750854ybx.291.1628545810719; Mon, 09 Aug 2021 14:50:10 -0700 (PDT) MIME-Version: 1.0 References: <31323-1628541975.218161@pkyE.Ss-A.4HoV> In-Reply-To: <31323-1628541975.218161@pkyE.Ss-A.4HoV> From: Bart Schaefer Date: Mon, 9 Aug 2021 14:49:59 -0700 Message-ID: Subject: Re: questions re: NO_PROMPT_PERCENT To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26885 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Mon, Aug 9, 2021 at 1:46 PM Oliver Kiddle wrote: > > For what it's worth, I neither see much breakage when turning > prompt_percent off nor do I find any uses of print -P when grepping in > the Completion directory of the zsh sources. If there are any, ${(%)...} > should be used instead. Is your breakage perhaps just a messed up > terminal due to literal escape sequences in your prompt? Anything that depends on %{...%} to tell the prompt code (and by extension the completion code) where there are cursor movements that shouldn't be counted as part of the shape of the prompt, is going to become broken if PROMPT_PERCENT is turned off. There are a couple of things in the Functions/ tree (some of them written by me, I see) that assume PROMPT_PERCENT is active without asserting it, but I don't see anything like that in the Completion/ tree.