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 29249 invoked from network); 28 Mar 2021 16:34:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Mar 2021 16:34:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1616949243; b=jJlyIwMKrZUOf6g1Nf6Oio9J2jR5lobRVO99i/P+6JKVj4vM8xY61nEz4IMo0xk7Ivk9fFsG54 5ARb80vJaSX90yJa/lLlhuH1zBg4Eozy85YaMus7XgpG/EWFa9xf82t0C7tnBdyRdRTpYU/OjW tZzyAWTWWcrRsYYL43EWCLlzsHP2UX5x8JwMO6fQYIjwFQSsuGl0oUMzXIV72QrAxWZPfeNelG JMEjFU0cUy6NQosBl5EwvFOSTqUL1e65Vk+0W8Y8WkIvdE7H+zyDL6mUIhEOI9EMNpkYG1fBqv VHIwDrVvbxWbz/I6L/9rJymNI7ypIsASSGfCG2ILewqQ8g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1616949243; bh=JNLtqUpnVLIJnVw4Wm/xVm4rbWVRF2pU9wVJmN3WsMU=; 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:MIME-Version:DKIM-Signature:DKIM-Signature; b=x94Uon0xzBZrIwqAPpIbPKkVp7KUuLPoz8qUCUiJxVnrmU+y50ldx+CMGjgZY/tv+c6+wjR6fz pCgYphvCj11nYbBbZL3nbzE0vSQhitUtuh71qDa/yRr1xN4YG2IqVKzNeYLzsyUMLnhDT06dex +y7OiunpOIbScGB+QHJmYLlcXvcj27mXndQQnRHJYapgq82x4fLqmodTy5eiez+bT1iexRYCLH 7FoSypYP9dX4rQiOXm2rBRuCzYTYNVZiD+GjPmEzsglo5fweWJg8IwgUzXg/+3oJyUHkFPUia6 mdCRqY8oX1j0ngIPTrhNTQO3XUe/3SVp2kw3Jsr8cbewQA==; 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:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=JNLtqUpnVLIJnVw4Wm/xVm4rbWVRF2pU9wVJmN3WsMU=; b=CBQ0qrX31X12MkbyoYMZH0LHf6 l26ZFTfSr7WOPrgwcwioVjp0PK096ksl32USlvmVYL/76an7Sux1hcptQTcdUZjoIuBImSFI6L2e/ I6rgi1iAK/H9SsHyPs+UomryQYFhFojwOE4o+HdSZ3AmWQTIdH8hOimpg6ZVj7esGm4+hW//4+qM1 O1S32tqf35yESui4wcPHh65SWUToxHa0fs+jdrgzU4RISFLg4o1dgK0+JLTSJBDM0XApg8UT3esE/ 8oEsxkLkeFq9denUtSJ/1AvZGCptAuekkB1b72ZmuMCrhiegKhNb0QU36mLWK72dESru7GB7nOKmJ trxCvfeQ==; Received: from authenticated user by zero.zsh.org with local id 1lQYMT-000EW5-NL; Sun, 28 Mar 2021 16:34:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f182.google.com ([209.85.208.182]:42899) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lQYMF-000ENK-MV; Sun, 28 Mar 2021 16:33:49 +0000 Received: by mail-lj1-f182.google.com with SMTP id 184so13195074ljf.9 for ; Sun, 28 Mar 2021 09:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=JNLtqUpnVLIJnVw4Wm/xVm4rbWVRF2pU9wVJmN3WsMU=; b=EjxdYY/+sxTyaMle0Cvmcqt/xHO2tOlHEGzgZJ4fBLkL9iidBtccnXAHpug+ciFMyK 08NvfT1+8XqWb5rJl1DY3/+TVGsv7d+xQgXjGgDXpHW8GEL9uf1eDh4JUyxuBN1WojcJ VY2Ikxw3JGv7TJSJEj7906NSQi6uZjtuDA3X+yYUQkvbXMNbc8Efvb4rBbSaCdNa0Rky KJ4WsJdIK4kW8QAJ4dxHmGIPjC70hnlZwtU8gQ5mziYLPj/A52VRk/zyL1fbbi6Xp6hB BQsKmnQUrfgxROb5L3aTB8V/Hkt40kPNqf+Pva6OczxVdoQcha+YVTkdkw1j2R9XDPrc BaGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=JNLtqUpnVLIJnVw4Wm/xVm4rbWVRF2pU9wVJmN3WsMU=; b=DZzRCfXPOd4xm9N+bHHaUZWYLFrehFnu/sQDHueutQzus+Dqz1soaJKll606zb4p7t tmP0qcPUybMM8w8wmLYblyqDuHelXpscS6ulNtILZ5wqwqGB5N+IeTcnOe3pa6S8KB7W XHb3vEl17fFeanjEGPP8v1vYrPXuYJ3iFZZ2c7LOD3b6hnZHjelBmnpgO52J5bpzbwUx HevT5OwLshe8pN2sYgCfXduiszo2vTO6Ktw2VxyIS/1UlXADTVuiliuJ4e39vBJd1YzT srvzstHvJH0NDdAPMryJQHEJb9VrV8inJ7vmtSxstLLJM72OJDnJgCnXAbc7l1BSwmzI NXlw== X-Gm-Message-State: AOAM533VQVVTWM7qSVZLBIfTWdLwdgBNRkHGRXSyYItBL5ob5bc44rUC 9rhHcRR6Hw2QSN3eduUneeK97rUnDIpnKY+AnBeyLJCTu4+CnA== X-Google-Smtp-Source: ABdhPJxpCi8tBxyPHRlugxoqR/AJogO+knRuFUAtCBVTTZz/aEyG2tNO/fkRAeDtIzAsKdbybPTbghu27KQ87995Yy8= X-Received: by 2002:a2e:b4b1:: with SMTP id q17mr15642147ljm.497.1616949225895; Sun, 28 Mar 2021 09:33:45 -0700 (PDT) MIME-Version: 1.0 From: Marlon Richert Date: Sun, 28 Mar 2021 19:33:09 +0300 Message-ID: Subject: Why does _main_complete not try the next completer when $_comp_mesg is non-zero? To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 48287 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: Archived-At: The following line in _main_complete [[ -n "$_comp_mesg" ]] && break has the effect that, whenever _message has been called (with only few exceptions), the next completer won't be tried, _even when $compstate[nmatches] is zero._ Why? What is the reason for this? And is there a convenient way to work around this behavior? I want _history to be tried when _complete fails, but this behavior often prevents it. For example, if I try `grep \t`, then I get only the message `pattern`, whereas I would like to get history words. And if there is not an easy workaround, would you accept a patch from me that changes this? =E2=80=94Marlon