Function: mode-local-map-mode-buffers

mode-local-map-mode-buffers is a byte-compiled function defined in mode-local.el.gz.

Signature

(mode-local-map-mode-buffers FUNCTION MODES)

Documentation

Run FUNCTION on every file buffer with major mode in MODES.

MODES can be a symbol or a list of symbols. FUNCTION does not have arguments.

Aliases

semantic-map-mode-buffers

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/mode-local.el.gz
(defun mode-local-map-mode-buffers (function modes)
  "Run FUNCTION on every file buffer with major mode in MODES.
MODES can be a symbol or a list of symbols.
FUNCTION does not have arguments."
  (or (listp modes) (setq modes (list modes)))
  (mode-local-map-file-buffers
   function (lambda ()
              (let ((mm (mode-local-equivalent-mode-p major-mode))
                    (ans nil))
                (while (and (not ans) mm)
                  (setq ans (memq (car mm) modes)
                        mm (cdr mm)) )
                ans))))