But what about Moonraker?

The end credits of The Spy Who Loved Me says that For Your Eyes Only is the next movie
The end credits of The Spy Who Loved Me (1977) says that For Your Eyes Only (1981) is the next movie

Eon Productions jumped the gun!

With the success of several space-themed movies at the time such as Star Wars (1977), Close Encounters of the Third Kind (1977), they switched gears and went for Moonraker (1979) next.

Roger Moore as James Bond in Moonraker (1979)
Roger Moore as James Bond in Moonraker (1979)