# HG changeset patch # User Glenn Morris # Date 1204689451 0 # Node ID 55f5bb0c4d4e18e725f2dddb218907f1c8d82889 # Parent 4efb9fe40d63c5b438f35aa4c57b67dbf697bcfb (tex-mode): Suppress warning about multiple definitions when compiling. diff -r 4efb9fe40d63 -r 55f5bb0c4d4e lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Wed Mar 05 03:56:36 2008 +0000 +++ b/lisp/textmodes/tex-mode.el Wed Mar 05 03:57:31 2008 +0000 @@ -906,6 +906,15 @@ ;; and we need to define it a second time for `autoload' to get the ;; proper docstring. (defalias 'tex-mode-internal (symbol-function 'tex-mode)) + +;; Suppress the byte-compiler warning about multiple definitions. +;; This is a) ugly, and b) cheating, but this was the last +;; remaining warning from byte-compiling all of Emacs... +(eval-when-compile + (setq byte-compile-function-environment + (delq (assq 'tex-mode byte-compile-function-environment) + byte-compile-function-environment))) + ;;;###autoload (defun tex-mode () "Major mode for editing files of input for TeX, LaTeX, or SliTeX.