1965 904 Trans cable question

they will come out--- there is a spring that snaps around the cable & holds it into place. You need to use a flat blade to pry it loose(remove the neutral safety switch) . I ended up dropping the pan & it was very simple-
the rear one is the same or you can remove the housing from the tranny & let it hang-- once apart you will understand the mechanics.

The fsm has pictures & it has been posted before, Lawrence