Replace an usage of goto-line
Remove unused local
Suppress unused variable warning
Don't shadow the dynamic variable major-mode