]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428.
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 7 Jan 2012 00:26:10 +0000 (01:26 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 7 Jan 2012 00:26:10 +0000 (01:26 +0100)
Turn into a non-interactive function and mark as obsolete.

lisp/ChangeLog
lisp/progmodes/which-func.el

index ec3eacfbc3885caf18758bb48577d7e0374f1095..704efea71351b7fdc98c20ae13d3e0afd32d1193 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-07  Juanma Barranquero  <lekktu@gmail.com>
+
+       * progmodes/which-func.el (which-func-mode): Turn into a
+       non-interactive function and mark as obsolete (bug#10428).
+
 2012-01-06  Chong Yidong  <cyd@gnu.org>
 
        * files.el (hack-dir-local-variables-non-file-buffer): Add doc.
index 59933a944d5b31919d181d4d5e345572ad684587..721c610517aebe14e8b894860b59b4b73a7ce4bb 100644 (file)
@@ -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)