* progmodes/octave.el (octave-sync-function-file-names): Fix last
change.
This commit is contained in:
parent
e55d3b0408
commit
ff7210d55b
1 changed files with 2 additions and 1 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue