zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: listing autoloads for unloaded modules
@ 2007-07-31 14:29 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2007-07-31 14:29 UTC (permalink / raw)
  To: Zsh hackers list

You shouldn't go looking for problems because...

Index: Src/module.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/module.c,v
retrieving revision 1.35
diff -u -r1.35 module.c
--- Src/module.c	17 Jul 2007 07:01:56 -0000	1.35
+++ Src/module.c	31 Jul 2007 14:28:14 -0000
@@ -215,7 +215,7 @@
 	    fputs(" -> ", stdout);
 	    nicezputs(m->u.alias, stdout);
 	}
-    } else if (m->u.handle) {
+    } else if (m->u.handle || (flags & PRINTMOD_AUTO)) {
 	/*
 	 * Loaded module.
 	 */
Index: Test/V01zmodload.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/V01zmodload.ztst,v
retrieving revision 1.10
diff -u -r1.10 V01zmodload.ztst
--- Test/V01zmodload.ztst	6 Jul 2007 21:52:41 -0000	1.10
+++ Test/V01zmodload.ztst	31 Jul 2007 14:28:14 -0000
@@ -260,6 +260,11 @@
  zmodload zsh/parameter
 0d:Unload the modules loaded by this test suite
 
+  zmodload -aF zsh/zftp b:zftp
+  zmodload -LaF | grep zftp
+0:Listing feature autoloads includes unloaded modules
+>zmodload -Fa zsh/zftp b:zftp
+
 %clean
 
  eval "$deps"

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-31 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-31 14:29 PATCH: listing autoloads for unloaded modules Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).