Function: dabbrev--same-major-mode-p

dabbrev--same-major-mode-p is a byte-compiled function defined in dabbrev.el.gz.

Signature

(dabbrev--same-major-mode-p OTHER-BUFFER)

Documentation

Check if OTHER-BUFFER has the same major mode as current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/dabbrev.el.gz
;;----------------------------------------------------------------
;; Local functions
;;----------------------------------------------------------------

(defun dabbrev--same-major-mode-p (other-buffer)
  "Check if OTHER-BUFFER has the same major mode as current buffer."
  (eq major-mode
      (with-current-buffer other-buffer
	major-mode)))