From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9748 invoked by alias); 26 Jan 2016 17:19:10 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21180 Received: (qmail 16636 invoked from network); 26 Jan 2016 17:19:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=bv9uQQOMyqIT+1dU1GYRi87+zBVJW3pfdR/Jliau8bY=; b=K+uootXJsw6bLS8l6ZuaSUr7xE0AFGglduinkLmjZiwmITewMZYJo44tRzcCRR2Ect 4sutEkdI0dcjWoPOqaGdjKmEBaMzwjiPC0rFhQRLRnWXDpNTuNNEnS7x3D4L9mJOHzqR V6rXbZs8LGskSSbS4Po1Xr4kNB90ZUuVveFjBHXFjAJ4ydmraOqQKPo/ddrYIUbe0GGy M2HhiuV++ss5+ZrLCnHnCp+0y04IPC2b/whRjpUQKE1TLi9SZkgb+Slx6KK0wnY47jBr NLWdoMxVBTTEdcocpOKVYJiroxXOuZEVcNCoBlbIOrQuuQn2S9RWE5goLaA3iBjq/R68 kPpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=bv9uQQOMyqIT+1dU1GYRi87+zBVJW3pfdR/Jliau8bY=; b=Y5+LTBaMJ2CXpUvTgEbdgBtD5FhEZolKqUNvJIixHeqdZIxyBMl3LMUaAhx1W9w7fp sczO1pRD/LTARRWfgMWeVhDVVR49XTGy0B9ZF7W8HuA5nWWOrSzKvedVLg9wrR9KgYXp Fi4nsAsSkaymp4EmAQ0Gb5nhaXbMNOYlgShWY1yRKnueL26pLrJrIpMTaR0Y9zhHRA9n zY0INcS7PPqzLr16Sy/huqtgDm1ReNgnGe5q5ENkFX1aGiR1fEYY+Y6jBybzXjdclE25 Vu60347b2CEpmIoix+s0jlGz8TTsqtp9dad4muwsAnybGy/2ruZkFV5smGVoYcW7Pn4r sljg== X-Gm-Message-State: AG10YOTSdq/CTOkRwcd7r5+srd7vdBDk1JasEeKMpdLd7NqU5I5EuJQ9LFDzu0qB+UDADt/ybR7fgxp7I9C5uA== X-Received: by 10.112.137.129 with SMTP id qi1mr8960315lbb.31.1453828743922; Tue, 26 Jan 2016 09:19:03 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 26 Jan 2016 18:18:44 +0100 Message-ID: Subject: How completions work, do they require fpath? To: Zsh Users Content-Type: text/plain; charset=UTF-8 Hello, my current understanding of the completions is that if a file-function with name starting with "_", and having "#compdef ..." in first line of content, is found in $fpath, then, if compinit is run, the function will be autoloaded and used by _main_complete. Am I missing something here? Does this mean that compinit should be best run once after all needed fpath updates? A trick to avoid fpath for regular autoload functions has emerged on this list. Is similar trick possible for a completion? How to load one without running compinit and most of all, without updating fpath? That is needed for Zplugin, which is now in nice state (except maybe for lengthy code and zparseopts issues), e.g. can unload modules (deleting bindkeys, restoring options, removing aliases, etc.), but doesn't support adding completions via plugins. Best regards, Sebastian Gniazdowski