Fix warnings.
Context menu for applying edits to note selection.
Conditionally remove possibly unused functions.