Hello Stefan, JordiGH and John, Based on our discussion on #octave and email, I have made a patch for review. For convenience octave.el with the patch applied is available from http://bpaste.net/raw/94528/. Note Emacs 24.3 is required. The new command octave-update-function-file-comment let users update the doc-string/doc-comment (per octave's definition) to the function name. I am only just beginning octave. So please help test and review the patch. Thanks. Leo