I had a front deraileur cable break while I was 40 miles from nowhere. The break was right at the derailer so I only needed a couple of inches to fix it. I removed the housing from the cable guides in the frame and butted the cable housing ends to each other. After readjusting the cable it worked as good as new until I could replace the cable.