'Almost did' vs. 'was doing' (holdt på å vs. holdt på med å)

In the past tense (holdt, from å holde), holdt på med å and holdt på å look almost identical, but they usually mean different things. One describes an ongoing action (was busy doing). The other describes a near-miss (almost did).

Ongoing actions: holdt på (med) å

Holde på med å + infinitive means to be busy doing or to be in the middle of doing. In the past tense, it describes a deliberate activity that was in progress at a given moment:

I was in the middle of restoring the old clock.
Jeg holdt på med å restaurere den gamle klokka.
We were busy unpacking the antiques at the auction house.
Vi holdt på med å pakke ut antikvitetene på auksjonshuset.

Holdt is the finite verb. In questions and other inverted clauses, the subject therefore comes between holdt and på:

What was she busy polishing before the auction?
Hva holdt hun på med å polere før auksjonen?
She was in the middle of polishing the valuable silver.
Hun holdt på med å polere det verdifulle sølvet.

The med is optional. Holdt på å + a deliberate, drawn-out activity (Jeg holdt på å restaurere klokka) can also mean was busy doing, and context decides. With med, the meaning is always ongoing, so med removes any doubt.

Near-misses: holdt på å

Past-tense holdt på å + infinitive often means almost or nearly did something that in the end did not happen. This is the natural reading with sudden or accidental events, such as å glemme (to forget), å snuble (to trip), å velte (to knock over), å knuse (to shatter) and the fixed phrase å gå galt (to go wrong):

I almost forgot the meeting at the auction house!
Jeg holdt på å glemme møtet på auksjonshuset!
Things almost went wrong during the auction yesterday.
Det holdt på å gå galt under auksjonen i går.
He nearly tripped on the thick carpet.
Han holdt på å snuble i det tykke teppet.
I almost knocked over the vase, and it nearly shattered!
Jeg holdt på å velte vasen, og den holdt på å knuse!

Combining both and placing adverbs

The two constructions often appear in the same sentence. Holdt på med å sets the background activity, and holdt på å introduces the sudden near-miss. The fronted mens clause triggers inversion, so the subject (rammen) again sits between holdt and på:

While he was busy examining the painting, the frame almost fell down.
Mens han holdt på med å undersøke maleriet, holdt rammen på å falle ned.

Sentence adverbs such as også (also), imidlertid (however) and virkelig (really) follow the normal main-clause rule. They go right after holdt, or after the subject if the clause is inverted, and they split holdt from på:

The old mirror almost shattered too.
Det gamle speilet holdt også på å knuse.
However, the collector almost forgot the whole auction.
Samleren holdt imidlertid på å glemme hele auksjonen.
Did things really almost go wrong when you moved the sculpture?
Holdt det virkelig på å gå galt da dere flyttet skulpturen?
ExpressionMeaningTypical verbs
holdt på med å + inf.was busy doing / in the middle of doingDeliberate activities (restaurere, pakke ut, polere)
holdt på å + inf.usually almost / nearly did; can also mean was doing with activity verbsSudden or accidental events (glemme, gå galt, velte, knuse)