I was using fortran-mode
for some time without problem, but recently the bindings M-f
and M-b
stopped working.
It seems that they are not bound to the forward-word
and backward-word
moving commands anymore, but instead to some commands defined in a file called ftnchek.el (this is what C-h k
told me about them), which is apparently a "fortran 77 syntax and semantics checker". In this file, I found these:
; I'm not sure I like these but nobody's complaining.
(define-key fortran-mode-map "\C-x`" 'ftnchek-next-error)
(define-key fortran-mode-map "\M-s" 'ftnchek-subprogram)
(define-key fortran-mode-map "\M-b" 'ftnchek-buffer)
(define-key fortran-mode-map "\M-p" 'ftnchek-previous-subprogram)
(define-key fortran-mode-map "\M-n" 'ftnchek-next-subprogram)
(define-key fortran-mode-map "\M-f" 'ftnchek-first-executable)
(define-key fortran-mode-map "\M-h" 'ftnchek-what-subprogram)
which I think causes the problem.
So I have two questions:
Why do you think these keybindings were working just like in
text-mode
for some time and then started to run the above checking functions?What do you think is the best to do to have the classical behavior of
M-f
andM-b
, while still accessing the above checking functions? If you think I should modify the part of ftnchek.el I am displaying above, do you have any suggestions on new keybindings?
(Note: I am not able to tag this question with "fortran-mode")