I'm running/loading a few things in S::Startup but that's between the PUSH/POP... I didn't think that would make a difference. Maybe it does??
... (S::STARTUP) loads AFTER the (acad-pop-dbmod) at the end of ACAD.lsp
Also, the list above neglects this, but any .SCR file launched by your icon's startup switch loads AFTER (S::STARTUP).
Even though it's nestled snug between PUSH & POP?
*stands with hands on hips* Well that makes no doggone sense. Hmmpphh!!!
Correct, during ACAD.lsp you're simply adding items to BE loaded/executed during (S::STARTUP).
Instead, is it possible for you to simply load/execute the code in ACAD.lsp, or ACADDOC.lsp?
As I said, I also use both ACAD.lsp and ACADDOC.lsp at startup and open Drawing1 DBMOD = 0.
FWIW - You don't need to use Push/Pop to startup without a save prompt... you can use this instead:
(defun c:FOO ()
"FOO")
(if (= 1 (getvar 'dwgtitled))
(c:FOO))
(princ)
... That way, any DEFUNs you add are still able to be called, but will not cause Drawing1 to prompt for save. Just a thought.