* progmodes/octave.el (octave-sync-function-file-names): Fix last

change.
This commit is contained in:
Leo Liu 2013-04-27 01:11:04 +08:00
parent e55d3b0408
commit ff7210d55b

View file

@ -1024,7 +1024,8 @@ See Info node `(octave)Function Files'."
(file-name-nondirectory buffer-file-name)))
(func (and (re-search-forward octave-function-header-regexp nil t)
(match-string 3))))
(when (and (not (equal file func))
(when (and func
(not (equal file func))
(yes-or-no-p
"Function name different from file name. Fix? "))
(replace-match file nil nil nil 3))))))