The Emacs command write-file will prompt for a filename before saving the current buffer. Default keybinding is C-x C-w.

This is usually called “Save As” in other editors.