# HG changeset patch # User Richard M. Stallman # Date 1008149215 0 # Node ID 1ae6951459ceadbbd8bcd00901e2c8912304ca3c # Parent 2b1145fdbe6e23b9a83bd26c1005182ad44ef097 (derived-mode-p): Function moved to subr.el. diff -r 2b1145fdbe6e -r 1ae6951459ce lisp/derived.el --- a/lisp/derived.el Wed Dec 12 09:26:43 2001 +0000 +++ b/lisp/derived.el Wed Dec 12 09:26:55 2001 +0000 @@ -203,17 +203,6 @@ ; Run the hooks, if any. (run-mode-hooks ',hook))))) -;; PUBLIC: find if the current mode derives from another. - -;;;###autoload -(defun derived-mode-p (&rest modes) - "Non-nil if the current major mode is derived from one of MODES. -Uses the `derived-mode-parent' property of the symbol to trace backwards." - (let ((parent major-mode)) - (while (and (not (memq parent modes)) - (setq parent (get parent 'derived-mode-parent)))) - parent)) - ;; PUBLIC: find the ultimate class of a derived mode. (defun derived-mode-class (mode)