From: Juanma Barranquero Date: Sat, 7 Jan 2012 00:26:10 +0000 (+0100) Subject: lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428. X-Git-Tag: emacs-pretest-24.0.93~97^2~55^2~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=adf4e762813e58cd7b68982d448269965bb45616;p=emacs.git lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428. Turn into a non-interactive function and mark as obsolete. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec3eacfbc38..704efea7135 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-01-07 Juanma Barranquero + + * progmodes/which-func.el (which-func-mode): Turn into a + non-interactive function and mark as obsolete (bug#10428). + 2012-01-06 Chong Yidong * files.el (hack-dir-local-variables-non-file-buffer): Add doc. diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 59933a944d5..721c610517a 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -229,7 +229,9 @@ It creates the Imenu index for the buffer, if necessary." (error "Error in which-func-update: %S" info)))))) ;;;###autoload -(defalias 'which-func-mode 'which-function-mode) +(defun which-func-mode (&optional arg) + (which-function-mode arg)) +(make-obsolete 'which-func-mode 'which-function-mode "24.1") (defvar which-func-update-timer nil)