Definitions of spur-of-the-moment:

  • adjective:   in response to an unforeseen need
    Example: "A spur-of-the-moment party"