Function: mode-local-equivalent-mode-p

mode-local-equivalent-mode-p is a byte-compiled function defined in mode-local.el.gz.

Signature

(mode-local-equivalent-mode-p MODE)

Documentation

Is the major-mode in the current buffer equivalent to a mode in MODES.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/mode-local.el.gz
;; FIXME doc (and function name) seems wrong.
;; Return a list of MODE and all its parent modes, if any.
;; Lists parent modes first.
(defun mode-local-equivalent-mode-p (mode)
  "Is the major-mode in the current buffer equivalent to a mode in MODES."
  (let ((modes nil))
    (while mode
      (setq modes (cons mode modes)
	    mode  (get-mode-local-parent mode)))
    modes))