Complex sentence: He would retain his seat at each subsequent election until he lost his seat at the 1977 general election.
Split into simpler sentences: He would retain his seat at each subsequent election until he lost his seat in 1977. Flanagan lost his seat at the 1977 general election.