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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19537 invoked from network); 8 Sep 2021 02:13:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Sep 2021 02:13:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631067234; b=rDtBCmeGOvmufvaEkBa4EThbLA4YTv8F7HgAFlrHl4ugDuZnMw2pPygq/17KkHqBdZ4dC2ZxO4 QgHP7b0+ZQ1tXfOjbit4DatnwTYMYtwq5FVFmNwLV0FpELtAZ+lnHuVnMF6ajzXXwYiwQO3Gcn qUlXWiGNkL2GLmn8qmZmxKDdLiAyRZpSAusuvsoM2I6wxxG8GigVoCWcDN2iBKIznJBp/yb4A+ 5gR9Alh8S6X4CGMGtRzQYcMotMri3KmiDPwUzrYp4gaDhxty6MgrETbs1H7AznetEi6khTRN0/ aK1mrJpPQbFPojB+x18/I3cUPBFM/hAglwLE861Sq8Q53A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-vs1-f52.google.com) smtp.remote-ip=209.85.217.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1631067234; bh=PNkS+MaKM4WaeTuKPOItGLeBdILeprj/iDMtntMSMTQ=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=n5xBeLbXd6FMkbXYP6oOc9GpnLb67ELmGcSVIYLiEPPdduiEuyu4xpX4fl9eI4x6uZO7Og6zFB M0cyLLyHCdCwmPH99n5Ny9xDMA00RESnz598kgWNeO8DzqEPHGpyor3X2+Nb138NYRrOwoOQ2h TEe60Sdk4xAlXpqy/tfkoumm4PzaAsaQcV2N0yM4/SWNG5ZGrP0zd/gsQ9tKlVkB3ARbEKCC/D 8HFLfeKyO4YCJI5tzAFS4o8Lv+HjALFkEAcAGM+F7Q9Eb4L+tFa4DiF4g02Ma18wchbNZSFEW/ Wm5+oYolK73N9g2ztQrCvRTlD84/2+4FQuGiw+9Witzndg==; 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:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To: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=eF/BiNf34+pzcVR9AUMbifuSLnKfVKpjuZOdY4NuEVw=; b=NbLh5qKE3AYsAGURofVBMumujD EfyLDor3zMfu6X9l55yFrucRr0EbgXyQNotEumk/1AQW3+zsq/x2ja6qbni//xULOk3a+eCW9UC1E xYaAxjYZb5ZGiYmbXePhp3p+slqf7tlBmyQoRcywTgcEwyD9bSml+xwdCaanqoPMDanfl/hhATk2t FRBY8MXU57WghNlIUUyKuB48WRjMAgcwZUS8OlZsixstMwNOT5eH15DUjbCS3QclIckHazuignpFY IFVB1/y20ptKZ2gq7kRPimYn3zHyVL4w1EfnmGL9iTQvk5p3n4+9gjBNe8CrHQWV1eNwt9DvMzQZj 0rAbOVsw==; Received: from authenticated user by zero.zsh.org with local id 1mNn61-000Ocw-Ci; Wed, 08 Sep 2021 02:13:53 +0000 Authentication-Results: zsh.org; iprev=pass (mail-vs1-f52.google.com) smtp.remote-ip=209.85.217.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-vs1-f52.google.com ([209.85.217.52]:43631) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mNn5m-000ON4-15; Wed, 08 Sep 2021 02:13:39 +0000 Received: by mail-vs1-f52.google.com with SMTP id u1so687485vsq.10 for ; Tue, 07 Sep 2021 19:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eF/BiNf34+pzcVR9AUMbifuSLnKfVKpjuZOdY4NuEVw=; b=NGuBRLsashQKHz0zmgo+0/rmc2plz3Vz3mBTU8OXgBBK2TjtUDeIUcs7DKR8tsuPei bTXdqQmemVK9VGiaTWTK1RU/qvtfyi3XLs3EWsmsgLl6HQxNoX/IzS6yTu41cowdzyMJ 8sJPCdOa+n1hqqbVjI/gzdP8h/vP8EXqV6T0p2AZqTGLpadfQKShRHaIUoCcAO4T7GJZ tdYDsNkWVeBCoWrZdLU9r2RTRgzUCRyi7FokatInz7+uqDwca68jzApe3O0vCISiQSMR ZOXYs84HtTaLP8p0d6GWTSikR87CafoR3VHw92W4UTvvosUU0+kZgD59wA8vNDnr8bKd S3GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eF/BiNf34+pzcVR9AUMbifuSLnKfVKpjuZOdY4NuEVw=; b=V1ECbh6ilIxycxztUp8n2KU//IfWZwjPTQP2unpEjiqjay3U8+iXguAtc6dNpj4yHC xdeeVz9x+KEcfHDpcqPlu8P4HbeN6Fjb7olA4fR/0wbY9OB+gxUYGs/HqkPBkij+IHuj y4Wo19OQTWR6OGzw2THV5E74CXa8yKmysrK3MQJIh7li9pDhzCc+qOSJqnjWPfgcolGk 9WXEFguK23i8WwC8+uzGB+4cVQbfkSbqE5DMAdVAuQzlHfxeWlpzERTZ0QuAkV8MeX2B iwBjs7aS4Bh+dnjFDrYpHJtnI7ukyDMu7a8HF3zC7R2vZvvycXHmJt5rBoWch82hOVrc xB/g== X-Gm-Message-State: AOAM53291S813nvD5TK4qvtAkFJ7joxTJP5js4nKdYZnhBbe09Tcdonk LM/YcObBv1yfvJQqsd2OwkTasaYEozy19uUVY+w= X-Google-Smtp-Source: ABdhPJypkcKkM/lRq5U7g4KCzJKXSLJrq1ycghZsyIEkAG6xuG53k6Sie+w3oRN5mTjjiesXOqvXHaZumTqH979lkSU= X-Received: by 2002:a05:6102:2c8:: with SMTP id h8mr728631vsh.34.1631067216848; Tue, 07 Sep 2021 19:13:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:1d16:0:0:0:0:0 with HTTP; Tue, 7 Sep 2021 19:13:36 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Wed, 8 Sep 2021 04:13:36 +0200 Message-ID: Subject: Re: [BUG] zle_highlight fails to highlight suffix added with compadd -R To: Bart Schaefer Cc: Marlon Richert , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49393 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 9/8/21, Bart Schaefer wrote: > On Tue, Sep 7, 2021 at 3:07 AM Marlon Richert > wrote: >> >> _tst() { compadd -S '' -q -- '' } >> _tst() { compadd -S '' -r '' -- '' } >> _tst() { compadd -S '' -R '' -- '' } >> >> With the first two functions, correctly gets highlighted as >> autoremovable. However, with the third function, does not get >> highlighted, even though it is autoremovable. > > -R is supposed to be followed by the name of a function. You gave it > the empty string. That should probably have been an error right off > the bat, but it does mean the suffix can't possibly be autoremoved. > > However, the same highlight behavior occurs even if you do supply a > working subroutine. Does anyone remember why suffixfunclen needed to > be stored separately? I didn't make any attempt to understand the code, but can you usefully specify both -r and -R? (it doesn't appear to be an error). -- Mikael Magnusson