From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8959 invoked by alias); 9 Feb 2016 10:28:36 -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: 21258 Received: (qmail 3958 invoked from network); 9 Feb 2016 10:28:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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.1 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 :content-transfer-encoding; bh=+nKm6jp5LoVBlQ/G++8whCHYMausqHM08l2Ok6oIK9U=; b=yO1JtEllQ74jQRjQB3a+jP1uVZVVaX/OOGtkkX55FyRv6A0M+zeXKgk+sg7igGZoBT yoql86eQ3Ir67t4V7POogCHgVv0EeJF5PtQJMdFqW+bkhxNw1K3ayJaqLs8E8agMc7cJ HLK3spF4fnBh4531XKo8sm06srVJhzQdoyJMinMik0249CHbwo0AxYOkc1HKnnyKILcJ IHu2ycXyVuvZrAPcjnwBq1X1pFC8fyr/VN2cdMi33+sN+PSj7xOBJahxbCbfIp3rNUWf QiQE5kE9o9hdgKTIK8tiY7UyvjKVS4JZMbH/naJjghyPEUNrMPe/mdqduqB+yoeLqeUD r2jw== 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:content-transfer-encoding; bh=+nKm6jp5LoVBlQ/G++8whCHYMausqHM08l2Ok6oIK9U=; b=G2S5iYYpxlYlUZaaXgvhVIeCfRlHWqW6yGtcSLqFpS5bc+rDLDL8Cf7hMKKtg+XWeD F5mFDcp3ud0T7a35cAitcZrCPHW/39Il+OmAZ4JrNAtzT+iiHLRQJxO7Ui7spQMyRlky VVONy6pyXWl/Ncuugui/Sbmiex7Zy8aHy764uwWBPP4zCTLDFHOy14tREzLNkYrSEcUz v4KjwHAqXcndw7H3bwsHVevhxaT3kjArrbqWNsPDjOfvcY852qCq/dJfdfJCedP/pO7U /EyZ4kPJ8dfKv4S/OEFi7zcjZ8D8MyYU7genb+AiXDpfW0zKWH8cMVCwYlfjmKUvKFfu R3vA== X-Gm-Message-State: AG10YOTMiEesaIJ4Xw6JcB3B9tozeGQeWDobRiEB2AgbPCFEq3pxH0q/eoDU3PLtFK9lnEOnGIsybd4yw844yg== X-Received: by 10.25.23.24 with SMTP id n24mr13864995lfi.66.1455013709485; Tue, 09 Feb 2016 02:28:29 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 9 Feb 2016 11:28:10 +0100 Message-ID: Subject: Forgetting about compinit with manual alteration of _comps To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, one calls compinit in .zshrc and then loads something that adds to $fpath having intention of providing a completion. User is puzzled as completion doesn't work, has to take care of having compinit placed at say bottom of .zshrc. Turns out the loading could be followed by: autoload -Uz _mycmd _comps[mycmd]=3D_mycmd and that sets things working, mycmd is correctly completed. This works for trivial #compdefs, don't know what side effects can non-trivial #compdefs have. The bottom line is: a software package providing trivial completions can do autoload/_comps alteration to make users happy. If they called compinit before =E2=80=93 completions will work. If they call compinit afte= r =E2=80=93 completions will work also. Any nastiness in this? Best regards, Sebastian Gniazdowski