Ducking under Peeves, they ran for their lives, right to the end of the corridor where they slammed into a door - and it was locked. "This is it!" Ron moaned, as they pushed helplessly at the door, "We're done for! This is the end!" They could hear footsteps, Filch running as fast as he could toward Peeves's shouts. "Oh, move over," Hermione snarled. She grabbed Harry's wand, tapped the lock, and whispered, 'Alohomora!" The lock clicked and the door swung open -- they piled through it, shut it quickly, and pressed their ears against it, listening.
"Which way did they go, Peeves?" Filch was saying. "Quick, tell me."
"Don't mess with me, Peeves, now where did they go?"
"Shan't say nothing if you don't say please," said Peeves in his annoying singsong voice.
"All right -please."
"NOTHING! Ha haaa! Told you I wouldn't say nothing if you didn't say please! Ha ha! Haaaaaa!" And they heard the sound of Peeves whooshing away and Filch cursing in rage. "He thinks this door is locked," Harry whispered. "I think we'll be okay -- get off, Neville!" For Neville had been tugging on the sleeve of Harry's bathrobe for the last minute. "What?"
(Harry Potter and the Sorcerer's Stone)
It seems that for may mean #15 below since the sentence has perfect tense, but I also suspect #16 might be the meaning. What is the for for?
15: used to show a length of time
I'm going away for a few days.That's all the news there is for now.
16: used to show that something is arranged or intended to happen at a particular time
an appointment for May 12
We're invited for 7.30.