From ff7210d55b30e175da1384ba707ce1340a0c4e11 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sat, 27 Apr 2013 01:11:04 +0800 Subject: [PATCH] * progmodes/octave.el (octave-sync-function-file-names): Fix last change. --- lisp/progmodes/octave.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 3c24205eb8e..f8b9e4f6fab 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -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)))))) -- 2.39.2