updated for version 7.0051
diff --git a/src/misc1.c b/src/misc1.c
index 658c30e..8ddc6f0 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3182,6 +3182,14 @@
 	    out_char(BELL);
 #endif
 	}
+
+	/* When 'verbose' is set and we are sourcing a script or executing a
+	 * function give the user a hint where the beep comes from. */
+	if (vim_strchr(p_debug, 'e') != NULL)
+	{
+	    msg_source(hl_attr(HLF_W));
+	    msg_attr((char_u *)_("Beep!"), hl_attr(HLF_W));
+	}
     }
 }