Trim & Extend line command


When using extend and trim line commands and the "extend line to" and "edge line" do not extend to the line to be extended or trimmed the commands do not work. How to adjust the commands so let's say when two lines are apart and I want to make them a corner the extend command would work?