From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3033 invoked by alias); 10 Feb 2016 10:28:34 -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: 21265 Received: (qmail 8890 invoked from network); 10 Feb 2016 10:28:32 -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:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VVBUcWy9TUUTksENh0tG/PaazZbMsjpdIWdXhqoeQGw=; b=NhBWLEUpWIlE5SfnSa1SMvOmWbmAI3OTN/KCX5Je+ZSkAC299wPKfg2qQebx0/2Ux/ 3JRXijaY/BDXXyhYD+qShhIsfC8XPk8mVJ3uGxu5ke+F+ZiaPhL9mK9JthOhE4hCqQc9 8GVy2MrGzY3faZygyZWMDNQfnU8zRIh3RZ6Y82mX44S53n19ZBUMI5lpF+WeMT8T+mfP TS+I4jrVqF1gp81/ZkaMfBjyjavGp9H6UcbEE/VGljBpRatxRDMH0h7cRJ0UtJYZ4PLo IH83r87tc2Ai4THSL9q13PYICIVi0LnSGo70BVyLYM+ocHRHkwQlOPamHFa9k+o0mQRW CRag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=VVBUcWy9TUUTksENh0tG/PaazZbMsjpdIWdXhqoeQGw=; b=bEhBc/foOrd5BQEAWYvfHcmFhQRqhbICtIdITzsGuRKN2poc/+rwgN95Ar9DgKFY+l Z4ZlPmgaac8XKCZD3EZhRz54pbaha/Q1niN1j9wk4DwHLfs2jVFgejiGmgoL3ioAVsU0 73qyk3CXmrh38qqvhNezfZc0TFkaiQr+ewAsmS1IZkxtH5no+e6aJ1m4J73XhQ4zkONH wB/qBUengY7kH8GIBrE6gJJEe0N14xG9EkvXULIKJU9XfK3QLZ4uq3RvLtyqG8xOyE6y kP0AW2hatZUjHF1uNObybwwfLLtF48gq8h+8y2iu3TTXnaqonGK2Z2+L4k3Zovd5FNlV uMeA== X-Gm-Message-State: AG10YORdlQ+kKneO425ClmdotH0Npu8tiYdhwia6O1+24tRCBxfLZqxp9boADbA5FDTBABlgRh0qq/LAY4/YrA== X-Received: by 10.25.151.9 with SMTP id z9mr13757764lfd.72.1455100110226; Wed, 10 Feb 2016 02:28:30 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20160210092322.GB6339@tarsus.local2> References: <20160210092322.GB6339@tarsus.local2> From: Sebastian Gniazdowski Date: Wed, 10 Feb 2016 11:28:10 +0100 Message-ID: Subject: Re: Forgetting about compinit with manual alteration of _comps To: Daniel Shahaf Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 10 February 2016 at 10:23, Daniel Shahaf wrote: > However, I'm not sure making a plugin loadable _either before or after_ > compinit is a good idea. It may be simpler for plugin authors to expect > to be loaded in one circumstance (say, after compinit) and ensure they > emit a clear error message in the other circumstance (say, before > compinit), than to eternally support two codepaths. All this is a frustration about "compinit does everything". If there was "compinit" and "compinit_examine_fpath", it would be all much simpler. User would init completion at beginning of .zshrc, which is a natural location for "init" things, and then "compinit_examine_fpath" at end, which is also natural. All this resolved by providing compdef() stub gathering compdef calls and allowing to replay them after compinit placed at bottom of .zshrc. Best regards, Sebastian Gniazdowski