f90-smart-end-names

f90-smart-end-names is a variable defined in `f90.el'.
Its value is
t

  • This variable is safe as a file local variable if its value
    satisfies the predicate `booleanp'.

Documentation:
Whether completion of END statements should insert optional block names.
For example, when closing a "PROGRAM PROGNAME" block, "PROGNAME" is
optional in the "END PROGRAM" statement. The same is true for modules,
functions, subroutines, and types. Some people prefer to omit the name
from the END statement, since it makes it easier to change the name.

This does not apply to named DO, IF, etc. blocks. If such blocks
start with a label, they must end with one.

If an end statement has a name that does not match the start, it is always
corrected, regardless of the value of this variable.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 24.4 of Emacs.