From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15829 invoked by alias); 16 Feb 2016 04:51:37 -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: 21297 Received: (qmail 28716 invoked from network); 16 Feb 2016 04:51:35 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=ssAIsJj1N+xA2KVIY+5220pv/c4X5/8dJo3Zokab6fc=; b=JJH658b8f8bTOIrnqZZBkR8UiS6jTWwScu4szEh+9LM4NlAlErzksrNlzAucUOb6s1 JFWD/LoJRPyAcUX6vXuQJRHqK9OQRB2qzxKHnPaz8bFmiGGv8mGGqwiFbV5TbfVzxvR5 ODicsaOe/3tHdAGgmCczAEFpRqOdyPjMmNcc9f+CiAKvL9NLm/+8rztzETzINcQovdVF YnC4bFPSbUAt/SoCCm3d8/Nq/deb9OFL8meovj8In9lZvHcT+JhMJKuMN1GHQRGC84/g VbRDq16+2w0ZfHQxmP+62IRwUcOTRFmKxpR7fBIwdSsXrxzHNaaiqwh6CrLae+yb+5Ab Vp5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=ssAIsJj1N+xA2KVIY+5220pv/c4X5/8dJo3Zokab6fc=; b=Gb7PT+gMrfr2nClsFCrWddGwZjVI06ABgZgUM68x3OJLgpdesQYkbedkX7zpGH5RDn TQgANCzqhe2q4/q64r1ma6ScgofVfzAWE2H+zduht6JJJzhTyxFmYEiVLNF8OH6i2fxd bEPEZJH8Dd6tZlENNJ11a9zuGDqB6l+TFGbJCduLnbOrProSWNqZN+BkPfooZ5YErh5r vncSixKTTv7f8I3pQqxw6r7ScdLJp9So/UzpQgz7+vkjZrL9YwgA2FbonLNUg9XpnNee BTI7KUz5jS8rlieTihTG/4NNohMlHDHxXkl3KzyIoNkP6u3QBDw9UZDa3Vij54VzZeU3 Je6Q== X-Gm-Message-State: AG10YOSgUAmp7CuYTGxTReLsA8v+n73gAq5qBTIMr1CSPyWzLqMWtAEnuvDPXxWgx+nbQw== X-Received: by 10.66.142.200 with SMTP id ry8mr28736058pab.31.1455598293125; Mon, 15 Feb 2016 20:51:33 -0800 (PST) From: Bart Schaefer Message-Id: <160215205153.ZM28963@torch.brasslantern.com> Date: Mon, 15 Feb 2016 20:51:53 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Truncate $functions" (Feb 15, 8:31pm) References: <160215091116.ZM27442@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Truncate $functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 15, 8:31pm, Sebastian Gniazdowski wrote: } } Thank you, this works really well. As an additional note -- functions that look like sample () { # undefined builtin autoload -X } should be restored as autoload sample except that you can't know which of the -U -k -z options was specified the first time the name was marked for autoload, so there's no way to get this entirely right. The other drawback to this scheme is that you can't save and restore the "sticky emulation" bits of any of the functions.