From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13080 invoked from network); 11 Aug 2021 07:50:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Aug 2021 07:50:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628668223; b=md8HxsxiUWIt4bP5SWRwmLlC+8sILmFzZkINjpLG09BE7tMhn4xU0P8rRNRNkRflWVol3pLvxo OdqbAXIBNTdtJzHJ7jEIc3y4ryMSpUFBeT7s9G8Mu8TznjFZ/N9tCIjpoxBcaGgTDOyAIjhcJX PTeMx4Id+f1f6k3ZcFUrVvx/eSM6jXd2r8JPQM6WD4whr6OKaty86Bqts1nV0Lkf6nPqV1qRXR 9Mrn65L2mxf1fhoIgJcSPo4nTYt6Rxk1S0ejRUvBkvrFt1NDdBsMPPxIdFvpmghxy5KIMGH02V rXjLFjiOaa56BBgjKMOrgkquQM7p5qHPH00uPc38/MFqBA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wm1-f54.google.com) smtp.remote-ip=209.85.128.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1628668223; bh=aLatVj2vAxEreUGlpZ/OdpKfaspGgwoMgpEDNhDRysk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=OrqGW3JJI/1+UprHxAPb/0m0f7X/ZxIWrHJSuZcNn8+qvggXJt2o5l2eIo+/A48/PNilWpCdNe 03Kkx9qPZO0paAfy/qTfD8ddkYlFQFxww2AuFpgIjOsKafFObu4kPtqjOSh+d0Dt+0syA/5Xyt AzbU/zyznNLAqS8zJu7495f1JSTqWYJrMzr3Q32YgJ1UHrqqyeMInSJtOAap1FJRh3jelqKb+0 +snUaiLzBmjGscDRnRYunGkvipAIbX1PvJpSxwolM71aie0lhvaVlywc+ArQoXzCui1xLHE4rK eKpWc2SWDlEn/aH0GPV58WEFbYWVXmljmIiTmtvsQcX/rA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=e6B/XpRvzAvL299nE50jYgOzjCKbcfVCa10Fojyj1M0=; b=eZLWaskTzfmUI82zZtADGkuqJd lqxYEA7Ec/vr/n7H19jR2RRwyzckIcgCMJaE28NeBsUqQ/t6xm9GARi0xrzhtE0cL3LivMknYwXcI cXe8moSc35ak0hfNhWtSw7eqCp8ZRuZl6aoWfu6/SJNScdm2NHqy3/akXFuebS8nDY4IV0gNZO/J8 1J9z+8kNq0s++jfWLkK7K/UP5g6bSoyaS/q4H1ynbUmltrNQwE5UJmzE7eUJzj45V+AD1rPQHVj5T Ga3OUGYhDbgSA5/nlijnxYFnLT+59T6c3ANmjbIflZXN2npWkmcFQgZrkfWTYpw+MgIajDKtMDLGF WJLBiLEQ==; Received: from authenticated user by zero.zsh.org with local id 1mDj0I-000DWw-E3; Wed, 11 Aug 2021 07:50:22 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f54.google.com) smtp.remote-ip=209.85.128.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wm1-f54.google.com ([209.85.128.54]:46695) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mDizQ-000Clw-AC; Wed, 11 Aug 2021 07:49:29 +0000 Received: by mail-wm1-f54.google.com with SMTP id h24-20020a1ccc180000b029022e0571d1a0so1287882wmb.5 for ; Wed, 11 Aug 2021 00:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=e6B/XpRvzAvL299nE50jYgOzjCKbcfVCa10Fojyj1M0=; b=tzJaGn7WEZKt827S2TikJh8QoODBvmTx5BWGzuywg6KRH/DjeWgZDzOpUFo0SEsqNN Bmx/gaL/EukzP+6hSWW7ZRwyw93LMm8P7kPsX5/0xplq5DhnJ/BvF+bTish1wft27RJO dobkG7wPZMaMafYxAN4odigNMdMJ1L3aQZuqoEeInIEYnr91pOt6M5NjXj7H9swFw8RJ vy9CSPAMOq+FOpHakc/bxXB/xHamxOeLGinEMFBOA0TyDwXn9HRgtXCTBAs6lLy6d8LQ Q3GnevKI9YsCELTGNqBX1ydMMe5HDvVpaXkr5ESPJc0zf+uFqY/Q4a3qTc6SMraJd8Rl /c6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=e6B/XpRvzAvL299nE50jYgOzjCKbcfVCa10Fojyj1M0=; b=apHgWu0/Bqc4/NGHGVS5DoElCIGJFDoT6ErTVOnlPXRZMFR1GXJexvXJYBTbu59i/+ tmlEpVXaUhbXUkT5C5MevROoFbRdd0hSC6rP753s5dXdxfz+dI+x4+3ClWMo+71lz8Je KbMM3+TQOVa2SF5GXuJHO2vuRuluFAJpYgGXC4OuJzt6jjjJ9mdL1puaLl68bYf4M3WI 5uTuYiZYrrPqZPsue3LjeDcun40buw21H8q212cAapvOy3jqkM7MeVnvvf7TRp7NT+Ox bBSrIEz23IMOphDtexCY8ZftgYF+a5JaY8eOTvy4k/cdKf3ZgNBfmiRcMJbDiqP2Q9nR kenA== X-Gm-Message-State: AOAM5313eJlDCyb43ti8en9XM65sNPIVc1KeB0HAuFIgiSP7HOtrg1I2 WmwUfhCkGA22HJB+rLQco0lqn7FHTS1X0Qk2yRo/QiyBYTg= X-Google-Smtp-Source: ABdhPJyvYu+YNKtGxD4yvgcF6Az0XH4OFugdTAZcR4lky41TEaT/Wzy+cT27aav/5+az1wfA4cTnRgQLzOPEdtHl5P0= X-Received: by 2002:a05:600c:cc:: with SMTP id u12mr25836683wmm.63.1628668167484; Wed, 11 Aug 2021 00:49:27 -0700 (PDT) MIME-Version: 1.0 From: Zach Riggle Date: Wed, 11 Aug 2021 02:49:16 -0500 Message-ID: Subject: Re-loading files loaded via "autoload" To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26910 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Hello all! Thanks in advance for my spam. I recently spent some time spelunking in the Zsh docs for how to get an "autoload"ed module (sorry if the terminology is incorrect) to be re-loaded. It appears this is possible, but not well documented. Specifically, "unfunction" or "unset -f" work to permit the "autoload foo" to run again, and re-define the various functions declared in the module. What's the appropriate venue to ask for documentation updates, since this should likely be in the documentation for [1]. # Homework I looked at the documentation page for autoloading functions [1] as well as the page for the autoload builtin itself [2]. As always, SEARCHING the man page / info page / HTML pages are difficult, because it's not possible to scope the search results to "just this section here" so searching for "remove" or "reload" shows lots of unrelated hits. Because "autoload" has its own page, the behavior of unfunction / unset -f should probably be documented there. [1]: https://zsh.sourceforge.io/Doc/Release/Functions.html#Functions [2]: https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html Zach Riggle