aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2012-01-07 01:26:10 +0100
committerJuanma Barranquero <[email protected]>2012-01-07 01:26:10 +0100
commitadf4e762813e58cd7b68982d448269965bb45616 (patch)
tree4c24921c6247b34ef144144d17ef7ad5bd1a6b5d
parent89bd9ccd5bf4c2553bb1403ba71f4ed51dbb09b5 (diff)
lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428.
Turn into a non-interactive function and mark as obsolete.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/which-func.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ec3eacfbc3..704efea713 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-07 Juanma Barranquero <[email protected]>
+
+ * progmodes/which-func.el (which-func-mode): Turn into a
+ non-interactive function and mark as obsolete (bug#10428).
+
2012-01-06 Chong Yidong <[email protected]>
* 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 59933a944d..721c610517 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)