From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id fc1b0da1 for ; Wed, 24 Jul 2019 16:01:05 +0000 (UTC) Received: (qmail 26256 invoked by alias); 24 Jul 2019 16:00:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44579 Received: (qmail 21840 invoked by uid 1010); 24 Jul 2019 16:00:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f45.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25517. spamassassin: 3.4.2. Clear:RC:0(209.85.217.45):SA:0(-2.0/5.0):. Processed in 1.57467 secs); 24 Jul 2019 16:00:34 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.45 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fCPcsWZzINHkyeF6hekPftd5LOU55OM6RwifhEIqGiA=; b=ir1EkpIrTYHaQW6u28Wmn5ZDaedhngS1aALpJ+oXAcWtbha/GFXRpoqlUo7bKhnYFY aSDkeFy1EqD9vr9ZvxrnS9dbWUF7q+kGROYy6yDwI9IvlDkUj5RzOw4QeUVoiCazvE75 mzvRHiAv5B5J4oXNol6ZxHq1P0DLXDiLBP6geklJ6VC8mupOlcfSVDmYCw33qrg2IhMi wvdyOwmR6sLGnevdgupj4Bf31CLfmHjZ647Nz/muLM/41d4N34VOKeAeV5M8v+WNG/Og THOUyQ/KQwOz1mqyXL34R72QS+eD2XG0Bncqx4CB1YkHYuxigsdMKFvMkDUadopq0q+8 vB2A== 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:cc; bh=fCPcsWZzINHkyeF6hekPftd5LOU55OM6RwifhEIqGiA=; b=UCKAHp1Pv5RYEFGUTy5JiUvo8erznTvugN+n7i20kUMXHFLFZQMjYuf9fbl1mNQO9u 4ybmK5tqEOSccJOPRZ3oqckKAXsZ9pMUQLBgC7Qh4RMmoBFa96LVP9CCzdl46Y0gWPII XzVkPYspdN2oIlw8w+9TCKahnQ42hfMBHhz87IfK6b9lbmQtifY4hWtXlaMYH/E0Gx0J aTLZEz9nqRN56Mev2RpVlhvG/0/mx7C0nfPA5uxIpnMak9RAWof8kuUrEkmDEtdSf+Qf KhGsM9AmWkJnqMC7Uint3sQCwA3tZIKOtrK79ePguQ08dWJftgOKkmCO+VSIufLWRLqv TLug== X-Gm-Message-State: APjAAAWcp11BorKSfLDMNepAl1GLTJFThluBFRbn4lybiqiNXF88geNa /SjWqYeXMDgwJXwKKgjSEQD9X3CRjbDZRuqiauI= X-Google-Smtp-Source: APXvYqzl56H6TRHHbGn0kXAjXXZ0USbO0KyqBf6H+HQPRNj1fZwAF2ucgFzejG8R0pvbWOuVTSHTah7Pz+oxZGKCBEU= X-Received: by 2002:a67:8e0a:: with SMTP id q10mr29634514vsd.215.1563984000557; Wed, 24 Jul 2019 09:00:00 -0700 (PDT) MIME-Version: 1.0 References: <1563978475.5930.14.camel@samsung.com> <1563981336.5930.16.camel@samsung.com> <1563983307.5930.28.camel@samsung.com> In-Reply-To: <1563983307.5930.28.camel@samsung.com> From: Sebastian Gniazdowski Date: Wed, 24 Jul 2019 17:59:49 +0200 Message-ID: Subject: Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Wed, 24 Jul 2019 at 17:48, Peter Stephenson wrote: > > On Wed, 2019-07-24 at 17:39 +0200, Sebastian Gniazdowski wrote: > > I don't want to change disable's completion. What I want is that: > > > > % decl > > > > will not try to complete "declare". > > declare is usually a builtin. If you disabled that it should > remove it from the list of enabled builtins and reserved words > and it won't complete. > > disable -r declare > disable declare Ah, didn't expect that declare can disable reserved words. Thanks! > (they're different because the reserved word needs to do > special parsing for arrays that an ordinary builtin doesn't.) Good to know. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org