summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/params.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c8791cf2..a409a3109 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-26  Barton E. Schaefer  <schaefer@brasslantern.com>
+
+	* 37785: Src/params.c: skip autoload parameters for "typeset -p"
+
 2016-01-25  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* Jun T.: 37759: Src/Modules/param_private.c: save more function
diff --git a/Src/params.c b/Src/params.c
index b2e889738..a1f0292cc 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -5258,7 +5258,8 @@ printparamnode(HashNode hn, int printflags)
 
     if (printflags & PRINT_TYPESET) {
 	if ((p->node.flags & (PM_READONLY|PM_SPECIAL)) ==
-	    (PM_READONLY|PM_SPECIAL)) {
+	    (PM_READONLY|PM_SPECIAL) ||
+	    (p->node.flags & PM_AUTOLOAD)) {
 	    /*
 	     * It's not possible to restore the state of
 	     * these, so don't output.